1 // RUN
: llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sve
< %s \
2 // RUN
: | FileCheck
%s
--check-prefixes
=CHECK-ENCODING
,CHECK-INST
3 // RUN
: not llvm-mc
-triple
=aarch64
-show-encoding
< %s
2>&1 \
4 // RUN
: | FileCheck
%s
--check-prefix
=CHECK-ERROR
5 // RUN
: llvm-mc
-triple
=aarch64
-filetype
=obj
-mattr
=+sve
< %s \
6 // RUN
: | llvm-objdump
-d
-mattr
=+sve
- | FileCheck
%s
--check-prefix
=CHECK-INST
7 // RUN
: llvm-mc
-triple
=aarch64
-filetype
=obj
-mattr
=+sve
< %s \
8 // RUN
: | llvm-objdump
-d
- | FileCheck
%s
--check-prefix
=CHECK-UNKNOWN
11 // CHECK-INST
: insr z0.
b, w0
12 // CHECK-ENCODING
: [0x00,0x38,0x24,0x05]
13 // CHECK-ERROR
: instruction requires
: sve
14 // CHECK-UNKNOWN
: 00 38 24 05 <unknown
>
17 // CHECK-INST
: insr z0.h
, w0
18 // CHECK-ENCODING
: [0x00,0x38,0x64,0x05]
19 // CHECK-ERROR
: instruction requires
: sve
20 // CHECK-UNKNOWN
: 00 38 64 05 <unknown
>
23 // CHECK-INST
: insr z0.s
, w0
24 // CHECK-ENCODING
: [0x00,0x38,0xa4,0x05]
25 // CHECK-ERROR
: instruction requires
: sve
26 // CHECK-UNKNOWN
: 00 38 a4
05 <unknown
>
29 // CHECK-INST
: insr z0.d
, x0
30 // CHECK-ENCODING
: [0x00,0x38,0xe4,0x05]
31 // CHECK-ERROR
: instruction requires
: sve
32 // CHECK-UNKNOWN
: 00 38 e4
05 <unknown
>
35 // CHECK-INST
: insr z31.
b, wzr
36 // CHECK-ENCODING
: [0xff,0x3b,0x24,0x05]
37 // CHECK-ERROR
: instruction requires
: sve
38 // CHECK-UNKNOWN
: ff
3b 24 05 <unknown
>
41 // CHECK-INST
: insr z31.h
, wzr
42 // CHECK-ENCODING
: [0xff,0x3b,0x64,0x05]
43 // CHECK-ERROR
: instruction requires
: sve
44 // CHECK-UNKNOWN
: ff
3b 64 05 <unknown
>
47 // CHECK-INST
: insr z31.s
, wzr
48 // CHECK-ENCODING
: [0xff,0x3b,0xa4,0x05]
49 // CHECK-ERROR
: instruction requires
: sve
50 // CHECK-UNKNOWN
: ff
3b a4
05 <unknown
>
53 // CHECK-INST
: insr z31.d
, xzr
54 // CHECK-ENCODING
: [0xff,0x3b,0xe4,0x05]
55 // CHECK-ERROR
: instruction requires
: sve
56 // CHECK-UNKNOWN
: ff
3b e4
05 <unknown
>
59 // CHECK-INST
: insr z31.
b, b31
60 // CHECK-ENCODING
: [0xff,0x3b,0x34,0x05]
61 // CHECK-ERROR
: instruction requires
: sve
62 // CHECK-UNKNOWN
: ff
3b 34 05 <unknown
>
65 // CHECK-INST
: insr z31.h
, h31
66 // CHECK-ENCODING
: [0xff,0x3b,0x74,0x05]
67 // CHECK-ERROR
: instruction requires
: sve
68 // CHECK-UNKNOWN
: ff
3b 74 05 <unknown
>
71 // CHECK-INST
: insr z31.s
, s31
72 // CHECK-ENCODING
: [0xff,0x3b,0xb4,0x05]
73 // CHECK-ERROR
: instruction requires
: sve
74 // CHECK-UNKNOWN
: ff
3b b4
05 <unknown
>
77 // CHECK-INST
: insr z31.d
, d31
78 // CHECK-ENCODING
: [0xff,0x3b,0xf4,0x05]
79 // CHECK-ERROR
: instruction requires
: sve
80 // CHECK-UNKNOWN
: ff
3b f4 05 <unknown
>
83 // --------------------------------------------------------------------------//
84 // Test compatibility with MOVPRFX instruction.
87 // CHECK-INST
: movprfx z31
, z6
88 // CHECK-ENCODING
: [0xdf,0xbc,0x20,0x04]
89 // CHECK-ERROR
: instruction requires
: sve
90 // CHECK-UNKNOWN
: df
bc 20 04 <unknown
>
93 // CHECK-INST
: insr z31.d
, xzr
94 // CHECK-ENCODING
: [0xff,0x3b,0xe4,0x05]
95 // CHECK-ERROR
: instruction requires
: sve
96 // CHECK-UNKNOWN
: ff
3b e4
05 <unknown
>
99 // CHECK-INST
: movprfx z4
, z6
100 // CHECK-ENCODING
: [0xc4,0xbc,0x20,0x04]
101 // CHECK-ERROR
: instruction requires
: sve
102 // CHECK-UNKNOWN
: c4
bc 20 04 <unknown
>
105 // CHECK-INST
: insr z4.d
, d31
106 // CHECK-ENCODING
: [0xe4,0x3b,0xf4,0x05]
107 // CHECK-ERROR
: instruction requires
: sve
108 // CHECK-UNKNOWN
: e4
3b f4 05 <unknown
>