Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AArch64 / SVE2p1 / pmov.s
blobca2b55b47c325a190b598f84b351eae7728cdd6c
1 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2p1 < %s \
2 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
3 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2p1 < %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=+sme2p1 < %s \
8 // RUN: | llvm-objdump -d --no-print-imm-hex --mattr=+sme2p1 - | FileCheck %s --check-prefix=CHECK-INST
9 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme2p1 < %s \
10 // RUN: | llvm-objdump -d --mattr=-sme2p1,-sve2p1 - | FileCheck %s --check-prefix=CHECK-UNKNOWN
11 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2p1 < %s \
12 // RUN: | sed '/.text/d' | sed 's/.*encoding: //g' \
13 // RUN: | llvm-mc -triple=aarch64 -mattr=+sme2p1 -disassemble -show-encoding \
14 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
17 pmov p0.h, z0[0] // 00000101-00101100-00111000-00000000
18 // CHECK-INST: pmov p0.h, z0[0]
19 // CHECK-ENCODING: [0x00,0x38,0x2c,0x05]
20 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
21 // CHECK-UNKNOWN: 052c3800 <unknown>
23 pmov p5.h, z10[0] // 00000101-00101100-00111001-01000101
24 // CHECK-INST: pmov p5.h, z10[0]
25 // CHECK-ENCODING: [0x45,0x39,0x2c,0x05]
26 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
27 // CHECK-UNKNOWN: 052c3945 <unknown>
29 pmov p7.h, z13[0] // 00000101-00101100-00111001-10100111
30 // CHECK-INST: pmov p7.h, z13[0]
31 // CHECK-ENCODING: [0xa7,0x39,0x2c,0x05]
32 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
33 // CHECK-UNKNOWN: 052c39a7 <unknown>
35 pmov p15.h, z31[1] // 00000101-00101110-00111011-11101111
36 // CHECK-INST: pmov p15.h, z31[1]
37 // CHECK-ENCODING: [0xef,0x3b,0x2e,0x05]
38 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
39 // CHECK-UNKNOWN: 052e3bef <unknown>
41 pmov p0.s, z0[0] // 00000101-01101000-00111000-00000000
42 // CHECK-INST: pmov p0.s, z0[0]
43 // CHECK-ENCODING: [0x00,0x38,0x68,0x05]
44 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
45 // CHECK-UNKNOWN: 05683800 <unknown>
47 pmov p5.s, z10[2] // 00000101-01101100-00111001-01000101
48 // CHECK-INST: pmov p5.s, z10[2]
49 // CHECK-ENCODING: [0x45,0x39,0x6c,0x05]
50 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
51 // CHECK-UNKNOWN: 056c3945 <unknown>
53 pmov p7.s, z13[0] // 00000101-01101000-00111001-10100111
54 // CHECK-INST: pmov p7.s, z13[0]
55 // CHECK-ENCODING: [0xa7,0x39,0x68,0x05]
56 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
57 // CHECK-UNKNOWN: 056839a7 <unknown>
59 pmov p15.s, z31[3] // 00000101-01101110-00111011-11101111
60 // CHECK-INST: pmov p15.s, z31[3]
61 // CHECK-ENCODING: [0xef,0x3b,0x6e,0x05]
62 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
63 // CHECK-UNKNOWN: 056e3bef <unknown>
65 pmov p0.d, z0[0] // 00000101-10101000-00111000-00000000
66 // CHECK-INST: pmov p0.d, z0[0]
67 // CHECK-ENCODING: [0x00,0x38,0xa8,0x05]
68 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
69 // CHECK-UNKNOWN: 05a83800 <unknown>
71 pmov p5.d, z10[6] // 00000101-11101100-00111001-01000101
72 // CHECK-INST: pmov p5.d, z10[6]
73 // CHECK-ENCODING: [0x45,0x39,0xec,0x05]
74 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
75 // CHECK-UNKNOWN: 05ec3945 <unknown>
77 pmov p7.d, z13[4] // 00000101-11101000-00111001-10100111
78 // CHECK-INST: pmov p7.d, z13[4]
79 // CHECK-ENCODING: [0xa7,0x39,0xe8,0x05]
80 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
81 // CHECK-UNKNOWN: 05e839a7 <unknown>
83 pmov p15.d, z31[7] // 00000101-11101110-00111011-11101111
84 // CHECK-INST: pmov p15.d, z31[7]
85 // CHECK-ENCODING: [0xef,0x3b,0xee,0x05]
86 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
87 // CHECK-UNKNOWN: 05ee3bef <unknown>
89 pmov p0.b, z0 // 00000101-00101010-00111000-00000000
90 // CHECK-INST: pmov p0.b, z0
91 // CHECK-ENCODING: [0x00,0x38,0x2a,0x05]
92 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
93 // CHECK-UNKNOWN: 052a3800 <unknown>
95 pmov p5.b, z10 // 00000101-00101010-00111001-01000101
96 // CHECK-INST: pmov p5.b, z10
97 // CHECK-ENCODING: [0x45,0x39,0x2a,0x05]
98 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
99 // CHECK-UNKNOWN: 052a3945 <unknown>
101 pmov p7.b, z13 // 00000101-00101010-00111001-10100111
102 // CHECK-INST: pmov p7.b, z13
103 // CHECK-ENCODING: [0xa7,0x39,0x2a,0x05]
104 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
105 // CHECK-UNKNOWN: 052a39a7 <unknown>
107 pmov p15.b, z31 // 00000101-00101010-00111011-11101111
108 // CHECK-INST: pmov p15.b, z31
109 // CHECK-ENCODING: [0xef,0x3b,0x2a,0x05]
110 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
111 // CHECK-UNKNOWN: 052a3bef <unknown>
113 pmov p0.b, z0[0] // 00000101-00101010-00111000-00000000
114 // CHECK-INST: pmov p0.b, z0
115 // CHECK-ENCODING: [0x00,0x38,0x2a,0x05]
116 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
117 // CHECK-UNKNOWN: 052a3800 <unknown>
119 pmov z0[0], p0.h // 00000101-00101101-00111000-00000000
120 // CHECK-INST: pmov z0[0], p0.h
121 // CHECK-ENCODING: [0x00,0x38,0x2d,0x05]
122 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
123 // CHECK-UNKNOWN: 052d3800 <unknown>
125 pmov z21[0], p10.h // 00000101-00101101-00111001-01010101
126 // CHECK-INST: pmov z21[0], p10.h
127 // CHECK-ENCODING: [0x55,0x39,0x2d,0x05]
128 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
129 // CHECK-UNKNOWN: 052d3955 <unknown>
131 pmov z23[0], p13.h // 00000101-00101101-00111001-10110111
132 // CHECK-INST: pmov z23[0], p13.h
133 // CHECK-ENCODING: [0xb7,0x39,0x2d,0x05]
134 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
135 // CHECK-UNKNOWN: 052d39b7 <unknown>
137 pmov z31[1], p15.h // 00000101-00101111-00111001-11111111
138 // CHECK-INST: pmov z31[1], p15.h
139 // CHECK-ENCODING: [0xff,0x39,0x2f,0x05]
140 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
141 // CHECK-UNKNOWN: 052f39ff <unknown>
144 pmov z0[0], p0.s // 00000101-01101001-00111000-00000000
145 // CHECK-INST: pmov z0[0], p0.s
146 // CHECK-ENCODING: [0x00,0x38,0x69,0x05]
147 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
148 // CHECK-UNKNOWN: 05693800 <unknown>
150 pmov z21[2], p10.s // 00000101-01101101-00111001-01010101
151 // CHECK-INST: pmov z21[2], p10.s
152 // CHECK-ENCODING: [0x55,0x39,0x6d,0x05]
153 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
154 // CHECK-UNKNOWN: 056d3955 <unknown>
156 pmov z23[0], p13.s // 00000101-01101001-00111001-10110111
157 // CHECK-INST: pmov z23[0], p13.s
158 // CHECK-ENCODING: [0xb7,0x39,0x69,0x05]
159 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
160 // CHECK-UNKNOWN: 056939b7 <unknown>
162 pmov z31[3], p15.s // 00000101-01101111-00111001-11111111
163 // CHECK-INST: pmov z31[3], p15.s
164 // CHECK-ENCODING: [0xff,0x39,0x6f,0x05]
165 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
166 // CHECK-UNKNOWN: 056f39ff <unknown>
168 pmov z0[0], p0.d // 00000101-10101001-00111000-00000000
169 // CHECK-INST: pmov z0[0], p0.d
170 // CHECK-ENCODING: [0x00,0x38,0xa9,0x05]
171 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
172 // CHECK-UNKNOWN: 05a93800 <unknown>
174 pmov z21[6], p10.d // 00000101-11101101-00111001-01010101
175 // CHECK-INST: pmov z21[6], p10.d
176 // CHECK-ENCODING: [0x55,0x39,0xed,0x05]
177 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
178 // CHECK-UNKNOWN: 05ed3955 <unknown>
180 pmov z23[4], p13.d // 00000101-11101001-00111001-10110111
181 // CHECK-INST: pmov z23[4], p13.d
182 // CHECK-ENCODING: [0xb7,0x39,0xe9,0x05]
183 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
184 // CHECK-UNKNOWN: 05e939b7 <unknown>
186 pmov z31[7], p15.d // 00000101-11101111-00111001-11111111
187 // CHECK-INST: pmov z31[7], p15.d
188 // CHECK-ENCODING: [0xff,0x39,0xef,0x05]
189 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
190 // CHECK-UNKNOWN: 05ef39ff <unknown>
192 pmov z0, p0.b // 00000101-00101011-00111000-00000000
193 // CHECK-INST: pmov z0, p0.b
194 // CHECK-ENCODING: [0x00,0x38,0x2b,0x05]
195 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
196 // CHECK-UNKNOWN: 052b3800 <unknown>
198 pmov z21, p10.b // 00000101-00101011-00111001-01010101
199 // CHECK-INST: pmov z21, p10.b
200 // CHECK-ENCODING: [0x55,0x39,0x2b,0x05]
201 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
202 // CHECK-UNKNOWN: 052b3955 <unknown>
204 pmov z23, p13.b // 00000101-00101011-00111001-10110111
205 // CHECK-INST: pmov z23, p13.b
206 // CHECK-ENCODING: [0xb7,0x39,0x2b,0x05]
207 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
208 // CHECK-UNKNOWN: 052b39b7 <unknown>
210 pmov z31, p15.b // 00000101-00101011-00111001-11111111
211 // CHECK-INST: pmov z31, p15.b
212 // CHECK-ENCODING: [0xff,0x39,0x2b,0x05]
213 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
214 // CHECK-UNKNOWN: 052b39ff <unknown>
216 pmov z0[0], p0.b // 00000101-00101011-00111000-00000000
217 // CHECK-INST: pmov z0, p0.b
218 // CHECK-ENCODING: [0x00,0x38,0x2b,0x05]
219 // CHECK-ERROR: instruction requires: sme2p1 or sve2p1
220 // CHECK-UNKNOWN: 052b3800 <unknown>