2 # RUN: llvm-mc -triple powerpc64-unknown-unknown --show-encoding %s | FileCheck -check-prefix=CHECK-BE %s
3 # RUN: llvm-mc -triple powerpc64le-unknown-unknown --show-encoding %s | FileCheck -check-prefix=CHECK-LE %s
7 # Vector storage access instructions
9 # CHECK-BE: lvebx 2, 3, 4 # encoding: [0x7c,0x43,0x20,0x0e]
10 # CHECK-LE: lvebx 2, 3, 4 # encoding: [0x0e,0x20,0x43,0x7c]
12 # CHECK-BE: lvehx 2, 3, 4 # encoding: [0x7c,0x43,0x20,0x4e]
13 # CHECK-LE: lvehx 2, 3, 4 # encoding: [0x4e,0x20,0x43,0x7c]
15 # CHECK-BE: lvewx 2, 3, 4 # encoding: [0x7c,0x43,0x20,0x8e]
16 # CHECK-LE: lvewx 2, 3, 4 # encoding: [0x8e,0x20,0x43,0x7c]
18 # CHECK-BE: lvx 2, 3, 4 # encoding: [0x7c,0x43,0x20,0xce]
19 # CHECK-LE: lvx 2, 3, 4 # encoding: [0xce,0x20,0x43,0x7c]
21 # CHECK-BE: lvxl 2, 3, 4 # encoding: [0x7c,0x43,0x22,0xce]
22 # CHECK-LE: lvxl 2, 3, 4 # encoding: [0xce,0x22,0x43,0x7c]
24 # CHECK-BE: stvebx 2, 3, 4 # encoding: [0x7c,0x43,0x21,0x0e]
25 # CHECK-LE: stvebx 2, 3, 4 # encoding: [0x0e,0x21,0x43,0x7c]
27 # CHECK-BE: stvehx 2, 3, 4 # encoding: [0x7c,0x43,0x21,0x4e]
28 # CHECK-LE: stvehx 2, 3, 4 # encoding: [0x4e,0x21,0x43,0x7c]
30 # CHECK-BE: stvewx 2, 3, 4 # encoding: [0x7c,0x43,0x21,0x8e]
31 # CHECK-LE: stvewx 2, 3, 4 # encoding: [0x8e,0x21,0x43,0x7c]
33 # CHECK-BE: stvx 2, 3, 4 # encoding: [0x7c,0x43,0x21,0xce]
34 # CHECK-LE: stvx 2, 3, 4 # encoding: [0xce,0x21,0x43,0x7c]
36 # CHECK-BE: stvxl 2, 3, 4 # encoding: [0x7c,0x43,0x23,0xce]
37 # CHECK-LE: stvxl 2, 3, 4 # encoding: [0xce,0x23,0x43,0x7c]
39 # CHECK-BE: lvsl 2, 3, 4 # encoding: [0x7c,0x43,0x20,0x0c]
40 # CHECK-LE: lvsl 2, 3, 4 # encoding: [0x0c,0x20,0x43,0x7c]
42 # CHECK-BE: lvsr 2, 3, 4 # encoding: [0x7c,0x43,0x20,0x4c]
43 # CHECK-LE: lvsr 2, 3, 4 # encoding: [0x4c,0x20,0x43,0x7c]
46 # Vector permute and formatting instructions
48 # CHECK-BE: vpkpx 2, 3, 4 # encoding: [0x10,0x43,0x23,0x0e]
49 # CHECK-LE: vpkpx 2, 3, 4 # encoding: [0x0e,0x23,0x43,0x10]
51 # CHECK-BE: vpkshss 2, 3, 4 # encoding: [0x10,0x43,0x21,0x8e]
52 # CHECK-LE: vpkshss 2, 3, 4 # encoding: [0x8e,0x21,0x43,0x10]
54 # CHECK-BE: vpkshus 2, 3, 4 # encoding: [0x10,0x43,0x21,0x0e]
55 # CHECK-LE: vpkshus 2, 3, 4 # encoding: [0x0e,0x21,0x43,0x10]
57 # CHECK-BE: vpkswss 2, 3, 4 # encoding: [0x10,0x43,0x21,0xce]
58 # CHECK-LE: vpkswss 2, 3, 4 # encoding: [0xce,0x21,0x43,0x10]
60 # CHECK-BE: vpkswus 2, 3, 4 # encoding: [0x10,0x43,0x21,0x4e]
61 # CHECK-LE: vpkswus 2, 3, 4 # encoding: [0x4e,0x21,0x43,0x10]
63 # CHECK-BE: vpkuhum 2, 3, 4 # encoding: [0x10,0x43,0x20,0x0e]
64 # CHECK-LE: vpkuhum 2, 3, 4 # encoding: [0x0e,0x20,0x43,0x10]
66 # CHECK-BE: vpkuhus 2, 3, 4 # encoding: [0x10,0x43,0x20,0x8e]
67 # CHECK-LE: vpkuhus 2, 3, 4 # encoding: [0x8e,0x20,0x43,0x10]
69 # CHECK-BE: vpkuwum 2, 3, 4 # encoding: [0x10,0x43,0x20,0x4e]
70 # CHECK-LE: vpkuwum 2, 3, 4 # encoding: [0x4e,0x20,0x43,0x10]
72 # CHECK-BE: vpkuwus 2, 3, 4 # encoding: [0x10,0x43,0x20,0xce]
73 # CHECK-LE: vpkuwus 2, 3, 4 # encoding: [0xce,0x20,0x43,0x10]
76 # CHECK-BE: vupkhpx 2, 3 # encoding: [0x10,0x40,0x1b,0x4e]
77 # CHECK-LE: vupkhpx 2, 3 # encoding: [0x4e,0x1b,0x40,0x10]
79 # CHECK-BE: vupkhsb 2, 3 # encoding: [0x10,0x40,0x1a,0x0e]
80 # CHECK-LE: vupkhsb 2, 3 # encoding: [0x0e,0x1a,0x40,0x10]
82 # CHECK-BE: vupkhsh 2, 3 # encoding: [0x10,0x40,0x1a,0x4e]
83 # CHECK-LE: vupkhsh 2, 3 # encoding: [0x4e,0x1a,0x40,0x10]
85 # CHECK-BE: vupklpx 2, 3 # encoding: [0x10,0x40,0x1b,0xce]
86 # CHECK-LE: vupklpx 2, 3 # encoding: [0xce,0x1b,0x40,0x10]
88 # CHECK-BE: vupklsb 2, 3 # encoding: [0x10,0x40,0x1a,0x8e]
89 # CHECK-LE: vupklsb 2, 3 # encoding: [0x8e,0x1a,0x40,0x10]
91 # CHECK-BE: vupklsh 2, 3 # encoding: [0x10,0x40,0x1a,0xce]
92 # CHECK-LE: vupklsh 2, 3 # encoding: [0xce,0x1a,0x40,0x10]
95 # CHECK-BE: vmrghb 2, 3, 4 # encoding: [0x10,0x43,0x20,0x0c]
96 # CHECK-LE: vmrghb 2, 3, 4 # encoding: [0x0c,0x20,0x43,0x10]
98 # CHECK-BE: vmrghh 2, 3, 4 # encoding: [0x10,0x43,0x20,0x4c]
99 # CHECK-LE: vmrghh 2, 3, 4 # encoding: [0x4c,0x20,0x43,0x10]
101 # CHECK-BE: vmrghw 2, 3, 4 # encoding: [0x10,0x43,0x20,0x8c]
102 # CHECK-LE: vmrghw 2, 3, 4 # encoding: [0x8c,0x20,0x43,0x10]
104 # CHECK-BE: vmrglb 2, 3, 4 # encoding: [0x10,0x43,0x21,0x0c]
105 # CHECK-LE: vmrglb 2, 3, 4 # encoding: [0x0c,0x21,0x43,0x10]
107 # CHECK-BE: vmrglh 2, 3, 4 # encoding: [0x10,0x43,0x21,0x4c]
108 # CHECK-LE: vmrglh 2, 3, 4 # encoding: [0x4c,0x21,0x43,0x10]
110 # CHECK-BE: vmrglw 2, 3, 4 # encoding: [0x10,0x43,0x21,0x8c]
111 # CHECK-LE: vmrglw 2, 3, 4 # encoding: [0x8c,0x21,0x43,0x10]
114 # CHECK-BE: vspltb 2, 3, 1 # encoding: [0x10,0x41,0x1a,0x0c]
115 # CHECK-LE: vspltb 2, 3, 1 # encoding: [0x0c,0x1a,0x41,0x10]
117 # CHECK-BE: vsplth 2, 3, 1 # encoding: [0x10,0x41,0x1a,0x4c]
118 # CHECK-LE: vsplth 2, 3, 1 # encoding: [0x4c,0x1a,0x41,0x10]
120 # CHECK-BE: vspltw 2, 3, 1 # encoding: [0x10,0x41,0x1a,0x8c]
121 # CHECK-LE: vspltw 2, 3, 1 # encoding: [0x8c,0x1a,0x41,0x10]
123 # CHECK-BE: vspltisb 2, 3 # encoding: [0x10,0x43,0x03,0x0c]
124 # CHECK-LE: vspltisb 2, 3 # encoding: [0x0c,0x03,0x43,0x10]
126 # CHECK-BE: vspltish 2, 3 # encoding: [0x10,0x43,0x03,0x4c]
127 # CHECK-LE: vspltish 2, 3 # encoding: [0x4c,0x03,0x43,0x10]
129 # CHECK-BE: vspltisw 2, 3 # encoding: [0x10,0x43,0x03,0x8c]
130 # CHECK-LE: vspltisw 2, 3 # encoding: [0x8c,0x03,0x43,0x10]
133 # CHECK-BE: vperm 2, 3, 4, 5 # encoding: [0x10,0x43,0x21,0x6b]
134 # CHECK-LE: vperm 2, 3, 4, 5 # encoding: [0x6b,0x21,0x43,0x10]
136 # CHECK-BE: vsel 2, 3, 4, 5 # encoding: [0x10,0x43,0x21,0x6a]
137 # CHECK-LE: vsel 2, 3, 4, 5 # encoding: [0x6a,0x21,0x43,0x10]
140 # CHECK-BE: vsl 2, 3, 4 # encoding: [0x10,0x43,0x21,0xc4]
141 # CHECK-LE: vsl 2, 3, 4 # encoding: [0xc4,0x21,0x43,0x10]
143 # CHECK-BE: vsldoi 2, 3, 4, 5 # encoding: [0x10,0x43,0x21,0x6c]
144 # CHECK-LE: vsldoi 2, 3, 4, 5 # encoding: [0x6c,0x21,0x43,0x10]
146 # CHECK-BE: vslo 2, 3, 4 # encoding: [0x10,0x43,0x24,0x0c]
147 # CHECK-LE: vslo 2, 3, 4 # encoding: [0x0c,0x24,0x43,0x10]
149 # CHECK-BE: vsr 2, 3, 4 # encoding: [0x10,0x43,0x22,0xc4]
150 # CHECK-LE: vsr 2, 3, 4 # encoding: [0xc4,0x22,0x43,0x10]
152 # CHECK-BE: vsro 2, 3, 4 # encoding: [0x10,0x43,0x24,0x4c]
153 # CHECK-LE: vsro 2, 3, 4 # encoding: [0x4c,0x24,0x43,0x10]
156 # Vector integer arithmetic instructions
158 # CHECK-BE: vaddcuw 2, 3, 4 # encoding: [0x10,0x43,0x21,0x80]
159 # CHECK-LE: vaddcuw 2, 3, 4 # encoding: [0x80,0x21,0x43,0x10]
161 # CHECK-BE: vaddsbs 2, 3, 4 # encoding: [0x10,0x43,0x23,0x00]
162 # CHECK-LE: vaddsbs 2, 3, 4 # encoding: [0x00,0x23,0x43,0x10]
164 # CHECK-BE: vaddshs 2, 3, 4 # encoding: [0x10,0x43,0x23,0x40]
165 # CHECK-LE: vaddshs 2, 3, 4 # encoding: [0x40,0x23,0x43,0x10]
167 # CHECK-BE: vaddsws 2, 3, 4 # encoding: [0x10,0x43,0x23,0x80]
168 # CHECK-LE: vaddsws 2, 3, 4 # encoding: [0x80,0x23,0x43,0x10]
170 # CHECK-BE: vaddubm 2, 3, 4 # encoding: [0x10,0x43,0x20,0x00]
171 # CHECK-LE: vaddubm 2, 3, 4 # encoding: [0x00,0x20,0x43,0x10]
173 # CHECK-BE: vadduhm 2, 3, 4 # encoding: [0x10,0x43,0x20,0x40]
174 # CHECK-LE: vadduhm 2, 3, 4 # encoding: [0x40,0x20,0x43,0x10]
176 # CHECK-BE: vadduwm 2, 3, 4 # encoding: [0x10,0x43,0x20,0x80]
177 # CHECK-LE: vadduwm 2, 3, 4 # encoding: [0x80,0x20,0x43,0x10]
179 # CHECK-BE: vaddudm 2, 3, 4 # encoding: [0x10,0x43,0x20,0xc0]
180 # CHECK-LE: vaddudm 2, 3, 4 # encoding: [0xc0,0x20,0x43,0x10]
182 # CHECK-BE: vaddubs 2, 3, 4 # encoding: [0x10,0x43,0x22,0x00]
183 # CHECK-LE: vaddubs 2, 3, 4 # encoding: [0x00,0x22,0x43,0x10]
185 # CHECK-BE: vadduhs 2, 3, 4 # encoding: [0x10,0x43,0x22,0x40]
186 # CHECK-LE: vadduhs 2, 3, 4 # encoding: [0x40,0x22,0x43,0x10]
188 # CHECK-BE: vadduws 2, 3, 4 # encoding: [0x10,0x43,0x22,0x80]
189 # CHECK-LE: vadduws 2, 3, 4 # encoding: [0x80,0x22,0x43,0x10]
192 # CHECK-BE: vsubcuw 2, 3, 4 # encoding: [0x10,0x43,0x25,0x80]
193 # CHECK-LE: vsubcuw 2, 3, 4 # encoding: [0x80,0x25,0x43,0x10]
195 # CHECK-BE: vsubsbs 2, 3, 4 # encoding: [0x10,0x43,0x27,0x00]
196 # CHECK-LE: vsubsbs 2, 3, 4 # encoding: [0x00,0x27,0x43,0x10]
198 # CHECK-BE: vsubshs 2, 3, 4 # encoding: [0x10,0x43,0x27,0x40]
199 # CHECK-LE: vsubshs 2, 3, 4 # encoding: [0x40,0x27,0x43,0x10]
201 # CHECK-BE: vsubsws 2, 3, 4 # encoding: [0x10,0x43,0x27,0x80]
202 # CHECK-LE: vsubsws 2, 3, 4 # encoding: [0x80,0x27,0x43,0x10]
204 # CHECK-BE: vsububm 2, 3, 4 # encoding: [0x10,0x43,0x24,0x00]
205 # CHECK-LE: vsububm 2, 3, 4 # encoding: [0x00,0x24,0x43,0x10]
207 # CHECK-BE: vsubuhm 2, 3, 4 # encoding: [0x10,0x43,0x24,0x40]
208 # CHECK-LE: vsubuhm 2, 3, 4 # encoding: [0x40,0x24,0x43,0x10]
210 # CHECK-BE: vsubuwm 2, 3, 4 # encoding: [0x10,0x43,0x24,0x80]
211 # CHECK-LE: vsubuwm 2, 3, 4 # encoding: [0x80,0x24,0x43,0x10]
213 # CHECK-BE: vsubudm 2, 3, 4 # encoding: [0x10,0x43,0x24,0xc0]
214 # CHECK-LE: vsubudm 2, 3, 4 # encoding: [0xc0,0x24,0x43,0x10]
216 # CHECK-BE: vsububs 2, 3, 4 # encoding: [0x10,0x43,0x26,0x00]
217 # CHECK-LE: vsububs 2, 3, 4 # encoding: [0x00,0x26,0x43,0x10]
219 # CHECK-BE: vsubuhs 2, 3, 4 # encoding: [0x10,0x43,0x26,0x40]
220 # CHECK-LE: vsubuhs 2, 3, 4 # encoding: [0x40,0x26,0x43,0x10]
222 # CHECK-BE: vsubuws 2, 3, 4 # encoding: [0x10,0x43,0x26,0x80]
223 # CHECK-LE: vsubuws 2, 3, 4 # encoding: [0x80,0x26,0x43,0x10]
226 # CHECK-BE: vmulesb 2, 3, 4 # encoding: [0x10,0x43,0x23,0x08]
227 # CHECK-LE: vmulesb 2, 3, 4 # encoding: [0x08,0x23,0x43,0x10]
229 # CHECK-BE: vmulesh 2, 3, 4 # encoding: [0x10,0x43,0x23,0x48]
230 # CHECK-LE: vmulesh 2, 3, 4 # encoding: [0x48,0x23,0x43,0x10]
232 # CHECK-BE: vmulesw 2, 3, 4 # encoding: [0x10,0x43,0x23,0x88]
233 # CHECK-LE: vmulesw 2, 3, 4 # encoding: [0x88,0x23,0x43,0x10]
235 # CHECK-BE: vmuleub 2, 3, 4 # encoding: [0x10,0x43,0x22,0x08]
236 # CHECK-LE: vmuleub 2, 3, 4 # encoding: [0x08,0x22,0x43,0x10]
238 # CHECK-BE: vmuleuh 2, 3, 4 # encoding: [0x10,0x43,0x22,0x48]
239 # CHECK-LE: vmuleuh 2, 3, 4 # encoding: [0x48,0x22,0x43,0x10]
241 # CHECK-BE: vmuleuw 2, 3, 4 # encoding: [0x10,0x43,0x22,0x88]
242 # CHECK-LE: vmuleuw 2, 3, 4 # encoding: [0x88,0x22,0x43,0x10]
244 # CHECK-BE: vmulosb 2, 3, 4 # encoding: [0x10,0x43,0x21,0x08]
245 # CHECK-LE: vmulosb 2, 3, 4 # encoding: [0x08,0x21,0x43,0x10]
247 # CHECK-BE: vmulosh 2, 3, 4 # encoding: [0x10,0x43,0x21,0x48]
248 # CHECK-LE: vmulosh 2, 3, 4 # encoding: [0x48,0x21,0x43,0x10]
250 # CHECK-BE: vmulosw 2, 3, 4 # encoding: [0x10,0x43,0x21,0x88]
251 # CHECK-LE: vmulosw 2, 3, 4 # encoding: [0x88,0x21,0x43,0x10]
253 # CHECK-BE: vmuloub 2, 3, 4 # encoding: [0x10,0x43,0x20,0x08]
254 # CHECK-LE: vmuloub 2, 3, 4 # encoding: [0x08,0x20,0x43,0x10]
256 # CHECK-BE: vmulouh 2, 3, 4 # encoding: [0x10,0x43,0x20,0x48]
257 # CHECK-LE: vmulouh 2, 3, 4 # encoding: [0x48,0x20,0x43,0x10]
259 # CHECK-BE: vmulouw 2, 3, 4 # encoding: [0x10,0x43,0x20,0x88]
260 # CHECK-LE: vmulouw 2, 3, 4 # encoding: [0x88,0x20,0x43,0x10]
262 # CHECK-BE: vmuluwm 2, 3, 4 # encoding: [0x10,0x43,0x20,0x89]
263 # CHECK-LE: vmuluwm 2, 3, 4 # encoding: [0x89,0x20,0x43,0x10]
266 # CHECK-BE: vmhaddshs 2, 3, 4, 5 # encoding: [0x10,0x43,0x21,0x60]
267 # CHECK-LE: vmhaddshs 2, 3, 4, 5 # encoding: [0x60,0x21,0x43,0x10]
269 # CHECK-BE: vmhraddshs 2, 3, 4, 5 # encoding: [0x10,0x43,0x21,0x61]
270 # CHECK-LE: vmhraddshs 2, 3, 4, 5 # encoding: [0x61,0x21,0x43,0x10]
271 vmhraddshs 2, 3, 4, 5
272 # CHECK-BE: vmladduhm 2, 3, 4, 5 # encoding: [0x10,0x43,0x21,0x62]
273 # CHECK-LE: vmladduhm 2, 3, 4, 5 # encoding: [0x62,0x21,0x43,0x10]
275 # CHECK-BE: vmsumubm 2, 3, 4, 5 # encoding: [0x10,0x43,0x21,0x64]
276 # CHECK-LE: vmsumubm 2, 3, 4, 5 # encoding: [0x64,0x21,0x43,0x10]
278 # CHECK-BE: vmsummbm 2, 3, 4, 5 # encoding: [0x10,0x43,0x21,0x65]
279 # CHECK-LE: vmsummbm 2, 3, 4, 5 # encoding: [0x65,0x21,0x43,0x10]
281 # CHECK-BE: vmsumshm 2, 3, 4, 5 # encoding: [0x10,0x43,0x21,0x68]
282 # CHECK-LE: vmsumshm 2, 3, 4, 5 # encoding: [0x68,0x21,0x43,0x10]
284 # CHECK-BE: vmsumshs 2, 3, 4, 5 # encoding: [0x10,0x43,0x21,0x69]
285 # CHECK-LE: vmsumshs 2, 3, 4, 5 # encoding: [0x69,0x21,0x43,0x10]
287 # CHECK-BE: vmsumuhm 2, 3, 4, 5 # encoding: [0x10,0x43,0x21,0x66]
288 # CHECK-LE: vmsumuhm 2, 3, 4, 5 # encoding: [0x66,0x21,0x43,0x10]
290 # CHECK-BE: vmsumuhs 2, 3, 4, 5 # encoding: [0x10,0x43,0x21,0x67]
291 # CHECK-LE: vmsumuhs 2, 3, 4, 5 # encoding: [0x67,0x21,0x43,0x10]
294 # CHECK-BE: vsumsws 2, 3, 4 # encoding: [0x10,0x43,0x27,0x88]
295 # CHECK-LE: vsumsws 2, 3, 4 # encoding: [0x88,0x27,0x43,0x10]
297 # CHECK-BE: vsum2sws 2, 3, 4 # encoding: [0x10,0x43,0x26,0x88]
298 # CHECK-LE: vsum2sws 2, 3, 4 # encoding: [0x88,0x26,0x43,0x10]
300 # CHECK-BE: vsum4sbs 2, 3, 4 # encoding: [0x10,0x43,0x27,0x08]
301 # CHECK-LE: vsum4sbs 2, 3, 4 # encoding: [0x08,0x27,0x43,0x10]
303 # CHECK-BE: vsum4shs 2, 3, 4 # encoding: [0x10,0x43,0x26,0x48]
304 # CHECK-LE: vsum4shs 2, 3, 4 # encoding: [0x48,0x26,0x43,0x10]
306 # CHECK-BE: vsum4ubs 2, 3, 4 # encoding: [0x10,0x43,0x26,0x08]
307 # CHECK-LE: vsum4ubs 2, 3, 4 # encoding: [0x08,0x26,0x43,0x10]
310 # CHECK-BE: vavgsb 2, 3, 4 # encoding: [0x10,0x43,0x25,0x02]
311 # CHECK-LE: vavgsb 2, 3, 4 # encoding: [0x02,0x25,0x43,0x10]
313 # CHECK-BE: vavgsh 2, 3, 4 # encoding: [0x10,0x43,0x25,0x42]
314 # CHECK-LE: vavgsh 2, 3, 4 # encoding: [0x42,0x25,0x43,0x10]
316 # CHECK-BE: vavgsw 2, 3, 4 # encoding: [0x10,0x43,0x25,0x82]
317 # CHECK-LE: vavgsw 2, 3, 4 # encoding: [0x82,0x25,0x43,0x10]
319 # CHECK-BE: vavgub 2, 3, 4 # encoding: [0x10,0x43,0x24,0x02]
320 # CHECK-LE: vavgub 2, 3, 4 # encoding: [0x02,0x24,0x43,0x10]
322 # CHECK-BE: vavguh 2, 3, 4 # encoding: [0x10,0x43,0x24,0x42]
323 # CHECK-LE: vavguh 2, 3, 4 # encoding: [0x42,0x24,0x43,0x10]
325 # CHECK-BE: vavguw 2, 3, 4 # encoding: [0x10,0x43,0x24,0x82]
326 # CHECK-LE: vavguw 2, 3, 4 # encoding: [0x82,0x24,0x43,0x10]
329 # CHECK-BE: vmaxsb 2, 3, 4 # encoding: [0x10,0x43,0x21,0x02]
330 # CHECK-LE: vmaxsb 2, 3, 4 # encoding: [0x02,0x21,0x43,0x10]
332 # CHECK-BE: vmaxsh 2, 3, 4 # encoding: [0x10,0x43,0x21,0x42]
333 # CHECK-LE: vmaxsh 2, 3, 4 # encoding: [0x42,0x21,0x43,0x10]
335 # CHECK-BE: vmaxsw 2, 3, 4 # encoding: [0x10,0x43,0x21,0x82]
336 # CHECK-LE: vmaxsw 2, 3, 4 # encoding: [0x82,0x21,0x43,0x10]
338 # CHECK-BE: vmaxsd 2, 3, 4 # encoding: [0x10,0x43,0x21,0xc2]
339 # CHECK-LE: vmaxsd 2, 3, 4 # encoding: [0xc2,0x21,0x43,0x10]
341 # CHECK-BE: vmaxub 2, 3, 4 # encoding: [0x10,0x43,0x20,0x02]
342 # CHECK-LE: vmaxub 2, 3, 4 # encoding: [0x02,0x20,0x43,0x10]
344 # CHECK-BE: vmaxuh 2, 3, 4 # encoding: [0x10,0x43,0x20,0x42]
345 # CHECK-LE: vmaxuh 2, 3, 4 # encoding: [0x42,0x20,0x43,0x10]
347 # CHECK-BE: vmaxuw 2, 3, 4 # encoding: [0x10,0x43,0x20,0x82]
348 # CHECK-LE: vmaxuw 2, 3, 4 # encoding: [0x82,0x20,0x43,0x10]
350 # CHECK-BE: vmaxud 2, 3, 4 # encoding: [0x10,0x43,0x20,0xc2]
351 # CHECK-LE: vmaxud 2, 3, 4 # encoding: [0xc2,0x20,0x43,0x10]
354 # CHECK-BE: vminsb 2, 3, 4 # encoding: [0x10,0x43,0x23,0x02]
355 # CHECK-LE: vminsb 2, 3, 4 # encoding: [0x02,0x23,0x43,0x10]
357 # CHECK-BE: vminsh 2, 3, 4 # encoding: [0x10,0x43,0x23,0x42]
358 # CHECK-LE: vminsh 2, 3, 4 # encoding: [0x42,0x23,0x43,0x10]
360 # CHECK-BE: vminsw 2, 3, 4 # encoding: [0x10,0x43,0x23,0x82]
361 # CHECK-LE: vminsw 2, 3, 4 # encoding: [0x82,0x23,0x43,0x10]
363 # CHECK-BE: vminsd 2, 3, 4 # encoding: [0x10,0x43,0x23,0xc2]
364 # CHECK-LE: vminsd 2, 3, 4 # encoding: [0xc2,0x23,0x43,0x10]
366 # CHECK-BE: vminub 2, 3, 4 # encoding: [0x10,0x43,0x22,0x02]
367 # CHECK-LE: vminub 2, 3, 4 # encoding: [0x02,0x22,0x43,0x10]
369 # CHECK-BE: vminuh 2, 3, 4 # encoding: [0x10,0x43,0x22,0x42]
370 # CHECK-LE: vminuh 2, 3, 4 # encoding: [0x42,0x22,0x43,0x10]
372 # CHECK-BE: vminuw 2, 3, 4 # encoding: [0x10,0x43,0x22,0x82]
373 # CHECK-LE: vminuw 2, 3, 4 # encoding: [0x82,0x22,0x43,0x10]
375 # CHECK-BE: vminud 2, 3, 4 # encoding: [0x10,0x43,0x22,0xc2]
376 # CHECK-LE: vminud 2, 3, 4 # encoding: [0xc2,0x22,0x43,0x10]
379 # Vector integer compare instructions
381 # CHECK-BE: vcmpequb 2, 3, 4 # encoding: [0x10,0x43,0x20,0x06]
382 # CHECK-LE: vcmpequb 2, 3, 4 # encoding: [0x06,0x20,0x43,0x10]
384 # CHECK-BE: vcmpequb. 2, 3, 4 # encoding: [0x10,0x43,0x24,0x06]
385 # CHECK-LE: vcmpequb. 2, 3, 4 # encoding: [0x06,0x24,0x43,0x10]
387 # CHECK-BE: vcmpequh 2, 3, 4 # encoding: [0x10,0x43,0x20,0x46]
388 # CHECK-LE: vcmpequh 2, 3, 4 # encoding: [0x46,0x20,0x43,0x10]
390 # CHECK-BE: vcmpequh. 2, 3, 4 # encoding: [0x10,0x43,0x24,0x46]
391 # CHECK-LE: vcmpequh. 2, 3, 4 # encoding: [0x46,0x24,0x43,0x10]
393 # CHECK-BE: vcmpequw 2, 3, 4 # encoding: [0x10,0x43,0x20,0x86]
394 # CHECK-LE: vcmpequw 2, 3, 4 # encoding: [0x86,0x20,0x43,0x10]
396 # CHECK-BE: vcmpequw. 2, 3, 4 # encoding: [0x10,0x43,0x24,0x86]
397 # CHECK-LE: vcmpequw. 2, 3, 4 # encoding: [0x86,0x24,0x43,0x10]
399 # CHECK-BE: vcmpequd 2, 3, 4 # encoding: [0x10,0x43,0x20,0xc7]
400 # CHECK-LE: vcmpequd 2, 3, 4 # encoding: [0xc7,0x20,0x43,0x10]
402 # CHECK-BE: vcmpequd. 2, 3, 4 # encoding: [0x10,0x43,0x24,0xc7]
403 # CHECK-LE: vcmpequd. 2, 3, 4 # encoding: [0xc7,0x24,0x43,0x10]
405 # CHECK-BE: vcmpgtsb 2, 3, 4 # encoding: [0x10,0x43,0x23,0x06]
406 # CHECK-LE: vcmpgtsb 2, 3, 4 # encoding: [0x06,0x23,0x43,0x10]
408 # CHECK-BE: vcmpgtsb. 2, 3, 4 # encoding: [0x10,0x43,0x27,0x06]
409 # CHECK-LE: vcmpgtsb. 2, 3, 4 # encoding: [0x06,0x27,0x43,0x10]
411 # CHECK-BE: vcmpgtsh 2, 3, 4 # encoding: [0x10,0x43,0x23,0x46]
412 # CHECK-LE: vcmpgtsh 2, 3, 4 # encoding: [0x46,0x23,0x43,0x10]
414 # CHECK-BE: vcmpgtsh. 2, 3, 4 # encoding: [0x10,0x43,0x27,0x46]
415 # CHECK-LE: vcmpgtsh. 2, 3, 4 # encoding: [0x46,0x27,0x43,0x10]
417 # CHECK-BE: vcmpgtsw 2, 3, 4 # encoding: [0x10,0x43,0x23,0x86]
418 # CHECK-LE: vcmpgtsw 2, 3, 4 # encoding: [0x86,0x23,0x43,0x10]
420 # CHECK-BE: vcmpgtsw. 2, 3, 4 # encoding: [0x10,0x43,0x27,0x86]
421 # CHECK-LE: vcmpgtsw. 2, 3, 4 # encoding: [0x86,0x27,0x43,0x10]
423 # CHECK-BE: vcmpgtsd 2, 3, 4 # encoding: [0x10,0x43,0x23,0xc7]
424 # CHECK-LE: vcmpgtsd 2, 3, 4 # encoding: [0xc7,0x23,0x43,0x10]
426 # CHECK-BE: vcmpgtsd. 2, 3, 4 # encoding: [0x10,0x43,0x27,0xc7]
427 # CHECK-LE: vcmpgtsd. 2, 3, 4 # encoding: [0xc7,0x27,0x43,0x10]
429 # CHECK-BE: vcmpgtub 2, 3, 4 # encoding: [0x10,0x43,0x22,0x06]
430 # CHECK-LE: vcmpgtub 2, 3, 4 # encoding: [0x06,0x22,0x43,0x10]
432 # CHECK-BE: vcmpgtub. 2, 3, 4 # encoding: [0x10,0x43,0x26,0x06]
433 # CHECK-LE: vcmpgtub. 2, 3, 4 # encoding: [0x06,0x26,0x43,0x10]
435 # CHECK-BE: vcmpgtuh 2, 3, 4 # encoding: [0x10,0x43,0x22,0x46]
436 # CHECK-LE: vcmpgtuh 2, 3, 4 # encoding: [0x46,0x22,0x43,0x10]
438 # CHECK-BE: vcmpgtuh. 2, 3, 4 # encoding: [0x10,0x43,0x26,0x46]
439 # CHECK-LE: vcmpgtuh. 2, 3, 4 # encoding: [0x46,0x26,0x43,0x10]
441 # CHECK-BE: vcmpgtuw 2, 3, 4 # encoding: [0x10,0x43,0x22,0x86]
442 # CHECK-LE: vcmpgtuw 2, 3, 4 # encoding: [0x86,0x22,0x43,0x10]
444 # CHECK-BE: vcmpgtuw. 2, 3, 4 # encoding: [0x10,0x43,0x26,0x86]
445 # CHECK-LE: vcmpgtuw. 2, 3, 4 # encoding: [0x86,0x26,0x43,0x10]
447 # CHECK-BE: vcmpgtud 2, 3, 4 # encoding: [0x10,0x43,0x22,0xc7]
448 # CHECK-LE: vcmpgtud 2, 3, 4 # encoding: [0xc7,0x22,0x43,0x10]
450 # CHECK-BE: vcmpgtud. 2, 3, 4 # encoding: [0x10,0x43,0x26,0xc7]
451 # CHECK-LE: vcmpgtud. 2, 3, 4 # encoding: [0xc7,0x26,0x43,0x10]
454 # Vector integer logical instructions
456 # CHECK-BE: vand 2, 3, 4 # encoding: [0x10,0x43,0x24,0x04]
457 # CHECK-LE: vand 2, 3, 4 # encoding: [0x04,0x24,0x43,0x10]
459 # CHECK-BE: vandc 2, 3, 4 # encoding: [0x10,0x43,0x24,0x44]
460 # CHECK-LE: vandc 2, 3, 4 # encoding: [0x44,0x24,0x43,0x10]
462 # CHECK-BE: veqv 2, 3, 4 # encoding: [0x10,0x43,0x26,0x84]
463 # CHECK-LE: veqv 2, 3, 4 # encoding: [0x84,0x26,0x43,0x10]
465 # CHECK-BE: vnand 2, 3, 4 # encoding: [0x10,0x43,0x25,0x84]
466 # CHECK-LE: vnand 2, 3, 4 # encoding: [0x84,0x25,0x43,0x10]
468 # CHECK-BE: vorc 2, 3, 4 # encoding: [0x10,0x43,0x25,0x44]
469 # CHECK-LE: vorc 2, 3, 4 # encoding: [0x44,0x25,0x43,0x10]
471 # CHECK-BE: vnor 2, 3, 4 # encoding: [0x10,0x43,0x25,0x04]
472 # CHECK-LE: vnor 2, 3, 4 # encoding: [0x04,0x25,0x43,0x10]
474 # CHECK-BE: vor 2, 3, 4 # encoding: [0x10,0x43,0x24,0x84]
475 # CHECK-LE: vor 2, 3, 4 # encoding: [0x84,0x24,0x43,0x10]
477 # CHECK-BE: vxor 2, 3, 4 # encoding: [0x10,0x43,0x24,0xc4]
478 # CHECK-LE: vxor 2, 3, 4 # encoding: [0xc4,0x24,0x43,0x10]
481 # Vector integer rotate and shift instructions
483 # CHECK-BE: vrlb 2, 3, 4 # encoding: [0x10,0x43,0x20,0x04]
484 # CHECK-LE: vrlb 2, 3, 4 # encoding: [0x04,0x20,0x43,0x10]
486 # CHECK-BE: vrlh 2, 3, 4 # encoding: [0x10,0x43,0x20,0x44]
487 # CHECK-LE: vrlh 2, 3, 4 # encoding: [0x44,0x20,0x43,0x10]
489 # CHECK-BE: vrlw 2, 3, 4 # encoding: [0x10,0x43,0x20,0x84]
490 # CHECK-LE: vrlw 2, 3, 4 # encoding: [0x84,0x20,0x43,0x10]
492 # CHECK-BE: vrld 2, 3, 4 # encoding: [0x10,0x43,0x20,0xc4]
493 # CHECK-LE: vrld 2, 3, 4 # encoding: [0xc4,0x20,0x43,0x10]
495 # CHECK-BE: vslb 2, 3, 4 # encoding: [0x10,0x43,0x21,0x04]
496 # CHECK-LE: vslb 2, 3, 4 # encoding: [0x04,0x21,0x43,0x10]
498 # CHECK-BE: vslh 2, 3, 4 # encoding: [0x10,0x43,0x21,0x44]
499 # CHECK-LE: vslh 2, 3, 4 # encoding: [0x44,0x21,0x43,0x10]
501 # CHECK-BE: vslw 2, 3, 4 # encoding: [0x10,0x43,0x21,0x84]
502 # CHECK-LE: vslw 2, 3, 4 # encoding: [0x84,0x21,0x43,0x10]
504 # CHECK-BE: vsld 2, 3, 4 # encoding: [0x10,0x43,0x25,0xc4]
505 # CHECK-LE: vsld 2, 3, 4 # encoding: [0xc4,0x25,0x43,0x10]
507 # CHECK-BE: vsrb 2, 3, 4 # encoding: [0x10,0x43,0x22,0x04]
508 # CHECK-LE: vsrb 2, 3, 4 # encoding: [0x04,0x22,0x43,0x10]
510 # CHECK-BE: vsrh 2, 3, 4 # encoding: [0x10,0x43,0x22,0x44]
511 # CHECK-LE: vsrh 2, 3, 4 # encoding: [0x44,0x22,0x43,0x10]
513 # CHECK-BE: vsrw 2, 3, 4 # encoding: [0x10,0x43,0x22,0x84]
514 # CHECK-LE: vsrw 2, 3, 4 # encoding: [0x84,0x22,0x43,0x10]
516 # CHECK-BE: vsrd 2, 3, 4 # encoding: [0x10,0x43,0x26,0xc4]
517 # CHECK-LE: vsrd 2, 3, 4 # encoding: [0xc4,0x26,0x43,0x10]
519 # CHECK-BE: vsrab 2, 3, 4 # encoding: [0x10,0x43,0x23,0x04]
520 # CHECK-LE: vsrab 2, 3, 4 # encoding: [0x04,0x23,0x43,0x10]
522 # CHECK-BE: vsrah 2, 3, 4 # encoding: [0x10,0x43,0x23,0x44]
523 # CHECK-LE: vsrah 2, 3, 4 # encoding: [0x44,0x23,0x43,0x10]
525 # CHECK-BE: vsraw 2, 3, 4 # encoding: [0x10,0x43,0x23,0x84]
526 # CHECK-LE: vsraw 2, 3, 4 # encoding: [0x84,0x23,0x43,0x10]
528 # CHECK-BE: vsrad 2, 3, 4 # encoding: [0x10,0x43,0x23,0xc4]
529 # CHECK-LE: vsrad 2, 3, 4 # encoding: [0xc4,0x23,0x43,0x10]
532 # Vector floating-point instructions
534 # CHECK-BE: vaddfp 2, 3, 4 # encoding: [0x10,0x43,0x20,0x0a]
535 # CHECK-LE: vaddfp 2, 3, 4 # encoding: [0x0a,0x20,0x43,0x10]
537 # CHECK-BE: vsubfp 2, 3, 4 # encoding: [0x10,0x43,0x20,0x4a]
538 # CHECK-LE: vsubfp 2, 3, 4 # encoding: [0x4a,0x20,0x43,0x10]
540 # CHECK-BE: vmaddfp 2, 3, 4, 5 # encoding: [0x10,0x43,0x29,0x2e]
541 # CHECK-LE: vmaddfp 2, 3, 4, 5 # encoding: [0x2e,0x29,0x43,0x10]
543 # CHECK-BE: vnmsubfp 2, 3, 4, 5 # encoding: [0x10,0x43,0x29,0x2f]
544 # CHECK-LE: vnmsubfp 2, 3, 4, 5 # encoding: [0x2f,0x29,0x43,0x10]
547 # CHECK-BE: vmaxfp 2, 3, 4 # encoding: [0x10,0x43,0x24,0x0a]
548 # CHECK-LE: vmaxfp 2, 3, 4 # encoding: [0x0a,0x24,0x43,0x10]
550 # CHECK-BE: vminfp 2, 3, 4 # encoding: [0x10,0x43,0x24,0x4a]
551 # CHECK-LE: vminfp 2, 3, 4 # encoding: [0x4a,0x24,0x43,0x10]
554 # CHECK-BE: vctsxs 2, 3, 4 # encoding: [0x10,0x44,0x1b,0xca]
555 # CHECK-LE: vctsxs 2, 3, 4 # encoding: [0xca,0x1b,0x44,0x10]
557 # CHECK-BE: vctuxs 2, 3, 4 # encoding: [0x10,0x44,0x1b,0x8a]
558 # CHECK-LE: vctuxs 2, 3, 4 # encoding: [0x8a,0x1b,0x44,0x10]
560 # CHECK-BE: vcfsx 2, 3, 4 # encoding: [0x10,0x44,0x1b,0x4a]
561 # CHECK-LE: vcfsx 2, 3, 4 # encoding: [0x4a,0x1b,0x44,0x10]
563 # CHECK-BE: vcfux 2, 3, 4 # encoding: [0x10,0x44,0x1b,0x0a]
564 # CHECK-LE: vcfux 2, 3, 4 # encoding: [0x0a,0x1b,0x44,0x10]
566 # CHECK-BE: vrfim 2, 3 # encoding: [0x10,0x40,0x1a,0xca]
567 # CHECK-LE: vrfim 2, 3 # encoding: [0xca,0x1a,0x40,0x10]
569 # CHECK-BE: vrfin 2, 3 # encoding: [0x10,0x40,0x1a,0x0a]
570 # CHECK-LE: vrfin 2, 3 # encoding: [0x0a,0x1a,0x40,0x10]
572 # CHECK-BE: vrfip 2, 3 # encoding: [0x10,0x40,0x1a,0x8a]
573 # CHECK-LE: vrfip 2, 3 # encoding: [0x8a,0x1a,0x40,0x10]
575 # CHECK-BE: vrfiz 2, 3 # encoding: [0x10,0x40,0x1a,0x4a]
576 # CHECK-LE: vrfiz 2, 3 # encoding: [0x4a,0x1a,0x40,0x10]
579 # CHECK-BE: vcmpbfp 2, 3, 4 # encoding: [0x10,0x43,0x23,0xc6]
580 # CHECK-LE: vcmpbfp 2, 3, 4 # encoding: [0xc6,0x23,0x43,0x10]
582 # CHECK-BE: vcmpbfp. 2, 3, 4 # encoding: [0x10,0x43,0x27,0xc6]
583 # CHECK-LE: vcmpbfp. 2, 3, 4 # encoding: [0xc6,0x27,0x43,0x10]
585 # CHECK-BE: vcmpeqfp 2, 3, 4 # encoding: [0x10,0x43,0x20,0xc6]
586 # CHECK-LE: vcmpeqfp 2, 3, 4 # encoding: [0xc6,0x20,0x43,0x10]
588 # CHECK-BE: vcmpeqfp. 2, 3, 4 # encoding: [0x10,0x43,0x24,0xc6]
589 # CHECK-LE: vcmpeqfp. 2, 3, 4 # encoding: [0xc6,0x24,0x43,0x10]
591 # CHECK-BE: vcmpgefp 2, 3, 4 # encoding: [0x10,0x43,0x21,0xc6]
592 # CHECK-LE: vcmpgefp 2, 3, 4 # encoding: [0xc6,0x21,0x43,0x10]
594 # CHECK-BE: vcmpgefp. 2, 3, 4 # encoding: [0x10,0x43,0x25,0xc6]
595 # CHECK-LE: vcmpgefp. 2, 3, 4 # encoding: [0xc6,0x25,0x43,0x10]
597 # CHECK-BE: vcmpgtfp 2, 3, 4 # encoding: [0x10,0x43,0x22,0xc6]
598 # CHECK-LE: vcmpgtfp 2, 3, 4 # encoding: [0xc6,0x22,0x43,0x10]
600 # CHECK-BE: vcmpgtfp. 2, 3, 4 # encoding: [0x10,0x43,0x26,0xc6]
601 # CHECK-LE: vcmpgtfp. 2, 3, 4 # encoding: [0xc6,0x26,0x43,0x10]
604 # CHECK-BE: vexptefp 2, 3 # encoding: [0x10,0x40,0x19,0x8a]
605 # CHECK-LE: vexptefp 2, 3 # encoding: [0x8a,0x19,0x40,0x10]
607 # CHECK-BE: vlogefp 2, 3 # encoding: [0x10,0x40,0x19,0xca]
608 # CHECK-LE: vlogefp 2, 3 # encoding: [0xca,0x19,0x40,0x10]
610 # CHECK-BE: vrefp 2, 3 # encoding: [0x10,0x40,0x19,0x0a]
611 # CHECK-LE: vrefp 2, 3 # encoding: [0x0a,0x19,0x40,0x10]
613 # CHECK-BE: vrsqrtefp 2, 3 # encoding: [0x10,0x40,0x19,0x4a]
614 # CHECK-LE: vrsqrtefp 2, 3 # encoding: [0x4a,0x19,0x40,0x10]
617 # Vector count leading zero instructions
618 # CHECK-BE: vclzb 2, 3 # encoding: [0x10,0x40,0x1f,0x02]
619 # CHECK-LE: vclzb 2, 3 # encoding: [0x02,0x1f,0x40,0x10]
622 # CHECK-BE: vclzh 2, 3 # encoding: [0x10,0x40,0x1f,0x42]
623 # CHECK-LE: vclzh 2, 3 # encoding: [0x42,0x1f,0x40,0x10]
626 # CHECK-BE: vclzw 2, 3 # encoding: [0x10,0x40,0x1f,0x82]
627 # CHECK-LE: vclzw 2, 3 # encoding: [0x82,0x1f,0x40,0x10]
630 # CHECK-BE: vclzd 2, 3 # encoding: [0x10,0x40,0x1f,0xc2]
631 # CHECK-LE: vclzd 2, 3 # encoding: [0xc2,0x1f,0x40,0x10]
634 # Vector population count instructions
635 # CHECK-BE: vpopcntb 2, 3 # encoding: [0x10,0x40,0x1f,0x03]
636 # CHECK-LE: vpopcntb 2, 3 # encoding: [0x03,0x1f,0x40,0x10]
639 # CHECK-BE: vpopcnth 2, 3 # encoding: [0x10,0x40,0x1f,0x43]
640 # CHECK-LE: vpopcnth 2, 3 # encoding: [0x43,0x1f,0x40,0x10]
643 # CHECK-BE: vpopcntw 2, 3 # encoding: [0x10,0x40,0x1f,0x83]
644 # CHECK-LE: vpopcntw 2, 3 # encoding: [0x83,0x1f,0x40,0x10]
647 # BCHECK-BE: vpopcntd 2, 3 # encoding: [0x10,0x40,0x1f,0xC3]
648 # BCHECK-LE: vpopcntd 2, 3 # encoding: [0xC3,0x1f,0x40,0x10]
651 # Vector status and control register instructions
653 # CHECK-BE: mtvscr 2 # encoding: [0x10,0x00,0x16,0x44]
654 # CHECK-LE: mtvscr 2 # encoding: [0x44,0x16,0x00,0x10]
656 # CHECK-BE: mfvscr 2 # encoding: [0x10,0x40,0x06,0x04]
657 # CHECK-LE: mfvscr 2 # encoding: [0x04,0x06,0x40,0x10]