1 // RUN
: llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sve2
< %s \
2 // RUN
: | FileCheck
%s
--check-prefixes
=CHECK-ENCODING
,CHECK-INST
3 // RUN
: llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sme
< %s \
4 // RUN
: | FileCheck
%s
--check-prefixes
=CHECK-ENCODING
,CHECK-INST
5 // RUN
: not llvm-mc
-triple
=aarch64
-show-encoding
< %s
2>&1 \
6 // RUN
: | FileCheck
%s
--check-prefix
=CHECK-ERROR
7 // RUN
: llvm-mc
-triple
=aarch64
-filetype
=obj
-mattr
=+sve2
< %s \
8 // RUN
: | llvm-objdump
-d
--mattr
=+sve2
- | FileCheck
%s
--check-prefix
=CHECK-INST
9 // RUN
: llvm-mc
-triple
=aarch64
-filetype
=obj
-mattr
=+sve2
< %s \
10 // RUN
: | llvm-objdump
-d
--mattr
=-sve2
- | FileCheck
%s
--check-prefix
=CHECK-UNKNOWN
12 bsl1n z0.d
, z0.d
, z1.d
, z2.d
13 // CHECK-INST
: bsl1n z0.d
, z0.d
, z1.d
, z2.d
14 // CHECK-ENCODING
: [0x40,0x3c,0x61,0x04]
15 // CHECK-ERROR
: instruction requires
: sve2
or sme
16 // CHECK-UNKNOWN
: 04613c40
<unknown
>
19 // --------------------------------------------------------------------------//
20 // Test compatibility with MOVPRFX instruction.
23 // CHECK-INST
: movprfx z31
, z7
24 // CHECK-ENCODING
: [0xff,0xbc,0x20,0x04]
25 // CHECK-ERROR
: instruction requires
: sve
or sme
26 // CHECK-UNKNOWN
: 0420bcff
<unknown
>
28 bsl1n z31.d
, z31.d
, z30.d
, z29.d
29 // CHECK-INST
: bsl1n z31.d
, z31.d
, z30.d
, z29.d
30 // CHECK-ENCODING
: [0xbf,0x3f,0x7e,0x04]
31 // CHECK-ERROR
: instruction requires
: sve2
or sme
32 // CHECK-UNKNOWN
: 047e3fbf
<unknown
>