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 stmopa za0.s
, {z0.b-z1.
b}, z0.
b, z20
[0] // 10000000-01000000-10000000-00000000
16 // CHECK-INST
: stmopa za0.s
, { z0.
b, z1.
b }, z0.
b, z20
[0]
17 // CHECK-ENCODING
: [0x00,0x80,0x40,0x80]
18 // CHECK-ERROR
: instruction requires
: sme2p2
19 // CHECK-UNKNOWN
: 80408000 <unknown
>
21 stmopa za3.s
, {z12.b-z13.
b}, z8.
b, z23
[3] // 10000000-01001000-10001101-10110011
22 // CHECK-INST
: stmopa za3.s
, { z12.
b, z13.
b }, z8.
b, z23
[3]
23 // CHECK-ENCODING
: [0xb3,0x8d,0x48,0x80]
24 // CHECK-ERROR
: instruction requires
: sme2p2
25 // CHECK-UNKNOWN
: 80488db3
<unknown
>
27 stmopa za3.s
, {z30.b-z31.
b}, z31.
b, z31
[3] // 10000000-01011111-10011111-11110011
28 // CHECK-INST
: stmopa za3.s
, { z30.
b, z31.
b }, z31.
b, z31
[3]
29 // CHECK-ENCODING
: [0xf3,0x9f,0x5f,0x80]
30 // CHECK-ERROR
: instruction requires
: sme2p2
31 // CHECK-UNKNOWN
: 805f9ff3
<unknown
>
33 stmopa za0.s
, {z0.h-z1.h
}, z0.h
, z20
[0] // 10000000-01000000-10000000-00001000
34 // CHECK-INST
: stmopa za0.s
, { z0.h
, z1.h
}, z0.h
, z20
[0]
35 // CHECK-ENCODING
: [0x08,0x80,0x40,0x80]
36 // CHECK-ERROR
: instruction requires
: sme2p2
37 // CHECK-UNKNOWN
: 80408008 <unknown
>
39 stmopa za3.s
, {z12.h-z13.h
}, z8.h
, z23
[3] // 10000000-01001000-10001101-10111011
40 // CHECK-INST
: stmopa za3.s
, { z12.h
, z13.h
}, z8.h
, z23
[3]
41 // CHECK-ENCODING
: [0xbb,0x8d,0x48,0x80]
42 // CHECK-ERROR
: instruction requires
: sme2p2
43 // CHECK-UNKNOWN
: 80488dbb
<unknown
>
45 stmopa za3.s
, {z30.h-z31.h
}, z31.h
, z31
[3] // 10000000-01011111-10011111-11111011
46 // CHECK-INST
: stmopa za3.s
, { z30.h
, z31.h
}, z31.h
, z31
[3]
47 // CHECK-ENCODING
: [0xfb,0x9f,0x5f,0x80]
48 // CHECK-ERROR
: instruction requires
: sme2p2
49 // CHECK-UNKNOWN
: 805f9ffb
<unknown
>