1 // RUN
: llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sme2
< %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
=+sme2
< %s \
6 // RUN
: | llvm-objdump
-d
--mattr
=+sme2
- | FileCheck
%s
--check-prefix
=CHECK-INST
7 // RUN
: llvm-mc
-triple
=aarch64
-filetype
=obj
-mattr
=+sme2
< %s \
8 // RUN
: | llvm-objdump
-d
--mattr
=-sme2
- | FileCheck
%s
--check-prefix
=CHECK-UNKNOWN
9 // RUN
: llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sme2
< %s \
10 // RUN
: | sed
'/.text/d' | sed
's/.*encoding: //g' \
11 // RUN
: | llvm-mc
-triple
=aarch64
-mattr
=+sme2
-disassemble
-show-encoding \
12 // RUN
: | FileCheck
%s
--check-prefixes
=CHECK-ENCODING
,CHECK-INST
15 movt x0
, zt0
[0] // 11000000-01001100-00000011-11100000
16 // CHECK-INST
: movt x0
, zt0
[0]
17 // CHECK-ENCODING
: [0xe0,0x03,0x4c,0xc0]
18 // CHECK-ERROR
: instruction requires
: sme2
19 // CHECK-UNKNOWN
: c04c03e0
<unknown
>
21 movt x21
, zt0
[40] // 11000000-01001100-01010011-11110101
22 // CHECK-INST
: movt x21
, zt0
[40]
23 // CHECK-ENCODING
: [0xf5,0x53,0x4c,0xc0]
24 // CHECK-ERROR
: instruction requires
: sme2
25 // CHECK-UNKNOWN
: c04c53f5
<unknown
>
27 movt x23
, zt0
[48] // 11000000-01001100-01100011-11110111
28 // CHECK-INST
: movt x23
, zt0
[48]
29 // CHECK-ENCODING
: [0xf7,0x63,0x4c,0xc0]
30 // CHECK-ERROR
: instruction requires
: sme2
31 // CHECK-UNKNOWN
: c04c63f7
<unknown
>
33 movt xzr
, zt0
[56] // 11000000-01001100-01110011-11111111
34 // CHECK-INST
: movt xzr
, zt0
[56]
35 // CHECK-ENCODING
: [0xff,0x73,0x4c,0xc0]
36 // CHECK-ERROR
: instruction requires
: sme2
37 // CHECK-UNKNOWN
: c04c73ff
<unknown
>
40 movt zt0
[0], x0
// 11000000-01001110-00000011-11100000
41 // CHECK-INST
: movt zt0
[0], x0
42 // CHECK-ENCODING
: [0xe0,0x03,0x4e,0xc0]
43 // CHECK-ERROR
: instruction requires
: sme2
44 // CHECK-UNKNOWN
: c04e03e0
<unknown
>
46 movt zt0
[40], x21
// 11000000-01001110-01010011-11110101
47 // CHECK-INST
: movt zt0
[40], x21
48 // CHECK-ENCODING
: [0xf5,0x53,0x4e,0xc0]
49 // CHECK-ERROR
: instruction requires
: sme2
50 // CHECK-UNKNOWN
: c04e53f5
<unknown
>
52 movt zt0
[48], x23
// 11000000-01001110-01100011-11110111
53 // CHECK-INST
: movt zt0
[48], x23
54 // CHECK-ENCODING
: [0xf7,0x63,0x4e,0xc0]
55 // CHECK-ERROR
: instruction requires
: sme2
56 // CHECK-UNKNOWN
: c04e63f7
<unknown
>
58 movt zt0
[56], xzr
// 11000000-01001110-01110011-11111111
59 // CHECK-INST
: movt zt0
[56], xzr
60 // CHECK-ENCODING
: [0xff,0x73,0x4e,0xc0]
61 // CHECK-ERROR
: instruction requires
: sme2
62 // CHECK-UNKNOWN
: c04e73ff
<unknown
>