[Frontend] Remove unused includes (NFC) (#116927)
[llvm-project.git] / llvm / test / MC / AArch64 / SVE / ld1sb.s
blob8f5e78f79b15c86b64104f0e9583c9ae857f396f
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 ld1sb z0.h, p0/z, [x0]
13 // CHECK-INST: ld1sb { z0.h }, p0/z, [x0]
14 // CHECK-ENCODING: [0x00,0xa0,0xc0,0xa5]
15 // CHECK-ERROR: instruction requires: sve or sme
16 // CHECK-UNKNOWN: a5c0a000 <unknown>
18 ld1sb z0.s, p0/z, [x0]
19 // CHECK-INST: ld1sb { z0.s }, p0/z, [x0]
20 // CHECK-ENCODING: [0x00,0xa0,0xa0,0xa5]
21 // CHECK-ERROR: instruction requires: sve or sme
22 // CHECK-UNKNOWN: a5a0a000 <unknown>
24 ld1sb z0.d, p0/z, [x0]
25 // CHECK-INST: ld1sb { z0.d }, p0/z, [x0]
26 // CHECK-ENCODING: [0x00,0xa0,0x80,0xa5]
27 // CHECK-ERROR: instruction requires: sve or sme
28 // CHECK-UNKNOWN: a580a000 <unknown>
30 ld1sb { z0.h }, p0/z, [x0]
31 // CHECK-INST: ld1sb { z0.h }, p0/z, [x0]
32 // CHECK-ENCODING: [0x00,0xa0,0xc0,0xa5]
33 // CHECK-ERROR: instruction requires: sve or sme
34 // CHECK-UNKNOWN: a5c0a000 <unknown>
36 ld1sb { z0.s }, p0/z, [x0]
37 // CHECK-INST: ld1sb { z0.s }, p0/z, [x0]
38 // CHECK-ENCODING: [0x00,0xa0,0xa0,0xa5]
39 // CHECK-ERROR: instruction requires: sve or sme
40 // CHECK-UNKNOWN: a5a0a000 <unknown>
42 ld1sb { z0.d }, p0/z, [x0]
43 // CHECK-INST: ld1sb { z0.d }, p0/z, [x0]
44 // CHECK-ENCODING: [0x00,0xa0,0x80,0xa5]
45 // CHECK-ERROR: instruction requires: sve or sme
46 // CHECK-UNKNOWN: a580a000 <unknown>
48 ld1sb { z31.h }, p7/z, [sp, #-1, mul vl]
49 // CHECK-INST: ld1sb { z31.h }, p7/z, [sp, #-1, mul vl]
50 // CHECK-ENCODING: [0xff,0xbf,0xcf,0xa5]
51 // CHECK-ERROR: instruction requires: sve or sme
52 // CHECK-UNKNOWN: a5cfbfff <unknown>
54 ld1sb { z21.h }, p5/z, [x10, #5, mul vl]
55 // CHECK-INST: ld1sb { z21.h }, p5/z, [x10, #5, mul vl]
56 // CHECK-ENCODING: [0x55,0xb5,0xc5,0xa5]
57 // CHECK-ERROR: instruction requires: sve or sme
58 // CHECK-UNKNOWN: a5c5b555 <unknown>
60 ld1sb { z31.s }, p7/z, [sp, #-1, mul vl]
61 // CHECK-INST: ld1sb { z31.s }, p7/z, [sp, #-1, mul vl]
62 // CHECK-ENCODING: [0xff,0xbf,0xaf,0xa5]
63 // CHECK-ERROR: instruction requires: sve or sme
64 // CHECK-UNKNOWN: a5afbfff <unknown>
66 ld1sb { z21.s }, p5/z, [x10, #5, mul vl]
67 // CHECK-INST: ld1sb { z21.s }, p5/z, [x10, #5, mul vl]
68 // CHECK-ENCODING: [0x55,0xb5,0xa5,0xa5]
69 // CHECK-ERROR: instruction requires: sve or sme
70 // CHECK-UNKNOWN: a5a5b555 <unknown>
72 ld1sb { z31.d }, p7/z, [sp, #-1, mul vl]
73 // CHECK-INST: ld1sb { z31.d }, p7/z, [sp, #-1, mul vl]
74 // CHECK-ENCODING: [0xff,0xbf,0x8f,0xa5]
75 // CHECK-ERROR: instruction requires: sve or sme
76 // CHECK-UNKNOWN: a58fbfff <unknown>
78 ld1sb { z21.d }, p5/z, [x10, #5, mul vl]
79 // CHECK-INST: ld1sb { z21.d }, p5/z, [x10, #5, mul vl]
80 // CHECK-ENCODING: [0x55,0xb5,0x85,0xa5]
81 // CHECK-ERROR: instruction requires: sve or sme
82 // CHECK-UNKNOWN: a585b555 <unknown>
84 ld1sb { z0.h }, p0/z, [sp, x0]
85 // CHECK-INST: ld1sb { z0.h }, p0/z, [sp, x0]
86 // CHECK-ENCODING: [0xe0,0x43,0xc0,0xa5]
87 // CHECK-ERROR: instruction requires: sve or sme
88 // CHECK-UNKNOWN: a5c043e0 <unknown>
90 ld1sb { z0.h }, p0/z, [x0, x0]
91 // CHECK-INST: ld1sb { z0.h }, p0/z, [x0, x0]
92 // CHECK-ENCODING: [0x00,0x40,0xc0,0xa5]
93 // CHECK-ERROR: instruction requires: sve or sme
94 // CHECK-UNKNOWN: a5c04000 <unknown>
96 ld1sb { z0.h }, p0/z, [x0, x0, lsl #0]
97 // CHECK-INST: ld1sb { z0.h }, p0/z, [x0, x0]
98 // CHECK-ENCODING: [0x00,0x40,0xc0,0xa5]
99 // CHECK-ERROR: instruction requires: sve or sme
100 // CHECK-UNKNOWN: a5c04000 <unknown>
102 ld1sb { z21.s }, p5/z, [x10, x21]
103 // CHECK-INST: ld1sb { z21.s }, p5/z, [x10, x21]
104 // CHECK-ENCODING: [0x55,0x55,0xb5,0xa5]
105 // CHECK-ERROR: instruction requires: sve or sme
106 // CHECK-UNKNOWN: a5b55555 <unknown>
108 ld1sb { z23.d }, p3/z, [x13, x8]
109 // CHECK-INST: ld1sb { z23.d }, p3/z, [x13, x8]
110 // CHECK-ENCODING: [0xb7,0x4d,0x88,0xa5]
111 // CHECK-ERROR: instruction requires: sve or sme
112 // CHECK-UNKNOWN: a5884db7 <unknown>