1 // RUN
: not llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sve
2>&1 < %s| FileCheck
%s
3 // input should
be a 64bit scalar register
5 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid operand for instruction
6 // CHECK-NEXT
: mov z0.d
, w0
7 // CHECK-
NOT: [[@LINE-
3]]:{{[0-9]+}}:
9 // wzr is
not a valid operand to mov
11 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid operand for instruction
12 // CHECK-NEXT
: mov z0.s
, wzr
13 // CHECK-
NOT: [[@LINE-
3]]:{{[0-9]+}}:
15 // xzr is
not a valid operand to mov
17 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid operand for instruction
18 // CHECK-NEXT
: mov z0.d
, xzr
19 // CHECK-
NOT: [[@LINE-
3]]:{{[0-9]+}}:
22 // --------------------------------------------------------------------------//
23 // Unpredicated mov of Z register only allowed for
.d
26 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: too few operands for instruction
27 // CHECK-NEXT
: mov z0.
b, z1.
b
28 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
31 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: too few operands for instruction
32 // CHECK-NEXT
: mov z0.h
, z1.h
33 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
36 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: too few operands for instruction
37 // CHECK-NEXT
: mov z0.s
, z1.s
38 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
40 // --------------------------------------------------------------------------//
41 // Invalid scalar operand for result element width.
44 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid operand for instruction
45 // CHECK-NEXT
: mov z0.d
, w0
46 // CHECK-
NOT: [[@LINE-
3]]:{{[0-9]+}}:
49 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid operand for instruction
50 // CHECK-NEXT
: mov z0.
b, p0
/m
, x0
51 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
54 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid operand for instruction
55 // CHECK-NEXT
: mov z0.h
, p0
/m
, x0
56 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
59 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid operand for instruction
60 // CHECK-NEXT
: mov z0.s
, p0
/m
, x0
61 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
64 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid operand for instruction
65 // CHECK-NEXT
: mov z0.d
, p0
/m
, w0
66 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
69 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid operand for instruction
70 // CHECK-NEXT
: mov z0.
b, p0
/m
, h0
71 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
74 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid operand for instruction
75 // CHECK-NEXT
: mov z0.
b, p0
/m
, s0
76 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
79 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid operand for instruction
80 // CHECK-NEXT
: mov z0.
b, p0
/m
, d0
81 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
84 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid operand for instruction
85 // CHECK-NEXT
: mov z0.h
, p0
/m
, b0
86 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
89 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid operand for instruction
90 // CHECK-NEXT
: mov z0.h
, p0
/m
, s0
91 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
94 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid operand for instruction
95 // CHECK-NEXT
: mov z0.h
, p0
/m
, d0
96 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
99 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid operand for instruction
100 // CHECK-NEXT
: mov z0.s
, p0
/m
, b0
101 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
104 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid operand for instruction
105 // CHECK-NEXT
: mov z0.s
, p0
/m
, h0
106 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
109 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid operand for instruction
110 // CHECK-NEXT
: mov z0.s
, p0
/m
, d0
111 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
114 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid operand for instruction
115 // CHECK-NEXT
: mov z0.d
, p0
/m
, b0
116 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
119 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid operand for instruction
120 // CHECK-NEXT
: mov z0.d
, p0
/m
, h0
121 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
124 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid operand for instruction
125 // CHECK-NEXT
: mov z0.d
, p0
/m
, s0
126 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
128 // --------------------------------------------------------------------------//
129 // Invalid immediates
131 mov z0.
b, #0, lsl #8 // #0, lsl #8 is not valid for .b
132 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 255]
133 // CHECK-NEXT
: mov z0.
b, #0, lsl #8
134 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
137 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 255]
138 // CHECK-NEXT
: mov z0.
b, #-129
139 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
141 mov z0.
b, #-1, lsl #8
142 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 255]
143 // CHECK-NEXT
: mov z0.
b, #-1, lsl #8
144 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
147 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 255]
148 // CHECK-NEXT
: mov z0.
b, #256
149 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
152 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 255]
153 // CHECK-NEXT
: mov z0.
b, #1, lsl #8
154 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
157 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 127] or a multiple of
256 in range
[-32768, 65280]
158 // CHECK-NEXT
: mov z0.h
, #-33024
159 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
162 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 127] or a multiple of
256 in range
[-32768, 65280]
163 // CHECK-NEXT
: mov z0.h
, #-32769
164 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
166 mov z0.h
, #-129, lsl #8
167 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 127] or a multiple of
256 in range
[-32768, 65280]
168 // CHECK-NEXT
: mov z0.h
, #-129, lsl #8
169 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
171 // Note
: 65281 is
a valid logical immediate.
173 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 127] or a multiple of
256 in range
[-32768, 65280]
174 // CHECK-NEXT
: mov z0.h
, #65282
175 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
177 mov z0.h
, #256, lsl #8
178 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 127] or a multiple of
256 in range
[-32768, 65280]
179 // CHECK-NEXT
: mov z0.h
, #256, lsl #8
180 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
183 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 127] or a multiple of
256 in range
[-32768, 32512]
184 // CHECK-NEXT
: mov z0.s
, #-33024
185 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
187 mov z0.s
, #-129, lsl #8
188 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 127] or a multiple of
256 in range
[-32768, 32512]
189 // CHECK-NEXT
: mov z0.s
, #-129, lsl #8
190 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
193 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 127] or a multiple of
256 in range
[-32768, 32512]
194 // CHECK-NEXT
: mov z0.s
, #32513
195 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
197 mov z0.s
, #128, lsl #8
198 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 127] or a multiple of
256 in range
[-32768, 32512]
199 // CHECK-NEXT
: mov z0.s
, #128, lsl #8
200 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
203 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 127] or a multiple of
256 in range
[-32768, 32512]
204 // CHECK-NEXT
: mov z0.d
, #-33024
205 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
207 mov z0.d
, #-129, lsl #8
208 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 127] or a multiple of
256 in range
[-32768, 32512]
209 // CHECK-NEXT
: mov z0.d
, #-129, lsl #8
210 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
213 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 127] or a multiple of
256 in range
[-32768, 32512]
214 // CHECK-NEXT
: mov z0.d
, #32513
215 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
217 mov z0.d
, #128, lsl #8
218 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 127] or a multiple of
256 in range
[-32768, 32512]
219 // CHECK-NEXT
: mov z0.d
, #128, lsl #8
220 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
223 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 255] with
a shift amount of
0
224 // CHECK-NEXT
: mov z5.
b, #0xfff9
225 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
228 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 127] or a multiple of
256 in range
[-32768, 65280]
229 // CHECK-NEXT
: mov z5.h
, #0xfffa
230 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
232 mov z5.h
, #0xfffffff9
233 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 127] or a multiple of
256 in range
[-32768, 65280]
234 // CHECK-NEXT
: mov z5.h
, #0xfffffff9
235 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
237 mov z5.s
, #0xfffffffa
238 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 127] or a multiple of
256 in range
[-32768, 32512]
239 // CHECK-NEXT
: mov z5.s
, #0xfffffffa
240 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
242 mov z5.s
, #0xffffffffffffff9
243 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 127] or a multiple of
256 in range
[-32768, 32512]
244 // CHECK-NEXT
: mov z5.s
, #0xffffffffffffff9
245 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
247 mov z0.
b, p0
/z
, #0, lsl #8 // #0, lsl #8 is not valid for .b
248 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 255]
249 // CHECK-NEXT
: mov z0.
b, p0
/z
, #0, lsl #8
250 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
252 mov z0.
b, p0
/z
, #-129
253 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 255]
254 // CHECK-NEXT
: mov z0.
b, p0
/z
, #-129
255 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
257 mov z0.
b, p0
/z
, #-1, lsl #8
258 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 255]
259 // CHECK-NEXT
: mov z0.
b, p0
/z
, #-1, lsl #8
260 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
263 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 255]
264 // CHECK-NEXT
: mov z0.
b, p0
/z
, #256
265 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
267 mov z0.
b, p0
/z
, #1, lsl #8
268 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 255]
269 // CHECK-NEXT
: mov z0.
b, p0
/z
, #1, lsl #8
270 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
272 mov z0.h
, p0
/z
, #-33024
273 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 127] or a multiple of
256 in range
[-32768, 65280]
274 // CHECK-NEXT
: mov z0.h
, p0
/z
, #-33024
275 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
277 mov z0.h
, p0
/z
, #-32769
278 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 127] or a multiple of
256 in range
[-32768, 65280]
279 // CHECK-NEXT
: mov z0.h
, p0
/z
, #-32769
280 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
282 mov z0.h
, p0
/z
, #-129, lsl #8
283 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 127] or a multiple of
256 in range
[-32768, 65280]
284 // CHECK-NEXT
: mov z0.h
, p0
/z
, #-129, lsl #8
285 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
287 mov z0.h
, p0
/z
, #32513
288 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 127] or a multiple of
256 in range
[-32768, 65280]
289 // CHECK-NEXT
: mov z0.h
, p0
/z
, #32513
290 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
292 mov z0.h
, p0
/z
, #65281
293 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 127] or a multiple of
256 in range
[-32768, 65280]
294 // CHECK-NEXT
: mov z0.h
, p0
/z
, #65281
295 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
297 mov z0.h
, p0
/z
, #256, lsl #8
298 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 127] or a multiple of
256 in range
[-32768, 65280]
299 // CHECK-NEXT
: mov z0.h
, p0
/z
, #256, lsl #8
300 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
302 mov z0.s
, p0
/z
, #-33024
303 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 127] or a multiple of
256 in range
[-32768, 32512]
304 // CHECK-NEXT
: mov z0.s
, p0
/z
, #-33024
305 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
307 mov z0.s
, p0
/z
, #-32769
308 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 127] or a multiple of
256 in range
[-32768, 32512]
309 // CHECK-NEXT
: mov z0.s
, p0
/z
, #-32769
310 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
312 mov z0.s
, p0
/z
, #-129, lsl #8
313 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 127] or a multiple of
256 in range
[-32768, 32512]
314 // CHECK-NEXT
: mov z0.s
, p0
/z
, #-129, lsl #8
315 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
317 mov z0.s
, p0
/z
, #32513
318 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 127] or a multiple of
256 in range
[-32768, 32512]
319 // CHECK-NEXT
: mov z0.s
, p0
/z
, #32513
320 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
322 mov z0.s
, p0
/z
, #32768
323 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 127] or a multiple of
256 in range
[-32768, 32512]
324 // CHECK-NEXT
: mov z0.s
, p0
/z
, #32768
325 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
327 mov z0.s
, p0
/z
, #128, lsl #8
328 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 127] or a multiple of
256 in range
[-32768, 32512]
329 // CHECK-NEXT
: mov z0.s
, p0
/z
, #128, lsl #8
330 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
332 mov z0.d
, p0
/z
, #-33024
333 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 127] or a multiple of
256 in range
[-32768, 32512]
334 // CHECK-NEXT
: mov z0.d
, p0
/z
, #-33024
335 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
337 mov z0.d
, p0
/z
, #-32769
338 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 127] or a multiple of
256 in range
[-32768, 32512]
339 // CHECK-NEXT
: mov z0.d
, p0
/z
, #-32769
340 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
342 mov z0.d
, p0
/z
, #-129, lsl #8
343 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 127] or a multiple of
256 in range
[-32768, 32512]
344 // CHECK-NEXT
: mov z0.d
, p0
/z
, #-129, lsl #8
345 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
347 mov z0.d
, p0
/z
, #32513
348 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 127] or a multiple of
256 in range
[-32768, 32512]
349 // CHECK-NEXT
: mov z0.d
, p0
/z
, #32513
350 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
352 mov z0.d
, p0
/z
, #32768
353 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 127] or a multiple of
256 in range
[-32768, 32512]
354 // CHECK-NEXT
: mov z0.d
, p0
/z
, #32768
355 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
357 mov z0.d
, p0
/z
, #128, lsl #8
358 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[-128, 127] or a multiple of
256 in range
[-32768, 32512]
359 // CHECK-NEXT
: mov z0.d
, p0
/z
, #128, lsl #8
360 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
363 // --------------------------------------------------------------------------//
364 // Immediate
not compatible with encode
/decode function.
367 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: vector lane must
be an integer in range
[0, 63].
368 // CHECK-NEXT
: mov z24.
b, z17.
b[-1]
369 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
372 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: vector lane must
be an integer in range
[0, 63].
373 // CHECK-NEXT
: mov z17.
b, z5.
b[64]
374 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
377 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: vector lane must
be an integer in range
[0, 31].
378 // CHECK-NEXT
: mov z16.h
, z30.h
[-1]
379 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
382 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: vector lane must
be an integer in range
[0, 31].
383 // CHECK-NEXT
: mov z19.h
, z23.h
[32]
384 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
387 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: vector lane must
be an integer in range
[0, 15].
388 // CHECK-NEXT
: mov z1.s
, z6.s
[-1]
389 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
392 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: vector lane must
be an integer in range
[0, 15].
393 // CHECK-NEXT
: mov z24.s
, z3.s
[16]
394 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
397 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: vector lane must
be an integer in range
[0, 7].
398 // CHECK-NEXT
: mov z5.d
, z25.d
[-1]
399 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
402 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: vector lane must
be an integer in range
[0, 7].
403 // CHECK-NEXT
: mov z12.d
, z28.d
[8]
404 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
407 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: vector lane must
be an integer in range
[0, 3].
408 // CHECK-NEXT
: mov z22.q
, z7.q
[-1]
409 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
412 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: vector lane must
be an integer in range
[0, 3].
413 // CHECK-NEXT
: mov z24.q
, z21.q
[4]
414 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
417 // --------------------------------------------------------------------------//
418 // Negative tests for instructions that are incompatible with movprfx
420 movprfx z31.
b, p0
/z
, z6.
b
422 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: instruction is unpredictable when following
a movprfx
, suggest replacing movprfx with mov
423 // CHECK-NEXT
: mov z31.
b, wsp
424 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
428 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: instruction is unpredictable when following
a movprfx
, suggest replacing movprfx with mov
429 // CHECK-NEXT
: mov z31.
b, wsp
430 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
432 movprfx z0.d
, p0
/z
, z7.d
433 mov z0.d
, #0xe0000000000003ff
434 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: instruction is unpredictable when following
a movprfx
, suggest replacing movprfx with mov
435 // CHECK-NEXT
: mov z0.d
, #0xe0000000000003ff
436 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
439 mov z0.d
, #0xe0000000000003ff
440 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: instruction is unpredictable when following
a movprfx
, suggest replacing movprfx with mov
441 // CHECK-NEXT
: mov z0.d
, #0xe0000000000003ff
442 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
444 movprfx z4.d
, p7
/z
, z6.d
445 mov z4.d
, p7
/m
, z31.d
446 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: instruction is unpredictable when following
a movprfx
, suggest replacing movprfx with mov
447 // CHECK-NEXT
: mov z4.d
, p7
/m
, z31.d
448 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
451 mov z31.d
, p15
/m
, z31.d
452 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: instruction is unpredictable when following
a movprfx
, suggest replacing movprfx with mov
453 // CHECK-NEXT
: mov z31.d
, p15
/m
, z31.d
454 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
456 movprfx z0.d
, p0
/z
, z7.d
458 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: instruction is unpredictable when following
a movprfx
, suggest replacing movprfx with mov
459 // CHECK-NEXT
: mov z0.d
, d0
460 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
464 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: instruction is unpredictable when following
a movprfx
, suggest replacing movprfx with mov
465 // CHECK-NEXT
: mov z0.d
, d0
466 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
468 movprfx z31.d
, p0
/z
, z6.d
470 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: instruction is unpredictable when following
a movprfx
, suggest replacing movprfx with mov
471 // CHECK-NEXT
: mov z31.d
, z0.d
472 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
476 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: instruction is unpredictable when following
a movprfx
, suggest replacing movprfx with mov
477 // CHECK-NEXT
: mov z31.d
, z0.d
478 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
480 movprfx z31.d
, p0
/z
, z6.d
482 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: instruction is unpredictable when following
a movprfx
, suggest replacing movprfx with mov
483 // CHECK-NEXT
: mov z31.d
, z31.d
[7]
484 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
488 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: instruction is unpredictable when following
a movprfx
, suggest replacing movprfx with mov
489 // CHECK-NEXT
: mov z31.d
, z31.d
[7]
490 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}: