2014-04-09 22:43:06 +08:00
|
|
|
// RUN: not llvm-mc -triple arm64 -show-encoding < %s 2>%t | FileCheck %s
|
|
|
|
// RUN: FileCheck --check-prefix=CHECK-ERRORS < %t %s
|
|
|
|
|
|
|
|
msr SPSel, #0
|
|
|
|
msr SPSel, x0
|
|
|
|
msr DAIFSet, #0
|
|
|
|
msr ESR_EL1, x0
|
|
|
|
mrs x0, SPSel
|
|
|
|
mrs x0, ESR_EL1
|
|
|
|
|
2016-07-06 05:23:04 +08:00
|
|
|
// CHECK: msr SPSel, #0 // encoding: [0xbf,0x40,0x00,0xd5]
|
|
|
|
// CHECK: msr SPSel, x0 // encoding: [0x00,0x42,0x18,0xd5]
|
|
|
|
// CHECK: msr DAIFSet, #0 // encoding: [0xdf,0x40,0x03,0xd5]
|
2014-04-09 22:43:06 +08:00
|
|
|
// CHECK: msr ESR_EL1, x0 // encoding: [0x00,0x52,0x18,0xd5]
|
2016-07-06 05:23:04 +08:00
|
|
|
// CHECK: mrs x0, SPSel // encoding: [0x00,0x42,0x38,0xd5]
|
2014-04-09 22:43:06 +08:00
|
|
|
// CHECK: mrs x0, ESR_EL1 // encoding: [0x00,0x52,0x38,0xd5]
|
|
|
|
|
|
|
|
|
|
|
|
msr DAIFSet, x0
|
|
|
|
msr ESR_EL1, #0
|
|
|
|
mrs x0, DAIFSet
|
2014-05-06 19:18:53 +08:00
|
|
|
// CHECK-ERRORS: error: immediate must be an integer in range [0, 15]
|
2014-04-09 22:43:06 +08:00
|
|
|
// CHECK-ERRORS: error: invalid operand for instruction
|
2014-05-01 00:13:20 +08:00
|
|
|
// CHECK-ERRORS: error: expected readable system register
|