1 // RUN
: llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sve2-bitperm
< %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
: not llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sme
< %s
2>&1 \
6 // RUN
: | FileCheck
%s
--check-prefix
=CHECK-ERROR
7 // RUN
: llvm-mc
-triple
=aarch64
-filetype
=obj
-mattr
=+sve2-bitperm
< %s \
8 // RUN
: | llvm-objdump
-d
--mattr
=+sve2-bitperm
- | FileCheck
%s
--check-prefix
=CHECK-INST
9 // RUN
: llvm-mc
-triple
=aarch64
-filetype
=obj
-mattr
=+sve2-bitperm
< %s \
10 // RUN
: | llvm-objdump
-d
--mattr
=-sve2
- | FileCheck
%s
--check-prefix
=CHECK-UNKNOWN
12 bext z0.
b, z1.
b, z31.
b
13 // CHECK-INST
: bext z0.
b, z1.
b, z31.
b
14 // CHECK-ENCODING
: [0x20,0xb0,0x1f,0x45]
15 // CHECK-ERROR
: instruction requires
: sve2-bitperm
16 // CHECK-UNKNOWN
: 451fb020
<unknown
>
18 bext z0.h
, z1.h
, z31.h
19 // CHECK-INST
: bext z0.h
, z1.h
, z31.h
20 // CHECK-ENCODING
: [0x20,0xb0,0x5f,0x45]
21 // CHECK-ERROR
: instruction requires
: sve2-bitperm
22 // CHECK-UNKNOWN
: 455fb020
<unknown
>
24 bext z0.s
, z1.s
, z31.s
25 // CHECK-INST
: bext z0.s
, z1.s
, z31.s
26 // CHECK-ENCODING
: [0x20,0xb0,0x9f,0x45]
27 // CHECK-ERROR
: instruction requires
: sve2-bitperm
28 // CHECK-UNKNOWN
: 459fb020
<unknown
>
30 bext z0.d
, z1.d
, z31.d
31 // CHECK-INST
: bext z0.d
, z1.d
, z31.d
32 // CHECK-ENCODING
: [0x20,0xb0,0xdf,0x45]
33 // CHECK-ERROR
: instruction requires
: sve2-bitperm
34 // CHECK-UNKNOWN
: 45dfb020
<unknown
>