Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AArch64 / SME2 / fminnm.s
blobd80d5ebbcb76672429252f730bbc8acb67338f63
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 --mattr=-sme2 - | 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 fminnm {z0.d, z1.d}, {z0.d, z1.d}, z0.d // 11000001-11100000-10100001-00100001
16 // CHECK-INST: fminnm { z0.d, z1.d }, { z0.d, z1.d }, z0.d
17 // CHECK-ENCODING: [0x21,0xa1,0xe0,0xc1]
18 // CHECK-ERROR: instruction requires: sme2
19 // CHECK-UNKNOWN: c1e0a121 <unknown>
21 fminnm {z20.d, z21.d}, {z20.d, z21.d}, z5.d // 11000001-11100101-10100001-00110101
22 // CHECK-INST: fminnm { z20.d, z21.d }, { z20.d, z21.d }, z5.d
23 // CHECK-ENCODING: [0x35,0xa1,0xe5,0xc1]
24 // CHECK-ERROR: instruction requires: sme2
25 // CHECK-UNKNOWN: c1e5a135 <unknown>
27 fminnm {z22.d, z23.d}, {z22.d, z23.d}, z8.d // 11000001-11101000-10100001-00110111
28 // CHECK-INST: fminnm { z22.d, z23.d }, { z22.d, z23.d }, z8.d
29 // CHECK-ENCODING: [0x37,0xa1,0xe8,0xc1]
30 // CHECK-ERROR: instruction requires: sme2
31 // CHECK-UNKNOWN: c1e8a137 <unknown>
33 fminnm {z30.d, z31.d}, {z30.d, z31.d}, z15.d // 11000001-11101111-10100001-00111111
34 // CHECK-INST: fminnm { z30.d, z31.d }, { z30.d, z31.d }, z15.d
35 // CHECK-ENCODING: [0x3f,0xa1,0xef,0xc1]
36 // CHECK-ERROR: instruction requires: sme2
37 // CHECK-UNKNOWN: c1efa13f <unknown>
40 fminnm {z0.d, z1.d}, {z0.d, z1.d}, {z0.d, z1.d} // 11000001-11100000-10110001-00100001
41 // CHECK-INST: fminnm { z0.d, z1.d }, { z0.d, z1.d }, { z0.d, z1.d }
42 // CHECK-ENCODING: [0x21,0xb1,0xe0,0xc1]
43 // CHECK-ERROR: instruction requires: sme2
44 // CHECK-UNKNOWN: c1e0b121 <unknown>
46 fminnm {z20.d, z21.d}, {z20.d, z21.d}, {z20.d, z21.d} // 11000001-11110100-10110001-00110101
47 // CHECK-INST: fminnm { z20.d, z21.d }, { z20.d, z21.d }, { z20.d, z21.d }
48 // CHECK-ENCODING: [0x35,0xb1,0xf4,0xc1]
49 // CHECK-ERROR: instruction requires: sme2
50 // CHECK-UNKNOWN: c1f4b135 <unknown>
52 fminnm {z22.d, z23.d}, {z22.d, z23.d}, {z8.d, z9.d} // 11000001-11101000-10110001-00110111
53 // CHECK-INST: fminnm { z22.d, z23.d }, { z22.d, z23.d }, { z8.d, z9.d }
54 // CHECK-ENCODING: [0x37,0xb1,0xe8,0xc1]
55 // CHECK-ERROR: instruction requires: sme2
56 // CHECK-UNKNOWN: c1e8b137 <unknown>
58 fminnm {z30.d, z31.d}, {z30.d, z31.d}, {z30.d, z31.d} // 11000001-11111110-10110001-00111111
59 // CHECK-INST: fminnm { z30.d, z31.d }, { z30.d, z31.d }, { z30.d, z31.d }
60 // CHECK-ENCODING: [0x3f,0xb1,0xfe,0xc1]
61 // CHECK-ERROR: instruction requires: sme2
62 // CHECK-UNKNOWN: c1feb13f <unknown>
65 fminnm {z0.h, z1.h}, {z0.h, z1.h}, z0.h // 11000001-01100000-10100001-00100001
66 // CHECK-INST: fminnm { z0.h, z1.h }, { z0.h, z1.h }, z0.h
67 // CHECK-ENCODING: [0x21,0xa1,0x60,0xc1]
68 // CHECK-ERROR: instruction requires: sme2
69 // CHECK-UNKNOWN: c160a121 <unknown>
71 fminnm {z20.h, z21.h}, {z20.h, z21.h}, z5.h // 11000001-01100101-10100001-00110101
72 // CHECK-INST: fminnm { z20.h, z21.h }, { z20.h, z21.h }, z5.h
73 // CHECK-ENCODING: [0x35,0xa1,0x65,0xc1]
74 // CHECK-ERROR: instruction requires: sme2
75 // CHECK-UNKNOWN: c165a135 <unknown>
77 fminnm {z22.h, z23.h}, {z22.h, z23.h}, z8.h // 11000001-01101000-10100001-00110111
78 // CHECK-INST: fminnm { z22.h, z23.h }, { z22.h, z23.h }, z8.h
79 // CHECK-ENCODING: [0x37,0xa1,0x68,0xc1]
80 // CHECK-ERROR: instruction requires: sme2
81 // CHECK-UNKNOWN: c168a137 <unknown>
83 fminnm {z30.h, z31.h}, {z30.h, z31.h}, z15.h // 11000001-01101111-10100001-00111111
84 // CHECK-INST: fminnm { z30.h, z31.h }, { z30.h, z31.h }, z15.h
85 // CHECK-ENCODING: [0x3f,0xa1,0x6f,0xc1]
86 // CHECK-ERROR: instruction requires: sme2
87 // CHECK-UNKNOWN: c16fa13f <unknown>
90 fminnm {z0.h, z1.h}, {z0.h, z1.h}, {z0.h, z1.h} // 11000001-01100000-10110001-00100001
91 // CHECK-INST: fminnm { z0.h, z1.h }, { z0.h, z1.h }, { z0.h, z1.h }
92 // CHECK-ENCODING: [0x21,0xb1,0x60,0xc1]
93 // CHECK-ERROR: instruction requires: sme2
94 // CHECK-UNKNOWN: c160b121 <unknown>
96 fminnm {z20.h, z21.h}, {z20.h, z21.h}, {z20.h, z21.h} // 11000001-01110100-10110001-00110101
97 // CHECK-INST: fminnm { z20.h, z21.h }, { z20.h, z21.h }, { z20.h, z21.h }
98 // CHECK-ENCODING: [0x35,0xb1,0x74,0xc1]
99 // CHECK-ERROR: instruction requires: sme2
100 // CHECK-UNKNOWN: c174b135 <unknown>
102 fminnm {z22.h, z23.h}, {z22.h, z23.h}, {z8.h, z9.h} // 11000001-01101000-10110001-00110111
103 // CHECK-INST: fminnm { z22.h, z23.h }, { z22.h, z23.h }, { z8.h, z9.h }
104 // CHECK-ENCODING: [0x37,0xb1,0x68,0xc1]
105 // CHECK-ERROR: instruction requires: sme2
106 // CHECK-UNKNOWN: c168b137 <unknown>
108 fminnm {z30.h, z31.h}, {z30.h, z31.h}, {z30.h, z31.h} // 11000001-01111110-10110001-00111111
109 // CHECK-INST: fminnm { z30.h, z31.h }, { z30.h, z31.h }, { z30.h, z31.h }
110 // CHECK-ENCODING: [0x3f,0xb1,0x7e,0xc1]
111 // CHECK-ERROR: instruction requires: sme2
112 // CHECK-UNKNOWN: c17eb13f <unknown>
115 fminnm {z0.s, z1.s}, {z0.s, z1.s}, z0.s // 11000001-10100000-10100001-00100001
116 // CHECK-INST: fminnm { z0.s, z1.s }, { z0.s, z1.s }, z0.s
117 // CHECK-ENCODING: [0x21,0xa1,0xa0,0xc1]
118 // CHECK-ERROR: instruction requires: sme2
119 // CHECK-UNKNOWN: c1a0a121 <unknown>
121 fminnm {z20.s, z21.s}, {z20.s, z21.s}, z5.s // 11000001-10100101-10100001-00110101
122 // CHECK-INST: fminnm { z20.s, z21.s }, { z20.s, z21.s }, z5.s
123 // CHECK-ENCODING: [0x35,0xa1,0xa5,0xc1]
124 // CHECK-ERROR: instruction requires: sme2
125 // CHECK-UNKNOWN: c1a5a135 <unknown>
127 fminnm {z22.s, z23.s}, {z22.s, z23.s}, z8.s // 11000001-10101000-10100001-00110111
128 // CHECK-INST: fminnm { z22.s, z23.s }, { z22.s, z23.s }, z8.s
129 // CHECK-ENCODING: [0x37,0xa1,0xa8,0xc1]
130 // CHECK-ERROR: instruction requires: sme2
131 // CHECK-UNKNOWN: c1a8a137 <unknown>
133 fminnm {z30.s, z31.s}, {z30.s, z31.s}, z15.s // 11000001-10101111-10100001-00111111
134 // CHECK-INST: fminnm { z30.s, z31.s }, { z30.s, z31.s }, z15.s
135 // CHECK-ENCODING: [0x3f,0xa1,0xaf,0xc1]
136 // CHECK-ERROR: instruction requires: sme2
137 // CHECK-UNKNOWN: c1afa13f <unknown>
140 fminnm {z0.s, z1.s}, {z0.s, z1.s}, {z0.s, z1.s} // 11000001-10100000-10110001-00100001
141 // CHECK-INST: fminnm { z0.s, z1.s }, { z0.s, z1.s }, { z0.s, z1.s }
142 // CHECK-ENCODING: [0x21,0xb1,0xa0,0xc1]
143 // CHECK-ERROR: instruction requires: sme2
144 // CHECK-UNKNOWN: c1a0b121 <unknown>
146 fminnm {z20.s, z21.s}, {z20.s, z21.s}, {z20.s, z21.s} // 11000001-10110100-10110001-00110101
147 // CHECK-INST: fminnm { z20.s, z21.s }, { z20.s, z21.s }, { z20.s, z21.s }
148 // CHECK-ENCODING: [0x35,0xb1,0xb4,0xc1]
149 // CHECK-ERROR: instruction requires: sme2
150 // CHECK-UNKNOWN: c1b4b135 <unknown>
152 fminnm {z22.s, z23.s}, {z22.s, z23.s}, {z8.s, z9.s} // 11000001-10101000-10110001-00110111
153 // CHECK-INST: fminnm { z22.s, z23.s }, { z22.s, z23.s }, { z8.s, z9.s }
154 // CHECK-ENCODING: [0x37,0xb1,0xa8,0xc1]
155 // CHECK-ERROR: instruction requires: sme2
156 // CHECK-UNKNOWN: c1a8b137 <unknown>
158 fminnm {z30.s, z31.s}, {z30.s, z31.s}, {z30.s, z31.s} // 11000001-10111110-10110001-00111111
159 // CHECK-INST: fminnm { z30.s, z31.s }, { z30.s, z31.s }, { z30.s, z31.s }
160 // CHECK-ENCODING: [0x3f,0xb1,0xbe,0xc1]
161 // CHECK-ERROR: instruction requires: sme2
162 // CHECK-UNKNOWN: c1beb13f <unknown>
165 fminnm {z0.d - z3.d}, {z0.d - z3.d}, z0.d // 11000001-11100000-10101001-00100001
166 // CHECK-INST: fminnm { z0.d - z3.d }, { z0.d - z3.d }, z0.d
167 // CHECK-ENCODING: [0x21,0xa9,0xe0,0xc1]
168 // CHECK-ERROR: instruction requires: sme2
169 // CHECK-UNKNOWN: c1e0a921 <unknown>
171 fminnm {z20.d - z23.d}, {z20.d - z23.d}, z5.d // 11000001-11100101-10101001-00110101
172 // CHECK-INST: fminnm { z20.d - z23.d }, { z20.d - z23.d }, z5.d
173 // CHECK-ENCODING: [0x35,0xa9,0xe5,0xc1]
174 // CHECK-ERROR: instruction requires: sme2
175 // CHECK-UNKNOWN: c1e5a935 <unknown>
177 fminnm {z20.d - z23.d}, {z20.d - z23.d}, z8.d // 11000001-11101000-10101001-00110101
178 // CHECK-INST: fminnm { z20.d - z23.d }, { z20.d - z23.d }, z8.d
179 // CHECK-ENCODING: [0x35,0xa9,0xe8,0xc1]
180 // CHECK-ERROR: instruction requires: sme2
181 // CHECK-UNKNOWN: c1e8a935 <unknown>
183 fminnm {z28.d - z31.d}, {z28.d - z31.d}, z15.d // 11000001-11101111-10101001-00111101
184 // CHECK-INST: fminnm { z28.d - z31.d }, { z28.d - z31.d }, z15.d
185 // CHECK-ENCODING: [0x3d,0xa9,0xef,0xc1]
186 // CHECK-ERROR: instruction requires: sme2
187 // CHECK-UNKNOWN: c1efa93d <unknown>
190 fminnm {z0.d - z3.d}, {z0.d - z3.d}, {z0.d - z3.d} // 11000001-11100000-10111001-00100001
191 // CHECK-INST: fminnm { z0.d - z3.d }, { z0.d - z3.d }, { z0.d - z3.d }
192 // CHECK-ENCODING: [0x21,0xb9,0xe0,0xc1]
193 // CHECK-ERROR: instruction requires: sme2
194 // CHECK-UNKNOWN: c1e0b921 <unknown>
196 fminnm {z20.d - z23.d}, {z20.d - z23.d}, {z20.d - z23.d} // 11000001-11110100-10111001-00110101
197 // CHECK-INST: fminnm { z20.d - z23.d }, { z20.d - z23.d }, { z20.d - z23.d }
198 // CHECK-ENCODING: [0x35,0xb9,0xf4,0xc1]
199 // CHECK-ERROR: instruction requires: sme2
200 // CHECK-UNKNOWN: c1f4b935 <unknown>
202 fminnm {z20.d - z23.d}, {z20.d - z23.d}, {z8.d - z11.d} // 11000001-11101000-10111001-00110101
203 // CHECK-INST: fminnm { z20.d - z23.d }, { z20.d - z23.d }, { z8.d - z11.d }
204 // CHECK-ENCODING: [0x35,0xb9,0xe8,0xc1]
205 // CHECK-ERROR: instruction requires: sme2
206 // CHECK-UNKNOWN: c1e8b935 <unknown>
208 fminnm {z28.d - z31.d}, {z28.d - z31.d}, {z28.d - z31.d} // 11000001-11111100-10111001-00111101
209 // CHECK-INST: fminnm { z28.d - z31.d }, { z28.d - z31.d }, { z28.d - z31.d }
210 // CHECK-ENCODING: [0x3d,0xb9,0xfc,0xc1]
211 // CHECK-ERROR: instruction requires: sme2
212 // CHECK-UNKNOWN: c1fcb93d <unknown>
215 fminnm {z0.h - z3.h}, {z0.h - z3.h}, z0.h // 11000001-01100000-10101001-00100001
216 // CHECK-INST: fminnm { z0.h - z3.h }, { z0.h - z3.h }, z0.h
217 // CHECK-ENCODING: [0x21,0xa9,0x60,0xc1]
218 // CHECK-ERROR: instruction requires: sme2
219 // CHECK-UNKNOWN: c160a921 <unknown>
221 fminnm {z20.h - z23.h}, {z20.h - z23.h}, z5.h // 11000001-01100101-10101001-00110101
222 // CHECK-INST: fminnm { z20.h - z23.h }, { z20.h - z23.h }, z5.h
223 // CHECK-ENCODING: [0x35,0xa9,0x65,0xc1]
224 // CHECK-ERROR: instruction requires: sme2
225 // CHECK-UNKNOWN: c165a935 <unknown>
227 fminnm {z20.h - z23.h}, {z20.h - z23.h}, z8.h // 11000001-01101000-10101001-00110101
228 // CHECK-INST: fminnm { z20.h - z23.h }, { z20.h - z23.h }, z8.h
229 // CHECK-ENCODING: [0x35,0xa9,0x68,0xc1]
230 // CHECK-ERROR: instruction requires: sme2
231 // CHECK-UNKNOWN: c168a935 <unknown>
233 fminnm {z28.h - z31.h}, {z28.h - z31.h}, z15.h // 11000001-01101111-10101001-00111101
234 // CHECK-INST: fminnm { z28.h - z31.h }, { z28.h - z31.h }, z15.h
235 // CHECK-ENCODING: [0x3d,0xa9,0x6f,0xc1]
236 // CHECK-ERROR: instruction requires: sme2
237 // CHECK-UNKNOWN: c16fa93d <unknown>
240 fminnm {z0.h - z3.h}, {z0.h - z3.h}, {z0.h - z3.h} // 11000001-01100000-10111001-00100001
241 // CHECK-INST: fminnm { z0.h - z3.h }, { z0.h - z3.h }, { z0.h - z3.h }
242 // CHECK-ENCODING: [0x21,0xb9,0x60,0xc1]
243 // CHECK-ERROR: instruction requires: sme2
244 // CHECK-UNKNOWN: c160b921 <unknown>
246 fminnm {z20.h - z23.h}, {z20.h - z23.h}, {z20.h - z23.h} // 11000001-01110100-10111001-00110101
247 // CHECK-INST: fminnm { z20.h - z23.h }, { z20.h - z23.h }, { z20.h - z23.h }
248 // CHECK-ENCODING: [0x35,0xb9,0x74,0xc1]
249 // CHECK-ERROR: instruction requires: sme2
250 // CHECK-UNKNOWN: c174b935 <unknown>
252 fminnm {z20.h - z23.h}, {z20.h - z23.h}, {z8.h - z11.h} // 11000001-01101000-10111001-00110101
253 // CHECK-INST: fminnm { z20.h - z23.h }, { z20.h - z23.h }, { z8.h - z11.h }
254 // CHECK-ENCODING: [0x35,0xb9,0x68,0xc1]
255 // CHECK-ERROR: instruction requires: sme2
256 // CHECK-UNKNOWN: c168b935 <unknown>
258 fminnm {z28.h - z31.h}, {z28.h - z31.h}, {z28.h - z31.h} // 11000001-01111100-10111001-00111101
259 // CHECK-INST: fminnm { z28.h - z31.h }, { z28.h - z31.h }, { z28.h - z31.h }
260 // CHECK-ENCODING: [0x3d,0xb9,0x7c,0xc1]
261 // CHECK-ERROR: instruction requires: sme2
262 // CHECK-UNKNOWN: c17cb93d <unknown>
265 fminnm {z0.s - z3.s}, {z0.s - z3.s}, z0.s // 11000001-10100000-10101001-00100001
266 // CHECK-INST: fminnm { z0.s - z3.s }, { z0.s - z3.s }, z0.s
267 // CHECK-ENCODING: [0x21,0xa9,0xa0,0xc1]
268 // CHECK-ERROR: instruction requires: sme2
269 // CHECK-UNKNOWN: c1a0a921 <unknown>
271 fminnm {z20.s - z23.s}, {z20.s - z23.s}, z5.s // 11000001-10100101-10101001-00110101
272 // CHECK-INST: fminnm { z20.s - z23.s }, { z20.s - z23.s }, z5.s
273 // CHECK-ENCODING: [0x35,0xa9,0xa5,0xc1]
274 // CHECK-ERROR: instruction requires: sme2
275 // CHECK-UNKNOWN: c1a5a935 <unknown>
277 fminnm {z20.s - z23.s}, {z20.s - z23.s}, z8.s // 11000001-10101000-10101001-00110101
278 // CHECK-INST: fminnm { z20.s - z23.s }, { z20.s - z23.s }, z8.s
279 // CHECK-ENCODING: [0x35,0xa9,0xa8,0xc1]
280 // CHECK-ERROR: instruction requires: sme2
281 // CHECK-UNKNOWN: c1a8a935 <unknown>
283 fminnm {z28.s - z31.s}, {z28.s - z31.s}, z15.s // 11000001-10101111-10101001-00111101
284 // CHECK-INST: fminnm { z28.s - z31.s }, { z28.s - z31.s }, z15.s
285 // CHECK-ENCODING: [0x3d,0xa9,0xaf,0xc1]
286 // CHECK-ERROR: instruction requires: sme2
287 // CHECK-UNKNOWN: c1afa93d <unknown>
290 fminnm {z0.s - z3.s}, {z0.s - z3.s}, {z0.s - z3.s} // 11000001-10100000-10111001-00100001
291 // CHECK-INST: fminnm { z0.s - z3.s }, { z0.s - z3.s }, { z0.s - z3.s }
292 // CHECK-ENCODING: [0x21,0xb9,0xa0,0xc1]
293 // CHECK-ERROR: instruction requires: sme2
294 // CHECK-UNKNOWN: c1a0b921 <unknown>
296 fminnm {z20.s - z23.s}, {z20.s - z23.s}, {z20.s - z23.s} // 11000001-10110100-10111001-00110101
297 // CHECK-INST: fminnm { z20.s - z23.s }, { z20.s - z23.s }, { z20.s - z23.s }
298 // CHECK-ENCODING: [0x35,0xb9,0xb4,0xc1]
299 // CHECK-ERROR: instruction requires: sme2
300 // CHECK-UNKNOWN: c1b4b935 <unknown>
302 fminnm {z20.s - z23.s}, {z20.s - z23.s}, {z8.s - z11.s} // 11000001-10101000-10111001-00110101
303 // CHECK-INST: fminnm { z20.s - z23.s }, { z20.s - z23.s }, { z8.s - z11.s }
304 // CHECK-ENCODING: [0x35,0xb9,0xa8,0xc1]
305 // CHECK-ERROR: instruction requires: sme2
306 // CHECK-UNKNOWN: c1a8b935 <unknown>
308 fminnm {z28.s - z31.s}, {z28.s - z31.s}, {z28.s - z31.s} // 11000001-10111100-10111001-00111101
309 // CHECK-INST: fminnm { z28.s - z31.s }, { z28.s - z31.s }, { z28.s - z31.s }
310 // CHECK-ENCODING: [0x3d,0xb9,0xbc,0xc1]
311 // CHECK-ERROR: instruction requires: sme2
312 // CHECK-UNKNOWN: c1bcb93d <unknown>