1 // RUN
: llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sme2p2
< %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
: llvm-mc
-triple
=aarch64
-filetype
=obj
-mattr
=+sme2p2
< %s \
6 // RUN
: | llvm-objdump
-d
--mattr
=+sme2p2
--no-print-imm-hex
- | FileCheck
%s
--check-prefix
=CHECK-INST
7 // RUN
: llvm-mc
-triple
=aarch64
-filetype
=obj
-mattr
=+sme2p2
< %s \
8 // RUN
: | llvm-objdump
-d
--mattr
=-sme2p2
--no-print-imm-hex
- | FileCheck
%s
--check-prefix
=CHECK-UNKNOWN
9 // Disassemble encoding
and check the re-encoding
(-show-encoding
) matches.
10 // RUN
: llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sme2p2
< %s \
11 // RUN
: | sed
'/.text/d' | sed
's/.*encoding: //g' \
12 // RUN
: | llvm-mc
-triple
=aarch64
-mattr
=+sme2p2
-disassemble
-show-encoding \
13 // RUN
: | FileCheck
%s
--check-prefixes
=CHECK-ENCODING
,CHECK-INST
15 ustmopa za0.s
, {z0.b-z1.
b}, z0.
b, z20
[0] // 10000001-01000000-10000000-00000000
16 // CHECK-INST
: ustmopa za0.s
, { z0.
b, z1.
b }, z0.
b, z20
[0]
17 // CHECK-ENCODING
: [0x00,0x80,0x40,0x81]
18 // CHECK-ERROR
: instruction requires
: sme2p2
19 // CHECK-UNKNOWN
: 81408000 <unknown
>
21 ustmopa za3.s
, {z12.b-z13.
b}, z8.
b, z23
[3] // 10000001-01001000-10001101-10110011
22 // CHECK-INST
: ustmopa za3.s
, { z12.
b, z13.
b }, z8.
b, z23
[3]
23 // CHECK-ENCODING
: [0xb3,0x8d,0x48,0x81]
24 // CHECK-ERROR
: instruction requires
: sme2p2
25 // CHECK-UNKNOWN
: 81488db3
<unknown
>
27 ustmopa za3.s
, {z30.b-z31.
b}, z31.
b, z31
[3] // 10000001-01011111-10011111-11110011
28 // CHECK-INST
: ustmopa za3.s
, { z30.
b, z31.
b }, z31.
b, z31
[3]
29 // CHECK-ENCODING
: [0xf3,0x9f,0x5f,0x81]
30 // CHECK-ERROR
: instruction requires
: sme2p2
31 // CHECK-UNKNOWN
: 815f9ff3
<unknown
>