aarch64: Try to report invalid variants against the closest match
[binutils-gdb.git] / gas / testsuite / gas / aarch64 / sve-movprfx_23.s
1 /* Instructions not allowed to be used with predicated movprfx. Invalid usage.
2 Diagnosis required. */
3 .text
4 .arch armv8-a+sve
5
6 /* All of these should be invalid because the predicated movprfx is used
7 with an unpredicated instruction. */
8
9 .macro test_sametwo inst
10 .irp sz, h,s,d
11 movprfx z1.\sz, p1/m, z3.\sz
12 \inst z1.\sz, p1.\sz
13 .endr
14 .endm
15
16 .macro test_samethree inst
17 .irp sz, b,h,s,d
18 movprfx z1.\sz, p1/m, z3.\sz
19 \inst z1.\sz, p1, z1.\sz, z1.\sz
20 .endr
21 .endm
22
23
24 f:
25 test_sametwo incp
26 test_sametwo decp
27
28 test_sametwo sqincp
29 test_sametwo sqdecp
30
31 test_samethree clasta
32 test_samethree clastb
33 ret
34