]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gas/testsuite/gas/aarch64/sve-movprfx_24.s
Fix an assertion failure in the AArch64 assembler triggered by incorrect instruction...
[thirdparty/binutils-gdb.git] / gas / testsuite / gas / aarch64 / sve-movprfx_24.s
1 /* Only predicated vector BIC is allowed following a movprfx, and some pseudo
2 instructions should be allowed due to the instructions they alias.
3 Has invalid usages. Diagnosis required. */
4 .text
5 .arch armv8-a+sve
6
7 f:
8 /* OK, vectored predicated. */
9 movprfx z1.D, p1/m, z3.D
10 bic z1.D, p1/M, z1.D, z2.D
11
12 /* Not OK, vectored unpredicated. */
13 movprfx z1.D, p1/m, z3.D
14 bic z1.D, z1.D, z2.D
15
16 /* Not OK, vectored unpredicated. */
17 movprfx z1, z3
18 bic z1.D, z1.D, z2.D
19
20 /* Not OK, immediate form, unpredicated. */
21 movprfx z1.D, p1/m, z3.D
22 bic z1.D, z1.D, #12
23
24 /* OK, immediate form alias of AND which is allowed. */
25 movprfx z1, z3
26 bic z1.D, z1.D, #12
27
28 /* OK, immediate form alias of EOR which is allowed. */
29 movprfx z1, z3
30 eon z1.D, z1.D, #12
31
32 /* OK, immediate form alias of ORR which is allowed. */
33 movprfx z1, z3
34 orr z1.D, z1.D, #12
35 ret
36