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
13 // CHECK-INST
: zip2 z0.
b, z0.
b, z0.
b
14 // CHECK-ENCODING
: [0x00,0x64,0x20,0x05]
15 // CHECK-ERROR
: instruction requires
: sve
or sme
16 // CHECK-UNKNOWN
: 05206400 <unknown
>
19 // CHECK-INST
: zip2 z0.h
, z0.h
, z0.h
20 // CHECK-ENCODING
: [0x00,0x64,0x60,0x05]
21 // CHECK-ERROR
: instruction requires
: sve
or sme
22 // CHECK-UNKNOWN
: 05606400 <unknown
>
25 // CHECK-INST
: zip2 z0.s
, z0.s
, z0.s
26 // CHECK-ENCODING
: [0x00,0x64,0xa0,0x05]
27 // CHECK-ERROR
: instruction requires
: sve
or sme
28 // CHECK-UNKNOWN
: 05a06400
<unknown
>
31 // CHECK-INST
: zip2 z0.d
, z0.d
, z0.d
32 // CHECK-ENCODING
: [0x00,0x64,0xe0,0x05]
33 // CHECK-ERROR
: instruction requires
: sve
or sme
34 // CHECK-UNKNOWN
: 05e06400
<unknown
>
36 zip2 z31.
b, z31.
b, z31.
b
37 // CHECK-INST
: zip2 z31.
b, z31.
b, z31.
b
38 // CHECK-ENCODING
: [0xff,0x67,0x3f,0x05]
39 // CHECK-ERROR
: instruction requires
: sve
or sme
40 // CHECK-UNKNOWN
: 053f67ff
<unknown
>
42 zip2 z31.h
, z31.h
, z31.h
43 // CHECK-INST
: zip2 z31.h
, z31.h
, z31.h
44 // CHECK-ENCODING
: [0xff,0x67,0x7f,0x05]
45 // CHECK-ERROR
: instruction requires
: sve
or sme
46 // CHECK-UNKNOWN
: 057f67ff
<unknown
>
48 zip2 z31.s
, z31.s
, z31.s
49 // CHECK-INST
: zip2 z31.s
, z31.s
, z31.s
50 // CHECK-ENCODING
: [0xff,0x67,0xbf,0x05]
51 // CHECK-ERROR
: instruction requires
: sve
or sme
52 // CHECK-UNKNOWN
: 05bf67ff
<unknown
>
54 zip2 z31.d
, z31.d
, z31.d
55 // CHECK-INST
: zip2 z31.d
, z31.d
, z31.d
56 // CHECK-ENCODING
: [0xff,0x67,0xff,0x05]
57 // CHECK-ERROR
: instruction requires
: sve
or sme
58 // CHECK-UNKNOWN
: 05ff67ff
<unknown
>
61 // CHECK-INST
: zip2 p0.
b, p0.
b, p0.
b
62 // CHECK-ENCODING
: [0x00,0x44,0x20,0x05]
63 // CHECK-ERROR
: instruction requires
: sve
or sme
64 // CHECK-UNKNOWN
: 05204400 <unknown
>
67 // CHECK-INST
: zip2 p0.h
, p0.h
, p0.h
68 // CHECK-ENCODING
: [0x00,0x44,0x60,0x05]
69 // CHECK-ERROR
: instruction requires
: sve
or sme
70 // CHECK-UNKNOWN
: 05604400 <unknown
>
73 // CHECK-INST
: zip2 p0.s
, p0.s
, p0.s
74 // CHECK-ENCODING
: [0x00,0x44,0xa0,0x05]
75 // CHECK-ERROR
: instruction requires
: sve
or sme
76 // CHECK-UNKNOWN
: 05a04400
<unknown
>
79 // CHECK-INST
: zip2 p0.d
, p0.d
, p0.d
80 // CHECK-ENCODING
: [0x00,0x44,0xe0,0x05]
81 // CHECK-ERROR
: instruction requires
: sve
or sme
82 // CHECK-UNKNOWN
: 05e04400
<unknown
>
84 zip2 p15.
b, p15.
b, p15.
b
85 // CHECK-INST
: zip2 p15.
b, p15.
b, p15.
b
86 // CHECK-ENCODING
: [0xef,0x45,0x2f,0x05]
87 // CHECK-ERROR
: instruction requires
: sve
or sme
88 // CHECK-UNKNOWN
: 052f45ef
<unknown
>
90 zip2 p15.h
, p15.h
, p15.h
91 // CHECK-INST
: zip2 p15.h
, p15.h
, p15.h
92 // CHECK-ENCODING
: [0xef,0x45,0x6f,0x05]
93 // CHECK-ERROR
: instruction requires
: sve
or sme
94 // CHECK-UNKNOWN
: 056f45ef
<unknown
>
96 zip2 p15.s
, p15.s
, p15.s
97 // CHECK-INST
: zip2 p15.s
, p15.s
, p15.s
98 // CHECK-ENCODING
: [0xef,0x45,0xaf,0x05]
99 // CHECK-ERROR
: instruction requires
: sve
or sme
100 // CHECK-UNKNOWN
: 05af45ef
<unknown
>
102 zip2 p15.d
, p15.d
, p15.d
103 // CHECK-INST
: zip2 p15.d
, p15.d
, p15.d
104 // CHECK-ENCODING
: [0xef,0x45,0xef,0x05]
105 // CHECK-ERROR
: instruction requires
: sve
or sme
106 // CHECK-UNKNOWN
: 05ef45ef
<unknown
>