[Frontend] Remove unused includes (NFC) (#116927)
[llvm-project.git] / llvm / test / MC / AArch64 / SVE / ldr.s
blobb6b9ad96188950a40565234b90a962064124ebf3
1 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve < %s \
2 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
3 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme < %s \
4 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
5 // RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \
6 // RUN: | FileCheck %s --check-prefix=CHECK-ERROR
7 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \
8 // RUN: | llvm-objdump --no-print-imm-hex -d --mattr=+sve - | FileCheck %s --check-prefix=CHECK-INST
9 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \
10 // RUN: | llvm-objdump --no-print-imm-hex -d --mattr=-sve - | FileCheck %s --check-prefix=CHECK-UNKNOWN
12 ldr z0, [x0]
13 // CHECK-INST: ldr z0, [x0]
14 // CHECK-ENCODING: [0x00,0x40,0x80,0x85]
15 // CHECK-ERROR: instruction requires: sve or sme
16 // CHECK-UNKNOWN: 85804000 <unknown>
18 ldr z31, [sp, #-256, mul vl]
19 // CHECK-INST: ldr z31, [sp, #-256, mul vl]
20 // CHECK-ENCODING: [0xff,0x43,0xa0,0x85]
21 // CHECK-ERROR: instruction requires: sve or sme
22 // CHECK-UNKNOWN: 85a043ff <unknown>
24 ldr z23, [x13, #255, mul vl]
25 // CHECK-INST: ldr z23, [x13, #255, mul vl]
26 // CHECK-ENCODING: [0xb7,0x5d,0x9f,0x85]
27 // CHECK-ERROR: instruction requires: sve or sme
28 // CHECK-UNKNOWN: 859f5db7 <unknown>
30 ldr p0, [x0]
31 // CHECK-INST: ldr p0, [x0]
32 // CHECK-ENCODING: [0x00,0x00,0x80,0x85]
33 // CHECK-ERROR: instruction requires: sve or sme
34 // CHECK-UNKNOWN: 85800000 <unknown>
36 ldr p7, [x13, #-256, mul vl]
37 // CHECK-INST: ldr p7, [x13, #-256, mul vl]
38 // CHECK-ENCODING: [0xa7,0x01,0xa0,0x85]
39 // CHECK-ERROR: instruction requires: sve or sme
40 // CHECK-UNKNOWN: 85a001a7 <unknown>
42 ldr p5, [x10, #255, mul vl]
43 // CHECK-INST: ldr p5, [x10, #255, mul vl]
44 // CHECK-ENCODING: [0x45,0x1d,0x9f,0x85]
45 // CHECK-ERROR: instruction requires: sve or sme
46 // CHECK-UNKNOWN: 859f1d45 <unknown>