Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AArch64 / SME2 / st1b
blob02d59f92560d84577a8f63640d1add985bc826c8
1 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2 < %s \
2 // RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
3 // RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \
4 // RUN:        | FileCheck %s --check-prefix=CHECK-ERROR
5 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme2 < %s \
6 // RUN:        | llvm-objdump -d --mattr=+sme2 - | FileCheck %s --check-prefix=CHECK-INST
7 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme2 < %s \
8 // RUN:        | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN
9 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2 < %s \
10 // RUN:        | sed '/.text/d' | sed 's/.*encoding: //g' \
11 // RUN:        | llvm-mc -triple=aarch64 -mattr=+sme2 -disassemble -show-encoding \
12 // RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
15 st1b    {z0.b, z1.b}, pn8, [x0, x0]  // 10100000, 00100000, 00000000, 00000000
16 // CHECK, INST: st1b    { z0.b, z1.b }, pn8, [x0, x0]
17 // CHECK-ENCODING: [0x00,0x00,0x20,0xa0]
18 // CHECK-ERROR: instruction requires: sme2 or sve2p1
19 // CHECK-UNKNOWN: a0200000 <unknown>
21 st1b    {z20.b, z21.b}, pn13, [x10, x21]  // 10100000, 00110101, 00010101, 01010100
22 // CHECK, INST: st1b    { z20.b, z21.b }, pn13, [x10, x21]
23 // CHECK-ENCODING: [0x54,0x15,0x35,0xa0]
24 // CHECK-ERROR: instruction requires: sme2 or sve2p1
25 // CHECK-UNKNOWN: a0351554 <unknown>
27 st1b    {z22.b, z23.b}, pn11, [x13, x8]  // 10100000, 00101000, 00001101, 10110110
28 // CHECK, INST: st1b    { z22.b, z23.b }, pn11, [x13, x8]
29 // CHECK-ENCODING: [0xb6,0x0d,0x28,0xa0]
30 // CHECK-ERROR: instruction requires: sme2 or sve2p1
31 // CHECK-UNKNOWN: a0280db6 <unknown>
33 st1b    {z30.b, z31.b}, pn15, [sp, xzr]  // 10100000, 00111111, 00011111, 11111110
34 // CHECK, INST: st1b    { z30.b, z31.b }, pn15, [sp, xzr]
35 // CHECK-ENCODING: [0xfe,0x1f,0x3f,0xa0]
36 // CHECK-ERROR: instruction requires: sme2 or sve2p1
37 // CHECK-UNKNOWN: a03f1ffe <unknown>
40 st1b    {z0.b, z1.b}, pn8, [x0]  // 10100000, 01100000, 00000000, 00000000
41 // CHECK, INST: st1b    { z0.b, z1.b }, pn8, [x0]
42 // CHECK-ENCODING: [0x00,0x00,0x60,0xa0]
43 // CHECK-ERROR: instruction requires: sme2 or sve2p1
44 // CHECK-UNKNOWN: a0600000 <unknown>
46 st1b    {z20.b, z21.b}, pn13, [x10, #10, mul vl]  // 10100000, 01100101, 00010101, 01010100
47 // CHECK, INST: st1b    { z20.b, z21.b }, pn13, [x10, #10, mul vl]
48 // CHECK-ENCODING: [0x54,0x15,0x65,0xa0]
49 // CHECK-ERROR: instruction requires: sme2 or sve2p1
50 // CHECK-UNKNOWN: a0651554 <unknown>
52 st1b    {z22.b, z23.b}, pn11, [x13, #, 16, mul vl]  // 10100000, 01101000, 00001101, 10110110
53 // CHECK, INST: st1b    { z22.b, z23.b }, pn11, [x13, #, 16, mul vl]
54 // CHECK-ENCODING: [0xb6,0x0d,0x68,0xa0]
55 // CHECK-ERROR: instruction requires: sme2 or sve2p1
56 // CHECK-UNKNOWN: a0680db6 <unknown>
58 st1b    {z30.b, z31.b}, pn15, [sp, #, 2, mul vl]  // 10100000, 01101111, 00011111, 11111110
59 // CHECK, INST: st1b    { z30.b, z31.b }, pn15, [sp, #, 2, mul vl]
60 // CHECK-ENCODING: [0xfe,0x1f,0x6f,0xa0]
61 // CHECK-ERROR: instruction requires: sme2 or sve2p1
62 // CHECK-UNKNOWN: a06f1ffe <unknown>
65 st1b    {z0.b, z8.b}, pn8, [x0, x0]  // 10100001-00100000-00000000-00000000
66 // CHECK-INST: st1b    { z0.b, z8.b }, pn8, [x0, x0]
67 // CHECK-ENCODING: [0x00,0x00,0x20,0xa1]
68 // CHECK-ERROR: instruction requires: sme2
69 // CHECK-UNKNOWN: a1200000 <unknown>
71 st1b    {z21.b, z29.b}, pn13, [x10, x21]  // 10100001-00110101-00010101-01010101
72 // CHECK-INST: st1b    { z21.b, z29.b }, pn13, [x10, x21]
73 // CHECK-ENCODING: [0x55,0x15,0x35,0xa1]
74 // CHECK-ERROR: instruction requires: sme2
75 // CHECK-UNKNOWN: a1351555 <unknown>
77 st1b    {z23.b, z31.b}, pn11, [x13, x8]  // 10100001-00101000-00001101-10110111
78 // CHECK-INST: st1b    { z23.b, z31.b }, pn11, [x13, x8]
79 // CHECK-ENCODING: [0xb7,0x0d,0x28,0xa1]
80 // CHECK-ERROR: instruction requires: sme2
81 // CHECK-UNKNOWN: a1280db7 <unknown>
83 st1b    {z23.b, z31.b}, pn15, [sp, xzr]  // 10100001-00111111-00011111-11110111
84 // CHECK-INST: st1b    { z23.b, z31.b }, pn15, [sp, xzr]
85 // CHECK-ENCODING: [0xf7,0x1f,0x3f,0xa1]
86 // CHECK-ERROR: instruction requires: sme2
87 // CHECK-UNKNOWN: a13f1ff7 <unknown>
90 st1b    {z0.b, z8.b}, pn8, [x0]  // 10100001-01100000-00000000-00000000
91 // CHECK-INST: st1b    { z0.b, z8.b }, pn8, [x0]
92 // CHECK-ENCODING: [0x00,0x00,0x60,0xa1]
93 // CHECK-ERROR: instruction requires: sme2
94 // CHECK-UNKNOWN: a1600000 <unknown>
96 st1b    {z21.b, z29.b}, pn13, [x10, #10, mul vl]  // 10100001-01100101-00010101-01010101
97 // CHECK-INST: st1b    { z21.b, z29.b }, pn13, [x10, #10, mul vl]
98 // CHECK-ENCODING: [0x55,0x15,0x65,0xa1]
99 // CHECK-ERROR: instruction requires: sme2
100 // CHECK-UNKNOWN: a1651555 <unknown>
102 st1b    {z23.b, z31.b}, pn11, [x13, #-16, mul vl]  // 10100001-01101000-00001101-10110111
103 // CHECK-INST: st1b    { z23.b, z31.b }, pn11, [x13, #-16, mul vl]
104 // CHECK-ENCODING: [0xb7,0x0d,0x68,0xa1]
105 // CHECK-ERROR: instruction requires: sme2
106 // CHECK-UNKNOWN: a1680db7 <unknown>
108 st1b    {z23.b, z31.b}, pn15, [sp, #-2, mul vl]  // 10100001-01101111-00011111-11110111
109 // CHECK-INST: st1b    { z23.b, z31.b }, pn15, [sp, #-2, mul vl]
110 // CHECK-ENCODING: [0xf7,0x1f,0x6f,0xa1]
111 // CHECK-ERROR: instruction requires: sme2
112 // CHECK-UNKNOWN: a16f1ff7 <unknown>
115 st1b    {z0.b-z3.b}, pn8, [x0, x0]  // 10100000-00100000-10000000-00000000
116 // CHECK-INST: st1b    { z0.b-z3.b }, pn8, [x0, x0]
117 // CHECK-ENCODING: [0x00,0x80,0x20,0xa0]
118 // CHECK-ERROR: instruction requires: sme2 or sve2p1
119 // CHECK-UNKNOWN: a0208000 <unknown>
121 st1b    {z20.b-z23.b}, pn13, [x10, x21]  // 10100000-00110101-10010101-01010100
122 // CHECK-INST: st1b    { z20.b-z23.b }, pn13, [x10, x21]
123 // CHECK-ENCODING: [0x54,0x95,0x35,0xa0]
124 // CHECK-ERROR: instruction requires: sme2 or sve2p1
125 // CHECK-UNKNOWN: a0359554 <unknown>
127 st1b    {z20.b-z23.b}, pn11, [x13, x8]  // 10100000-00101000-10001101-10110100
128 // CHECK-INST: st1b    { z20.b-z23.b }, pn11, [x13, x8]
129 // CHECK-ENCODING: [0xb4,0x8d,0x28,0xa0]
130 // CHECK-ERROR: instruction requires: sme2 or sve2p1
131 // CHECK-UNKNOWN: a0288db4 <unknown>
133 st1b    {z28.b-z31.b}, pn15, [sp, xzr]  // 10100000-00111111-10011111-11111100
134 // CHECK-INST: st1b    { z28.b-z31.b }, pn15, [sp, xzr]
135 // CHECK-ENCODING: [0xfc,0x9f,0x3f,0xa0]
136 // CHECK-ERROR: instruction requires: sme2 or sve2p1
137 // CHECK-UNKNOWN: a03f9ffc <unknown>
140 st1b    {z0.b-z3.b}, pn8, [x0]  // 10100000-01100000-10000000-00000000
141 // CHECK-INST: st1b    { z0.b-z3.b }, pn8, [x0]
142 // CHECK-ENCODING: [0x00,0x80,0x60,0xa0]
143 // CHECK-ERROR: instruction requires: sme2 or sve2p1
144 // CHECK-UNKNOWN: a0608000 <unknown>
146 st1b    {z20.b-z23.b}, pn13, [x10, #20, mul vl]  // 10100000-01100101-10010101-01010100
147 // CHECK-INST: st1b    { z20.b-z23.b }, pn13, [x10, #20, mul vl]
148 // CHECK-ENCODING: [0x54,0x95,0x65,0xa0]
149 // CHECK-ERROR: instruction requires: sme2 or sve2p1
150 // CHECK-UNKNOWN: a0659554 <unknown>
152 st1b    {z20.b-z23.b}, pn11, [x13, #-32, mul vl]  // 10100000-01101000-10001101-10110100
153 // CHECK-INST: st1b    { z20.b-z23.b }, pn11, [x13, #-32, mul vl]
154 // CHECK-ENCODING: [0xb4,0x8d,0x68,0xa0]
155 // CHECK-ERROR: instruction requires: sme2 or sve2p1
156 // CHECK-UNKNOWN: a0688db4 <unknown>
158 st1b    {z28.b-z31.b}, pn15, [sp, #-4, mul vl]  // 10100000-01101111-10011111-11111100
159 // CHECK-INST: st1b    { z28.b-z31.b }, pn15, [sp, #-4, mul vl]
160 // CHECK-ENCODING: [0xfc,0x9f,0x6f,0xa0]
161 // CHECK-ERROR: instruction requires: sme2 or sve2p1
162 // CHECK-UNKNOWN: a06f9ffc <unknown>
165 st1b    {z0.b, z4.b, z8.b, z12.b}, pn8, [x0, x0]  // 10100001-00100000-10000000-00000000
166 // CHECK-INST: st1b    { z0.b, z4.b, z8.b, z12.b }, pn8, [x0, x0]
167 // CHECK-ENCODING: [0x00,0x80,0x20,0xa1]
168 // CHECK-ERROR: instruction requires: sme2
169 // CHECK-UNKNOWN: a1208000 <unknown>
171 st1b    {z17.b, z21.b, z25.b, z29.b}, pn13, [x10, x21]  // 10100001-00110101-10010101-01010001
172 // CHECK-INST: st1b    { z17.b, z21.b, z25.b, z29.b }, pn13, [x10, x21]
173 // CHECK-ENCODING: [0x51,0x95,0x35,0xa1]
174 // CHECK-ERROR: instruction requires: sme2
175 // CHECK-UNKNOWN: a1359551 <unknown>
177 st1b    {z19.b, z23.b, z27.b, z31.b}, pn11, [x13, x8]  // 10100001-00101000-10001101-10110011
178 // CHECK-INST: st1b    { z19.b, z23.b, z27.b, z31.b }, pn11, [x13, x8]
179 // CHECK-ENCODING: [0xb3,0x8d,0x28,0xa1]
180 // CHECK-ERROR: instruction requires: sme2
181 // CHECK-UNKNOWN: a1288db3 <unknown>
183 st1b    {z19.b, z23.b, z27.b, z31.b}, pn15, [sp, xzr]  // 10100001-00111111-10011111-11110011
184 // CHECK-INST: st1b    { z19.b, z23.b, z27.b, z31.b }, pn15, [sp, xzr]
185 // CHECK-ENCODING: [0xf3,0x9f,0x3f,0xa1]
186 // CHECK-ERROR: instruction requires: sme2
187 // CHECK-UNKNOWN: a13f9ff3 <unknown>
190 st1b    {z0.b, z4.b, z8.b, z12.b}, pn8, [x0]  // 10100001-01100000-10000000-00000000
191 // CHECK-INST: st1b    { z0.b, z4.b, z8.b, z12.b }, pn8, [x0]
192 // CHECK-ENCODING: [0x00,0x80,0x60,0xa1]
193 // CHECK-ERROR: instruction requires: sme2
194 // CHECK-UNKNOWN: a1608000 <unknown>
196 st1b    {z17.b, z21.b, z25.b, z29.b}, pn13, [x10, #20, mul vl]  // 10100001-01100101-10010101-01010001
197 // CHECK-INST: st1b    { z17.b, z21.b, z25.b, z29.b }, pn13, [x10, #20, mul vl]
198 // CHECK-ENCODING: [0x51,0x95,0x65,0xa1]
199 // CHECK-ERROR: instruction requires: sme2
200 // CHECK-UNKNOWN: a1659551 <unknown>
202 st1b    {z19.b, z23.b, z27.b, z31.b}, pn11, [x13, #-32, mul vl]  // 10100001-01101000-10001101-10110011
203 // CHECK-INST: st1b    { z19.b, z23.b, z27.b, z31.b }, pn11, [x13, #-32, mul vl]
204 // CHECK-ENCODING: [0xb3,0x8d,0x68,0xa1]
205 // CHECK-ERROR: instruction requires: sme2
206 // CHECK-UNKNOWN: a1688db3 <unknown>
208 st1b    {z19.b, z23.b, z27.b, z31.b}, pn15, [sp, #-4, mul vl]  // 10100001-01101111-10011111-11110011
209 // CHECK-INST: st1b    { z19.b, z23.b, z27.b, z31.b }, pn15, [sp, #-4, mul vl]
210 // CHECK-ENCODING: [0xf3,0x9f,0x6f,0xa1]
211 // CHECK-ERROR: instruction requires: sme2
212 // CHECK-UNKNOWN: a16f9ff3 <unknown>