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
--no-print-imm-hex
-d
--mattr
=+sve
- | FileCheck
%s
--check-prefix
=CHECK-INST
9 // RUN
: llvm-mc
-triple
=aarch64
-filetype
=obj
-mattr
=+sve
< %s \
10 // RUN
: | llvm-objdump
--no-print-imm-hex
-d
--mattr
=-sve
- | FileCheck
%s
--check-prefix
=CHECK-UNKNOWN
13 sqadd z0.
b, z0.
b, z0.
b
14 // CHECK-INST
: sqadd z0.
b, z0.
b, z0.
b
15 // CHECK-ENCODING
: [0x00,0x10,0x20,0x04]
16 // CHECK-ERROR
: instruction requires
: sve
or sme
17 // CHECK-UNKNOWN
: 04201000 <unknown
>
19 sqadd z0.h
, z0.h
, z0.h
20 // CHECK-INST
: sqadd z0.h
, z0.h
, z0.h
21 // CHECK-ENCODING
: [0x00,0x10,0x60,0x04]
22 // CHECK-ERROR
: instruction requires
: sve
or sme
23 // CHECK-UNKNOWN
: 04601000 <unknown
>
25 sqadd z0.s
, z0.s
, z0.s
26 // CHECK-INST
: sqadd z0.s
, z0.s
, z0.s
27 // CHECK-ENCODING
: [0x00,0x10,0xa0,0x04]
28 // CHECK-ERROR
: instruction requires
: sve
or sme
29 // CHECK-UNKNOWN
: 04a01000
<unknown
>
31 sqadd z0.d
, z0.d
, z0.d
32 // CHECK-INST
: sqadd z0.d
, z0.d
, z0.d
33 // CHECK-ENCODING
: [0x00,0x10,0xe0,0x04]
34 // CHECK-ERROR
: instruction requires
: sve
or sme
35 // CHECK-UNKNOWN
: 04e01000
<unknown
>
38 // CHECK-INST
: sqadd z0.
b, z0.
b, #0
39 // CHECK-ENCODING
: [0x00,0xc0,0x24,0x25]
40 // CHECK-ERROR
: instruction requires
: sve
or sme
41 // CHECK-UNKNOWN
: 2524c000
<unknown
>
43 sqadd z31.
b, z31.
b, #255
44 // CHECK-INST
: sqadd z31.
b, z31.
b, #255
45 // CHECK-ENCODING
: [0xff,0xdf,0x24,0x25]
46 // CHECK-ERROR
: instruction requires
: sve
or sme
47 // CHECK-UNKNOWN
: 2524dfff
<unknown
>
50 // CHECK-INST
: sqadd z0.h
, z0.h
, #0
51 // CHECK-ENCODING
: [0x00,0xc0,0x64,0x25]
52 // CHECK-ERROR
: instruction requires
: sve
or sme
53 // CHECK-UNKNOWN
: 2564c000
<unknown
>
55 sqadd z0.h
, z0.h
, #0, lsl #8
56 // CHECK-INST
: sqadd z0.h
, z0.h
, #0, lsl #8
57 // CHECK-ENCODING
: [0x00,0xe0,0x64,0x25]
58 // CHECK-ERROR
: instruction requires
: sve
or sme
59 // CHECK-UNKNOWN
: 2564e000
<unknown
>
61 sqadd z31.h
, z31.h
, #255, lsl #8
62 // CHECK-INST
: sqadd z31.h
, z31.h
, #65280
63 // CHECK-ENCODING
: [0xff,0xff,0x64,0x25]
64 // CHECK-ERROR
: instruction requires
: sve
or sme
65 // CHECK-UNKNOWN
: 2564ffff
<unknown
>
67 sqadd z31.h
, z31.h
, #65280
68 // CHECK-INST
: sqadd z31.h
, z31.h
, #65280
69 // CHECK-ENCODING
: [0xff,0xff,0x64,0x25]
70 // CHECK-ERROR
: instruction requires
: sve
or sme
71 // CHECK-UNKNOWN
: 2564ffff
<unknown
>
74 // CHECK-INST
: sqadd z0.s
, z0.s
, #0
75 // CHECK-ENCODING
: [0x00,0xc0,0xa4,0x25]
76 // CHECK-ERROR
: instruction requires
: sve
or sme
77 // CHECK-UNKNOWN
: 25a4c000
<unknown
>
79 sqadd z0.s
, z0.s
, #0, lsl #8
80 // CHECK-INST
: sqadd z0.s
, z0.s
, #0, lsl #8
81 // CHECK-ENCODING
: [0x00,0xe0,0xa4,0x25]
82 // CHECK-ERROR
: instruction requires
: sve
or sme
83 // CHECK-UNKNOWN
: 25a4e000
<unknown
>
85 sqadd z31.s
, z31.s
, #255, lsl #8
86 // CHECK-INST
: sqadd z31.s
, z31.s
, #65280
87 // CHECK-ENCODING
: [0xff,0xff,0xa4,0x25]
88 // CHECK-ERROR
: instruction requires
: sve
or sme
89 // CHECK-UNKNOWN
: 25a4ffff
<unknown
>
91 sqadd z31.s
, z31.s
, #65280
92 // CHECK-INST
: sqadd z31.s
, z31.s
, #65280
93 // CHECK-ENCODING
: [0xff,0xff,0xa4,0x25]
94 // CHECK-ERROR
: instruction requires
: sve
or sme
95 // CHECK-UNKNOWN
: 25a4ffff
<unknown
>
98 // CHECK-INST
: sqadd z0.d
, z0.d
, #0
99 // CHECK-ENCODING
: [0x00,0xc0,0xe4,0x25]
100 // CHECK-ERROR
: instruction requires
: sve
or sme
101 // CHECK-UNKNOWN
: 25e4c000
<unknown
>
103 sqadd z0.d
, z0.d
, #0, lsl #8
104 // CHECK-INST
: sqadd z0.d
, z0.d
, #0, lsl #8
105 // CHECK-ENCODING
: [0x00,0xe0,0xe4,0x25]
106 // CHECK-ERROR
: instruction requires
: sve
or sme
107 // CHECK-UNKNOWN
: 25e4e000
<unknown
>
109 sqadd z31.d
, z31.d
, #255, lsl #8
110 // CHECK-INST
: sqadd z31.d
, z31.d
, #65280
111 // CHECK-ENCODING
: [0xff,0xff,0xe4,0x25]
112 // CHECK-ERROR
: instruction requires
: sve
or sme
113 // CHECK-UNKNOWN
: 25e4ffff
<unknown
>
115 sqadd z31.d
, z31.d
, #65280
116 // CHECK-INST
: sqadd z31.d
, z31.d
, #65280
117 // CHECK-ENCODING
: [0xff,0xff,0xe4,0x25]
118 // CHECK-ERROR
: instruction requires
: sve
or sme
119 // CHECK-UNKNOWN
: 25e4ffff
<unknown
>
122 // --------------------------------------------------------------------------//
123 // Test compatibility with MOVPRFX instruction.
126 // CHECK-INST
: movprfx z31
, z6
127 // CHECK-ENCODING
: [0xdf,0xbc,0x20,0x04]
128 // CHECK-ERROR
: instruction requires
: sve
or sme
129 // CHECK-UNKNOWN
: 0420bcdf
<unknown
>
131 sqadd z31.d
, z31.d
, #65280
132 // CHECK-INST
: sqadd z31.d
, z31.d
, #65280
133 // CHECK-ENCODING
: [0xff,0xff,0xe4,0x25]
134 // CHECK-ERROR
: instruction requires
: sve
or sme
135 // CHECK-UNKNOWN
: 25e4ffff
<unknown
>