1 // RUN
: llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sve2p2
< %s \
2 // RUN
: | FileCheck
%s
--check-prefixes
=CHECK-ENCODING
,CHECK-INST
3 // RUN
: llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sme2p2
< %s \
4 // RUN
: | FileCheck
%s
--check-prefixes
=CHECK-ENCODING
,CHECK-INST
5 // RUN
: not llvm-mc
-triple
=aarch64
-show-encoding
< %s
2>&1 \
6 // RUN
: | FileCheck
%s
--check-prefix
=CHECK-ERROR
7 // RUN
: llvm-mc
-triple
=aarch64
-filetype
=obj
-mattr
=+sve2p2
< %s \
8 // RUN
: | llvm-objdump
-d
--mattr
=+sve2p2
- | FileCheck
%s
--check-prefix
=CHECK-INST
9 // RUN
: llvm-mc
-triple
=aarch64
-filetype
=obj
-mattr
=+sve2p2
< %s \
10 // RUN
: | llvm-objdump
-d
--mattr
=-sme2
- | FileCheck
%s
--check-prefix
=CHECK-UNKNOWN
11 // Disassemble encoding
and check the re-encoding
(-show-encoding
) matches.
12 // RUN
: llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sve2p2
< %s \
13 // RUN
: | sed
'/.text/d' | sed
's/.*encoding: //g' \
14 // RUN
: | llvm-mc
-triple
=aarch64
-mattr
=+sve2p2
-disassemble
-show-encoding \
15 // RUN
: | FileCheck
%s
--check-prefixes
=CHECK-ENCODING
,CHECK-INST
17 ursqrte z0.s
, p0
/z
, z0.s
// 01000100-10000011-10100000-00000000
18 // CHECK-INST
: ursqrte z0.s
, p0
/z
, z0.s
19 // CHECK-ENCODING
: [0x00,0xa0,0x83,0x44]
20 // CHECK-ERROR
: instruction requires
: sme2p2
or sve2p2
21 // CHECK-UNKNOWN
: 4483a000
<unknown
>
23 ursqrte z21.s
, p5
/z
, z10.s
// 01000100-10000011-10110101-01010101
24 // CHECK-INST
: ursqrte z21.s
, p5
/z
, z10.s
25 // CHECK-ENCODING
: [0x55,0xb5,0x83,0x44]
26 // CHECK-ERROR
: instruction requires
: sme2p2
or sve2p2
27 // CHECK-UNKNOWN
: 4483b555
<unknown
>
29 ursqrte z31.s
, p7
/z
, z31.s
// 01000100-10000011-10111111-11111111
30 // CHECK-INST
: ursqrte z31.s
, p7
/z
, z31.s
31 // CHECK-ENCODING
: [0xff,0xbf,0x83,0x44]
32 // CHECK-ERROR
: instruction requires
: sme2p2
or sve2p2
33 // CHECK-UNKNOWN
: 4483bfff
<unknown
>