1 // RUN
: llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sme-lutv2
< %s \
2 // RUN
: | FileCheck
%s
--check-prefixes
=CHECK-ENCODING
,CHECK-INST
4 // RUN
: not llvm-mc
-triple
=aarch64
-show-encoding
< %s
2>&1 \
5 // RUN
: | FileCheck
%s
--check-prefix
=CHECK-ERROR
7 // RUN
: llvm-mc
-triple
=aarch64
-filetype
=obj
-mattr
=+sme-lutv2
< %s \
8 // RUN
: | llvm-objdump
-d
--mattr
=+sme-lutv2
--no-print-imm-hex
- \
9 // RUN
: | FileCheck
%s
--check-prefix
=CHECK-INST
11 // RUN
: llvm-mc
-triple
=aarch64
-filetype
=obj
-mattr
=+sme-lutv2
< %s \
12 // RUN
: | llvm-objdump
-d
--mattr
=-sme-lutv2
--no-print-imm-hex
- \
13 // RUN
: | FileCheck
%s
--check-prefix
=CHECK-UNKNOWN
15 // Disassemble encoding
and check the re-encoding
(-show-encoding
) matches.
16 // RUN
: llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sme2
,+sme2p1
,+sme-lutv2
< %s \
17 // RUN
: | sed
'/.text/d' | sed
's/.*encoding: //g' \
18 // RUN
: | llvm-mc
-triple
=aarch64
-mattr
=+sme2
,+sme2p1
,+sme-lutv2
-disassemble
-show-encoding \
19 // RUN
: | FileCheck
%s
--check-prefixes
=CHECK-ENCODING
,CHECK-INST
21 movt zt0
, z0
// 11000000-01001111-00000011-11100000
22 // CHECK-INST
: movt zt0
, z0
23 // CHECK-ENCODING
: [0xe0,0x03,0x4f,0xc0]
24 // CHECK-ERROR
: instruction requires
: sme-lutv2
25 // CHECK-UNKNOWN
: c04f03e0
<unknown
>
27 movt zt0
[3, mul vl
], z31
// 11000000-01001111-00110011-11111111
28 // CHECK-INST
: movt zt0
[3, mul vl
], z31
29 // CHECK-ENCODING
: [0xff,0x33,0x4f,0xc0]
30 // CHECK-ERROR
: instruction requires
: sme-lutv2
31 // CHECK-UNKNOWN
: c04f33ff
<unknown
>