[ELF] Replace inExpr with lexState. NFC
[llvm-project.git] / llvm / test / MC / AArch64 / armv8.7a-ls64.s
blobd4684e38cbea284c2cf81317f20662cd1d78c583
1 // RUN: not llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+ls64 < %s 2>%t | FileCheck %s
2 // RUN: FileCheck --check-prefix=CHECK-ERR %s < %t
3 // RUN: not llvm-mc -triple aarch64-none-linux-gnu < %s 2> %t
4 // RUN: FileCheck --check-prefixes=CHECK-ERR,CHECK-NO-LS64-ERR %s < %t
6 ld64b x0, [x13]
7 st64b x14, [x13]
8 st64bv x1, x20, [x13]
9 st64bv0 x1, x22, [x13]
10 // CHECK: ld64b x0, [x13] // encoding: [0xa0,0xd1,0x3f,0xf8]
11 // CHECK: st64b x14, [x13] // encoding: [0xae,0x91,0x3f,0xf8]
12 // CHECK: st64bv x1, x20, [x13] // encoding: [0xb4,0xb1,0x21,0xf8]
13 // CHECK: st64bv0 x1, x22, [x13] // encoding: [0xb6,0xa1,0x21,0xf8]
14 // CHECK-NO-LS64-ERR: [[@LINE-8]]:3: error: instruction requires: ls64
15 // CHECK-NO-LS64-ERR: [[@LINE-8]]:3: error: instruction requires: ls64
16 // CHECK-NO-LS64-ERR: [[@LINE-8]]:3: error: instruction requires: ls64
17 // CHECK-NO-LS64-ERR: [[@LINE-8]]:3: error: instruction requires: ls64
19 ld64b x0, [sp]
20 st64b x14, [sp]
21 st64bv x1, x20, [sp]
22 st64bv0 x1, x22, [sp]
23 // CHECK: ld64b x0, [sp] // encoding: [0xe0,0xd3,0x3f,0xf8]
24 // CHECK: st64b x14, [sp] // encoding: [0xee,0x93,0x3f,0xf8]
25 // CHECK: st64bv x1, x20, [sp] // encoding: [0xf4,0xb3,0x21,0xf8]
26 // CHECK: st64bv0 x1, x22, [sp] // encoding: [0xf6,0xa3,0x21,0xf8]
28 ld64b x1, [x13]
29 ld64b x24, [x13]
30 // CHECK-ERR: [[@LINE-2]]:9: error: expected an even-numbered x-register in the range [x0,x22]
31 // CHECK-ERR: [[@LINE-2]]:9: error: expected an even-numbered x-register in the range [x0,x22]
33 mrs x0, accdata_el1
34 msr accdata_el1, x0
35 // CHECK: mrs x0, ACCDATA_EL1 // encoding: [0xa0,0xd0,0x38,0xd5]
36 // CHECK: msr ACCDATA_EL1, x0 // encoding: [0xa0,0xd0,0x18,0xd5]
37 // CHECK-NO-LS64-ERR: [[@LINE-4]]:11: error: expected readable system register
38 // CHECK-NO-LS64-ERR: [[@LINE-4]]:7: error: expected writable system register