1 // RUN
: llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sme2p1
,+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
=+sme2p1
,+sme-lutv2
< %s \
8 // RUN
: | llvm-objdump
-d
--mattr
=+sme2p1
,+sme-lutv2
--no-print-imm-hex
- \
9 // RUN
: | FileCheck
%s
--check-prefix
=CHECK-INST
11 // RUN
: llvm-mc
-triple
=aarch64
-filetype
=obj
-mattr
=+sme2p1
,+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
=+sme2p1
,+sme-lutv2
< %s \
17 // RUN
: | sed
'/.text/d' | sed
's/.*encoding: //g' \
18 // RUN
: | llvm-mc
-triple
=aarch64
-mattr
=+sme2p1
,+sme-lutv2
-disassemble
-show-encoding \
19 // RUN
: | FileCheck
%s
--check-prefixes
=CHECK-ENCODING
,CHECK-INST
21 luti4
{z0.b-z3.
b}, zt0
, {z0-z1
} // 11000000-10001011-00000000-00000000
22 // CHECK-INST
: luti4
{ z0.
b - z3.
b }, zt0
, { z0
, z1
}
23 // CHECK-ENCODING
: [0x00,0x00,0x8b,0xc0]
24 // CHECK-ERROR
: instruction requires
: sme-lutv2
25 // CHECK-UNKNOWN
: c08b0000
<unknown
>
27 luti4
{z28.b-z31.
b}, zt0
, {z30-z31
} // 11000000-10001011-00000011-11011100
28 // CHECK-INST
: luti4
{ z28.
b - z31.
b }, zt0
, { z30
, z31
}
29 // CHECK-ENCODING
: [0xdc,0x03,0x8b,0xc0]
30 // CHECK-ERROR
: instruction requires
: sme-lutv2
31 // CHECK-UNKNOWN
: c08b03dc
<unknown
>
34 luti4
{z0.
b, z4.
b, z8.
b, z12.
b}, zt0
, {z0-z1
} // 11000000-10011011-00000000-00000000
35 // CHECK-INST
: luti4
{ z0.
b, z4.
b, z8.
b, z12.
b }, zt0
, { z0
, z1
}
36 // CHECK-ENCODING
: [0x00,0x00,0x9b,0xc0]
37 // CHECK-ERROR
: instruction requires
: sme2p1 sme-lutv2
38 // CHECK-UNKNOWN
: c09b0000
<unknown
>
40 luti4
{z19.
b, z23.
b, z27.
b, z31.
b}, zt0
, {z30-z31
} // 11000000-10011011-00000011-11010011
41 // CHECK-INST
: luti4
{ z19.
b, z23.
b, z27.
b, z31.
b }, zt0
, { z30
, z31
}
42 // CHECK-ENCODING
: [0xd3,0x03,0x9b,0xc0]
43 // CHECK-ERROR
: instruction requires
: sme2p1 sme-lutv2
44 // CHECK-UNKNOWN
: c09b03d3
<unknown
>