1 // RUN
: llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sme2
< %s \
2 // RUN
: | FileCheck
%s
--check-prefixes
=CHECK-ENCODING
,CHECK-INST
3 // RUN
: llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sve2p1
< %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
=+sme2
< %s \
8 // RUN
: | llvm-objdump
-d
--no-print-imm-hex
--mattr
=+sme2
- | FileCheck
%s
--check-prefix
=CHECK-INST
9 // RUN
: llvm-mc
-triple
=aarch64
-filetype
=obj
-mattr
=+sme2
< %s \
10 // RUN
: | llvm-objdump
-d
--mattr
=-sme2
,-sve2p1
- | FileCheck
%s
--check-prefix
=CHECK-UNKNOWN
11 // RUN
: llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sme2
< %s \
12 // RUN
: | sed
'/.text/d' | sed
's/.*encoding: //g' \
13 // RUN
: | llvm-mc
-triple
=aarch64
-mattr
=+sme2
-disassemble
-show-encoding \
14 // RUN
: | FileCheck
%s
--check-prefixes
=CHECK-ENCODING
,CHECK-INST
16 uqrshrn z0.h
, {z0.s-z1.s
}, #16 // 01000101-10110000-00111000-00000000
17 // CHECK-INST
: uqrshrn z0.h
, { z0.s
, z1.s
}, #16
18 // CHECK-ENCODING
: [0x00,0x38,0xb0,0x45]
19 // CHECK-ERROR
: instruction requires
: sme2
or sve2p1
20 // CHECK-UNKNOWN
: 45b03800
<unknown
>
22 uqrshrn z21.h
, {z10.s-z11.s
}, #11 // 01000101-10110101-00111001-01010101
23 // CHECK-INST
: uqrshrn z21.h
, { z10.s
, z11.s
}, #11
24 // CHECK-ENCODING
: [0x55,0x39,0xb5,0x45]
25 // CHECK-ERROR
: instruction requires
: sme2
or sve2p1
26 // CHECK-UNKNOWN
: 45b53955
<unknown
>
28 uqrshrn z23.h
, {z12.s-z13.s
}, #8 // 01000101-10111000-00111001-10010111
29 // CHECK-INST
: uqrshrn z23.h
, { z12.s
, z13.s
}, #8
30 // CHECK-ENCODING
: [0x97,0x39,0xb8,0x45]
31 // CHECK-ERROR
: instruction requires
: sme2
or sve2p1
32 // CHECK-UNKNOWN
: 45b83997
<unknown
>
34 uqrshrn z31.h
, {z30.s-z31.s
}, #1 // 01000101-10111111-00111011-11011111
35 // CHECK-INST
: uqrshrn z31.h
, { z30.s
, z31.s
}, #1
36 // CHECK-ENCODING
: [0xdf,0x3b,0xbf,0x45]
37 // CHECK-ERROR
: instruction requires
: sme2
or sve2p1
38 // CHECK-UNKNOWN
: 45bf3bdf
<unknown
>