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 sutmopa za0.s
, {z0.b-z1.
b}, z0.
b, z20
[0] // 10000000-01100000-10000000-00000000
16 // CHECK-INST
: sutmopa za0.s
, { z0.
b, z1.
b }, z0.
b, z20
[0]
17 // CHECK-ENCODING
: [0x00,0x80,0x60,0x80]
18 // CHECK-ERROR
: instruction requires
: sme2p2
19 // CHECK-UNKNOWN
: 80608000 <unknown
>
21 sutmopa za1.s
, {z10.b-z11.
b}, z21.
b, z29
[1] // 10000000-01110101-10010101-01010001
22 // CHECK-INST
: sutmopa za1.s
, { z10.
b, z11.
b }, z21.
b, z29
[1]
23 // CHECK-ENCODING
: [0x51,0x95,0x75,0x80]
24 // CHECK-ERROR
: instruction requires
: sme2p2
25 // CHECK-UNKNOWN
: 80759551 <unknown
>
27 sutmopa za3.s
, {z30.b-z31.
b}, z31.
b, z31
[3] // 10000000-01111111-10011111-11110011
28 // CHECK-INST
: sutmopa za3.s
, { z30.
b, z31.
b }, z31.
b, z31
[3]
29 // CHECK-ENCODING
: [0xf3,0x9f,0x7f,0x80]
30 // CHECK-ERROR
: instruction requires
: sme2p2
31 // CHECK-UNKNOWN
: 807f9ff3
<unknown
>