1 // RUN
: llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sve
< %s \
2 // RUN
: | FileCheck
%s
--check-prefixes
=CHECK-ENCODING
,CHECK-INST
3 // RUN
: llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sme
< %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
=+sve
< %s \
8 // RUN
: | llvm-objdump
-d
--mattr
=+sve
- | FileCheck
%s
--check-prefix
=CHECK-INST
9 // RUN
: llvm-mc
-triple
=aarch64
-filetype
=obj
-mattr
=+sve
< %s \
10 // RUN
: | llvm-objdump
-d
--mattr
=-sve
- | FileCheck
%s
--check-prefix
=CHECK-UNKNOWN
12 sel p0.
b, p0
, p0.
b, p0.
b
13 // CHECK-INST
: mov p0.
b, p0
/m
, p0.
b
14 // CHECK-ENCODING
: [0x10,0x42,0x00,0x25]
15 // CHECK-ERROR
: instruction requires
: sve
or sme
16 // CHECK-UNKNOWN
: 25004210 <unknown
>
18 sel p15.
b, p15
, p15.
b, p15.
b
19 // CHECK-INST
: mov p15.
b, p15
/m
, p15.
b
20 // CHECK-ENCODING
: [0xff,0x7f,0x0f,0x25]
21 // CHECK-ERROR
: instruction requires
: sve
or sme
22 // CHECK-UNKNOWN
: 250f7fff
<unknown
>
24 sel z31.
b, p15
, z31.
b, z31.
b
25 // CHECK-INST
: mov z31.
b, p15
/m
, z31.
b
26 // CHECK-ENCODING
: [0xff,0xff,0x3f,0x05]
27 // CHECK-ERROR
: instruction requires
: sve
or sme
28 // CHECK-UNKNOWN
: 053fffff
<unknown
>
30 sel z31.h
, p15
, z31.h
, z31.h
31 // CHECK-INST
: mov z31.h
, p15
/m
, z31.h
32 // CHECK-ENCODING
: [0xff,0xff,0x7f,0x05]
33 // CHECK-ERROR
: instruction requires
: sve
or sme
34 // CHECK-UNKNOWN
: 057fffff
<unknown
>
36 sel z31.s
, p15
, z31.s
, z31.s
37 // CHECK-INST
: mov z31.s
, p15
/m
, z31.s
38 // CHECK-ENCODING
: [0xff,0xff,0xbf,0x05]
39 // CHECK-ERROR
: instruction requires
: sve
or sme
40 // CHECK-UNKNOWN
: 05bfffff
<unknown
>
42 sel z31.d
, p15
, z31.d
, z31.d
43 // CHECK-INST
: mov z31.d
, p15
/m
, z31.d
44 // CHECK-ENCODING
: [0xff,0xff,0xff,0x05]
45 // CHECK-ERROR
: instruction requires
: sve
or sme
46 // CHECK-UNKNOWN
: 05ffffff
<unknown
>
48 sel z23.s
, p11
, z13.s
, z8.s
49 // CHECK-INST
: sel z23.s
, p11
, z13.s
, z8.s
50 // CHECK-ENCODING
: [0xb7,0xed,0xa8,0x05]
51 // CHECK-ERROR
: instruction requires
: sve
or sme
52 // CHECK-UNKNOWN
: 05a8edb7
<unknown
>
54 sel z23.d
, p11
, z13.d
, z8.d
55 // CHECK-INST
: sel z23.d
, p11
, z13.d
, z8.d
56 // CHECK-ENCODING
: [0xb7,0xed,0xe8,0x05]
57 // CHECK-ERROR
: instruction requires
: sve
or sme
58 // CHECK-UNKNOWN
: 05e8edb7
<unknown
>
60 sel z23.h
, p11
, z13.h
, z8.h
61 // CHECK-INST
: sel z23.h
, p11
, z13.h
, z8.h
62 // CHECK-ENCODING
: [0xb7,0xed,0x68,0x05]
63 // CHECK-ERROR
: instruction requires
: sve
or sme
64 // CHECK-UNKNOWN
: 0568edb7
<unknown
>
66 sel z23.
b, p11
, z13.
b, z8.
b
67 // CHECK-INST
: sel z23.
b, p11
, z13.
b, z8.
b
68 // CHECK-ENCODING
: [0xb7,0xed,0x28,0x05]
69 // CHECK-ERROR
: instruction requires
: sve
or sme
70 // CHECK-UNKNOWN
: 0528edb7
<unknown
>