xref: /llvm-project/llvm/test/MC/Disassembler/AMDGPU/gfx9_sop2.txt (revision 252c42354eca54274ed7b10c32c73c6937478e8b)
1# RUN: llvm-mc -triple=amdgcn -mcpu=gfx900 -disassemble -show-encoding < %s | FileCheck -strict-whitespace %s
2
3# CHECK: s_add_u32 s5, s1, s2                    ; encoding: [0x01,0x02,0x05,0x80]
40x01,0x02,0x05,0x80
5
6# CHECK: s_add_u32 s101, s1, s2                  ; encoding: [0x01,0x02,0x65,0x80]
70x01,0x02,0x65,0x80
8
9# CHECK: s_add_u32 flat_scratch_lo, s1, s2       ; encoding: [0x01,0x02,0x66,0x80]
100x01,0x02,0x66,0x80
11
12# CHECK: s_add_u32 flat_scratch_hi, s1, s2       ; encoding: [0x01,0x02,0x67,0x80]
130x01,0x02,0x67,0x80
14
15# CHECK: s_add_u32 vcc_lo, s1, s2                ; encoding: [0x01,0x02,0x6a,0x80]
160x01,0x02,0x6a,0x80
17
18# CHECK: s_add_u32 vcc_hi, s1, s2                ; encoding: [0x01,0x02,0x6b,0x80]
190x01,0x02,0x6b,0x80
20
21# CHECK: s_add_u32 m0, s1, s2                    ; encoding: [0x01,0x02,0x7c,0x80]
220x01,0x02,0x7c,0x80
23
24# CHECK: s_add_u32 exec_lo, s1, s2               ; encoding: [0x01,0x02,0x7e,0x80]
250x01,0x02,0x7e,0x80
26
27# CHECK: s_add_u32 exec_hi, s1, s2               ; encoding: [0x01,0x02,0x7f,0x80]
280x01,0x02,0x7f,0x80
29
30# CHECK: s_add_u32 s5, s101, s2                  ; encoding: [0x65,0x02,0x05,0x80]
310x65,0x02,0x05,0x80
32
33# CHECK: s_add_u32 s5, flat_scratch_lo, s2       ; encoding: [0x66,0x02,0x05,0x80]
340x66,0x02,0x05,0x80
35
36# CHECK: s_add_u32 s5, flat_scratch_hi, s2       ; encoding: [0x67,0x02,0x05,0x80]
370x67,0x02,0x05,0x80
38
39# CHECK: s_add_u32 s5, vcc_lo, s2                ; encoding: [0x6a,0x02,0x05,0x80]
400x6a,0x02,0x05,0x80
41
42# CHECK: s_add_u32 s5, vcc_hi, s2                ; encoding: [0x6b,0x02,0x05,0x80]
430x6b,0x02,0x05,0x80
44
45# CHECK: s_add_u32 s5, m0, s2                    ; encoding: [0x7c,0x02,0x05,0x80]
460x7c,0x02,0x05,0x80
47
48# CHECK: s_add_u32 s5, exec_lo, s2               ; encoding: [0x7e,0x02,0x05,0x80]
490x7e,0x02,0x05,0x80
50
51# CHECK: s_add_u32 s5, exec_hi, s2               ; encoding: [0x7f,0x02,0x05,0x80]
520x7f,0x02,0x05,0x80
53
54# CHECK: s_add_u32 s5, 0, s2                     ; encoding: [0x80,0x02,0x05,0x80]
550x80,0x02,0x05,0x80
56
57# CHECK: s_add_u32 s5, -1, s2                    ; encoding: [0xc1,0x02,0x05,0x80]
580xc1,0x02,0x05,0x80
59
60# CHECK: s_add_u32 s5, 0.5, s2                   ; encoding: [0xf0,0x02,0x05,0x80]
610xf0,0x02,0x05,0x80
62
63# CHECK: s_add_u32 s5, -4.0, s2                  ; encoding: [0xf7,0x02,0x05,0x80]
640xf7,0x02,0x05,0x80
65
66# CHECK: s_add_u32 s5, 0xaf123456, s2            ; encoding: [0xff,0x02,0x05,0x80,0x56,0x34,0x12,0xaf]
670xff,0x02,0x05,0x80,0x56,0x34,0x12,0xaf
68
69# CHECK: s_add_u32 s5, 0x3f717273, s2            ; encoding: [0xff,0x02,0x05,0x80,0x73,0x72,0x71,0x3f]
700xff,0x02,0x05,0x80,0x73,0x72,0x71,0x3f
71
72# CHECK: s_add_u32 s5, s1, s101                  ; encoding: [0x01,0x65,0x05,0x80]
730x01,0x65,0x05,0x80
74
75# CHECK: s_add_u32 s5, s1, flat_scratch_lo       ; encoding: [0x01,0x66,0x05,0x80]
760x01,0x66,0x05,0x80
77
78# CHECK: s_add_u32 s5, s1, flat_scratch_hi       ; encoding: [0x01,0x67,0x05,0x80]
790x01,0x67,0x05,0x80
80
81# CHECK: s_add_u32 s5, s1, vcc_lo                ; encoding: [0x01,0x6a,0x05,0x80]
820x01,0x6a,0x05,0x80
83
84# CHECK: s_add_u32 s5, s1, vcc_hi                ; encoding: [0x01,0x6b,0x05,0x80]
850x01,0x6b,0x05,0x80
86
87# CHECK: s_add_u32 s5, s1, m0                    ; encoding: [0x01,0x7c,0x05,0x80]
880x01,0x7c,0x05,0x80
89
90# CHECK: s_add_u32 s5, s1, exec_lo               ; encoding: [0x01,0x7e,0x05,0x80]
910x01,0x7e,0x05,0x80
92
93# CHECK: s_add_u32 s5, s1, exec_hi               ; encoding: [0x01,0x7f,0x05,0x80]
940x01,0x7f,0x05,0x80
95
96# CHECK: s_add_u32 s5, s1, 0                     ; encoding: [0x01,0x80,0x05,0x80]
970x01,0x80,0x05,0x80
98
99# CHECK: s_add_u32 s5, s1, -1                    ; encoding: [0x01,0xc1,0x05,0x80]
1000x01,0xc1,0x05,0x80
101
102# CHECK: s_add_u32 s5, s1, 0.5                   ; encoding: [0x01,0xf0,0x05,0x80]
1030x01,0xf0,0x05,0x80
104
105# CHECK: s_add_u32 s5, s1, -4.0                  ; encoding: [0x01,0xf7,0x05,0x80]
1060x01,0xf7,0x05,0x80
107
108# CHECK: s_add_u32 s5, s1, 0xaf123456            ; encoding: [0x01,0xff,0x05,0x80,0x56,0x34,0x12,0xaf]
1090x01,0xff,0x05,0x80,0x56,0x34,0x12,0xaf
110
111# CHECK: s_add_u32 s5, s1, 0x3f717273            ; encoding: [0x01,0xff,0x05,0x80,0x73,0x72,0x71,0x3f]
1120x01,0xff,0x05,0x80,0x73,0x72,0x71,0x3f
113
114# CHECK: s_sub_u32 s5, s1, s2                    ; encoding: [0x01,0x02,0x85,0x80]
1150x01,0x02,0x85,0x80
116
117# CHECK: s_sub_u32 s101, s1, s2                  ; encoding: [0x01,0x02,0xe5,0x80]
1180x01,0x02,0xe5,0x80
119
120# CHECK: s_sub_u32 flat_scratch_lo, s1, s2       ; encoding: [0x01,0x02,0xe6,0x80]
1210x01,0x02,0xe6,0x80
122
123# CHECK: s_sub_u32 flat_scratch_hi, s1, s2       ; encoding: [0x01,0x02,0xe7,0x80]
1240x01,0x02,0xe7,0x80
125
126# CHECK: s_sub_u32 vcc_lo, s1, s2                ; encoding: [0x01,0x02,0xea,0x80]
1270x01,0x02,0xea,0x80
128
129# CHECK: s_sub_u32 vcc_hi, s1, s2                ; encoding: [0x01,0x02,0xeb,0x80]
1300x01,0x02,0xeb,0x80
131
132# CHECK: s_sub_u32 m0, s1, s2                    ; encoding: [0x01,0x02,0xfc,0x80]
1330x01,0x02,0xfc,0x80
134
135# CHECK: s_sub_u32 exec_lo, s1, s2               ; encoding: [0x01,0x02,0xfe,0x80]
1360x01,0x02,0xfe,0x80
137
138# CHECK: s_sub_u32 exec_hi, s1, s2               ; encoding: [0x01,0x02,0xff,0x80]
1390x01,0x02,0xff,0x80
140
141# CHECK: s_sub_u32 s5, s101, s2                  ; encoding: [0x65,0x02,0x85,0x80]
1420x65,0x02,0x85,0x80
143
144# CHECK: s_sub_u32 s5, flat_scratch_lo, s2       ; encoding: [0x66,0x02,0x85,0x80]
1450x66,0x02,0x85,0x80
146
147# CHECK: s_sub_u32 s5, flat_scratch_hi, s2       ; encoding: [0x67,0x02,0x85,0x80]
1480x67,0x02,0x85,0x80
149
150# CHECK: s_sub_u32 s5, vcc_lo, s2                ; encoding: [0x6a,0x02,0x85,0x80]
1510x6a,0x02,0x85,0x80
152
153# CHECK: s_sub_u32 s5, vcc_hi, s2                ; encoding: [0x6b,0x02,0x85,0x80]
1540x6b,0x02,0x85,0x80
155
156# CHECK: s_sub_u32 s5, m0, s2                    ; encoding: [0x7c,0x02,0x85,0x80]
1570x7c,0x02,0x85,0x80
158
159# CHECK: s_sub_u32 s5, exec_lo, s2               ; encoding: [0x7e,0x02,0x85,0x80]
1600x7e,0x02,0x85,0x80
161
162# CHECK: s_sub_u32 s5, exec_hi, s2               ; encoding: [0x7f,0x02,0x85,0x80]
1630x7f,0x02,0x85,0x80
164
165# CHECK: s_sub_u32 s5, 0, s2                     ; encoding: [0x80,0x02,0x85,0x80]
1660x80,0x02,0x85,0x80
167
168# CHECK: s_sub_u32 s5, -1, s2                    ; encoding: [0xc1,0x02,0x85,0x80]
1690xc1,0x02,0x85,0x80
170
171# CHECK: s_sub_u32 s5, 0.5, s2                   ; encoding: [0xf0,0x02,0x85,0x80]
1720xf0,0x02,0x85,0x80
173
174# CHECK: s_sub_u32 s5, -4.0, s2                  ; encoding: [0xf7,0x02,0x85,0x80]
1750xf7,0x02,0x85,0x80
176
177# CHECK: s_sub_u32 s5, 0xaf123456, s2            ; encoding: [0xff,0x02,0x85,0x80,0x56,0x34,0x12,0xaf]
1780xff,0x02,0x85,0x80,0x56,0x34,0x12,0xaf
179
180# CHECK: s_sub_u32 s5, 0x3f717273, s2            ; encoding: [0xff,0x02,0x85,0x80,0x73,0x72,0x71,0x3f]
1810xff,0x02,0x85,0x80,0x73,0x72,0x71,0x3f
182
183# CHECK: s_sub_u32 s5, s1, s101                  ; encoding: [0x01,0x65,0x85,0x80]
1840x01,0x65,0x85,0x80
185
186# CHECK: s_sub_u32 s5, s1, flat_scratch_lo       ; encoding: [0x01,0x66,0x85,0x80]
1870x01,0x66,0x85,0x80
188
189# CHECK: s_sub_u32 s5, s1, flat_scratch_hi       ; encoding: [0x01,0x67,0x85,0x80]
1900x01,0x67,0x85,0x80
191
192# CHECK: s_sub_u32 s5, s1, vcc_lo                ; encoding: [0x01,0x6a,0x85,0x80]
1930x01,0x6a,0x85,0x80
194
195# CHECK: s_sub_u32 s5, s1, vcc_hi                ; encoding: [0x01,0x6b,0x85,0x80]
1960x01,0x6b,0x85,0x80
197
198# CHECK: s_sub_u32 s5, s1, m0                    ; encoding: [0x01,0x7c,0x85,0x80]
1990x01,0x7c,0x85,0x80
200
201# CHECK: s_sub_u32 s5, s1, exec_lo               ; encoding: [0x01,0x7e,0x85,0x80]
2020x01,0x7e,0x85,0x80
203
204# CHECK: s_sub_u32 s5, s1, exec_hi               ; encoding: [0x01,0x7f,0x85,0x80]
2050x01,0x7f,0x85,0x80
206
207# CHECK: s_sub_u32 s5, s1, 0                     ; encoding: [0x01,0x80,0x85,0x80]
2080x01,0x80,0x85,0x80
209
210# CHECK: s_sub_u32 s5, s1, -1                    ; encoding: [0x01,0xc1,0x85,0x80]
2110x01,0xc1,0x85,0x80
212
213# CHECK: s_sub_u32 s5, s1, 0.5                   ; encoding: [0x01,0xf0,0x85,0x80]
2140x01,0xf0,0x85,0x80
215
216# CHECK: s_sub_u32 s5, s1, -4.0                  ; encoding: [0x01,0xf7,0x85,0x80]
2170x01,0xf7,0x85,0x80
218
219# CHECK: s_sub_u32 s5, s1, 0xaf123456            ; encoding: [0x01,0xff,0x85,0x80,0x56,0x34,0x12,0xaf]
2200x01,0xff,0x85,0x80,0x56,0x34,0x12,0xaf
221
222# CHECK: s_sub_u32 s5, s1, 0x3f717273            ; encoding: [0x01,0xff,0x85,0x80,0x73,0x72,0x71,0x3f]
2230x01,0xff,0x85,0x80,0x73,0x72,0x71,0x3f
224
225# CHECK: s_add_i32 s5, s1, s2                    ; encoding: [0x01,0x02,0x05,0x81]
2260x01,0x02,0x05,0x81
227
228# CHECK: s_add_i32 s101, s1, s2                  ; encoding: [0x01,0x02,0x65,0x81]
2290x01,0x02,0x65,0x81
230
231# CHECK: s_add_i32 flat_scratch_lo, s1, s2       ; encoding: [0x01,0x02,0x66,0x81]
2320x01,0x02,0x66,0x81
233
234# CHECK: s_add_i32 flat_scratch_hi, s1, s2       ; encoding: [0x01,0x02,0x67,0x81]
2350x01,0x02,0x67,0x81
236
237# CHECK: s_add_i32 vcc_lo, s1, s2                ; encoding: [0x01,0x02,0x6a,0x81]
2380x01,0x02,0x6a,0x81
239
240# CHECK: s_add_i32 vcc_hi, s1, s2                ; encoding: [0x01,0x02,0x6b,0x81]
2410x01,0x02,0x6b,0x81
242
243# CHECK: s_add_i32 m0, s1, s2                    ; encoding: [0x01,0x02,0x7c,0x81]
2440x01,0x02,0x7c,0x81
245
246# CHECK: s_add_i32 exec_lo, s1, s2               ; encoding: [0x01,0x02,0x7e,0x81]
2470x01,0x02,0x7e,0x81
248
249# CHECK: s_add_i32 exec_hi, s1, s2               ; encoding: [0x01,0x02,0x7f,0x81]
2500x01,0x02,0x7f,0x81
251
252# CHECK: s_add_i32 s5, s101, s2                  ; encoding: [0x65,0x02,0x05,0x81]
2530x65,0x02,0x05,0x81
254
255# CHECK: s_add_i32 s5, flat_scratch_lo, s2       ; encoding: [0x66,0x02,0x05,0x81]
2560x66,0x02,0x05,0x81
257
258# CHECK: s_add_i32 s5, flat_scratch_hi, s2       ; encoding: [0x67,0x02,0x05,0x81]
2590x67,0x02,0x05,0x81
260
261# CHECK: s_add_i32 s5, vcc_lo, s2                ; encoding: [0x6a,0x02,0x05,0x81]
2620x6a,0x02,0x05,0x81
263
264# CHECK: s_add_i32 s5, vcc_hi, s2                ; encoding: [0x6b,0x02,0x05,0x81]
2650x6b,0x02,0x05,0x81
266
267# CHECK: s_add_i32 s5, m0, s2                    ; encoding: [0x7c,0x02,0x05,0x81]
2680x7c,0x02,0x05,0x81
269
270# CHECK: s_add_i32 s5, exec_lo, s2               ; encoding: [0x7e,0x02,0x05,0x81]
2710x7e,0x02,0x05,0x81
272
273# CHECK: s_add_i32 s5, exec_hi, s2               ; encoding: [0x7f,0x02,0x05,0x81]
2740x7f,0x02,0x05,0x81
275
276# CHECK: s_add_i32 s5, 0, s2                     ; encoding: [0x80,0x02,0x05,0x81]
2770x80,0x02,0x05,0x81
278
279# CHECK: s_add_i32 s5, -1, s2                    ; encoding: [0xc1,0x02,0x05,0x81]
2800xc1,0x02,0x05,0x81
281
282# CHECK: s_add_i32 s5, 0.5, s2                   ; encoding: [0xf0,0x02,0x05,0x81]
2830xf0,0x02,0x05,0x81
284
285# CHECK: s_add_i32 s5, -4.0, s2                  ; encoding: [0xf7,0x02,0x05,0x81]
2860xf7,0x02,0x05,0x81
287
288# CHECK: s_add_i32 s5, 0xaf123456, s2            ; encoding: [0xff,0x02,0x05,0x81,0x56,0x34,0x12,0xaf]
2890xff,0x02,0x05,0x81,0x56,0x34,0x12,0xaf
290
291# CHECK: s_add_i32 s5, 0x3f717273, s2            ; encoding: [0xff,0x02,0x05,0x81,0x73,0x72,0x71,0x3f]
2920xff,0x02,0x05,0x81,0x73,0x72,0x71,0x3f
293
294# CHECK: s_add_i32 s5, s1, s101                  ; encoding: [0x01,0x65,0x05,0x81]
2950x01,0x65,0x05,0x81
296
297# CHECK: s_add_i32 s5, s1, flat_scratch_lo       ; encoding: [0x01,0x66,0x05,0x81]
2980x01,0x66,0x05,0x81
299
300# CHECK: s_add_i32 s5, s1, flat_scratch_hi       ; encoding: [0x01,0x67,0x05,0x81]
3010x01,0x67,0x05,0x81
302
303# CHECK: s_add_i32 s5, s1, vcc_lo                ; encoding: [0x01,0x6a,0x05,0x81]
3040x01,0x6a,0x05,0x81
305
306# CHECK: s_add_i32 s5, s1, vcc_hi                ; encoding: [0x01,0x6b,0x05,0x81]
3070x01,0x6b,0x05,0x81
308
309# CHECK: s_add_i32 s5, s1, m0                    ; encoding: [0x01,0x7c,0x05,0x81]
3100x01,0x7c,0x05,0x81
311
312# CHECK: s_add_i32 s5, s1, exec_lo               ; encoding: [0x01,0x7e,0x05,0x81]
3130x01,0x7e,0x05,0x81
314
315# CHECK: s_add_i32 s5, s1, exec_hi               ; encoding: [0x01,0x7f,0x05,0x81]
3160x01,0x7f,0x05,0x81
317
318# CHECK: s_add_i32 s5, s1, 0                     ; encoding: [0x01,0x80,0x05,0x81]
3190x01,0x80,0x05,0x81
320
321# CHECK: s_add_i32 s5, s1, -1                    ; encoding: [0x01,0xc1,0x05,0x81]
3220x01,0xc1,0x05,0x81
323
324# CHECK: s_add_i32 s5, s1, 0.5                   ; encoding: [0x01,0xf0,0x05,0x81]
3250x01,0xf0,0x05,0x81
326
327# CHECK: s_add_i32 s5, s1, -4.0                  ; encoding: [0x01,0xf7,0x05,0x81]
3280x01,0xf7,0x05,0x81
329
330# CHECK: s_add_i32 s5, s1, 0xaf123456            ; encoding: [0x01,0xff,0x05,0x81,0x56,0x34,0x12,0xaf]
3310x01,0xff,0x05,0x81,0x56,0x34,0x12,0xaf
332
333# CHECK: s_add_i32 s5, s1, 0x3f717273            ; encoding: [0x01,0xff,0x05,0x81,0x73,0x72,0x71,0x3f]
3340x01,0xff,0x05,0x81,0x73,0x72,0x71,0x3f
335
336# CHECK: s_sub_i32 s5, s1, s2                    ; encoding: [0x01,0x02,0x85,0x81]
3370x01,0x02,0x85,0x81
338
339# CHECK: s_sub_i32 s101, s1, s2                  ; encoding: [0x01,0x02,0xe5,0x81]
3400x01,0x02,0xe5,0x81
341
342# CHECK: s_sub_i32 flat_scratch_lo, s1, s2       ; encoding: [0x01,0x02,0xe6,0x81]
3430x01,0x02,0xe6,0x81
344
345# CHECK: s_sub_i32 flat_scratch_hi, s1, s2       ; encoding: [0x01,0x02,0xe7,0x81]
3460x01,0x02,0xe7,0x81
347
348# CHECK: s_sub_i32 vcc_lo, s1, s2                ; encoding: [0x01,0x02,0xea,0x81]
3490x01,0x02,0xea,0x81
350
351# CHECK: s_sub_i32 vcc_hi, s1, s2                ; encoding: [0x01,0x02,0xeb,0x81]
3520x01,0x02,0xeb,0x81
353
354# CHECK: s_sub_i32 m0, s1, s2                    ; encoding: [0x01,0x02,0xfc,0x81]
3550x01,0x02,0xfc,0x81
356
357# CHECK: s_sub_i32 exec_lo, s1, s2               ; encoding: [0x01,0x02,0xfe,0x81]
3580x01,0x02,0xfe,0x81
359
360# CHECK: s_sub_i32 exec_hi, s1, s2               ; encoding: [0x01,0x02,0xff,0x81]
3610x01,0x02,0xff,0x81
362
363# CHECK: s_sub_i32 s5, s101, s2                  ; encoding: [0x65,0x02,0x85,0x81]
3640x65,0x02,0x85,0x81
365
366# CHECK: s_sub_i32 s5, flat_scratch_lo, s2       ; encoding: [0x66,0x02,0x85,0x81]
3670x66,0x02,0x85,0x81
368
369# CHECK: s_sub_i32 s5, flat_scratch_hi, s2       ; encoding: [0x67,0x02,0x85,0x81]
3700x67,0x02,0x85,0x81
371
372# CHECK: s_sub_i32 s5, vcc_lo, s2                ; encoding: [0x6a,0x02,0x85,0x81]
3730x6a,0x02,0x85,0x81
374
375# CHECK: s_sub_i32 s5, vcc_hi, s2                ; encoding: [0x6b,0x02,0x85,0x81]
3760x6b,0x02,0x85,0x81
377
378# CHECK: s_sub_i32 s5, m0, s2                    ; encoding: [0x7c,0x02,0x85,0x81]
3790x7c,0x02,0x85,0x81
380
381# CHECK: s_sub_i32 s5, exec_lo, s2               ; encoding: [0x7e,0x02,0x85,0x81]
3820x7e,0x02,0x85,0x81
383
384# CHECK: s_sub_i32 s5, exec_hi, s2               ; encoding: [0x7f,0x02,0x85,0x81]
3850x7f,0x02,0x85,0x81
386
387# CHECK: s_sub_i32 s5, 0, s2                     ; encoding: [0x80,0x02,0x85,0x81]
3880x80,0x02,0x85,0x81
389
390# CHECK: s_sub_i32 s5, -1, s2                    ; encoding: [0xc1,0x02,0x85,0x81]
3910xc1,0x02,0x85,0x81
392
393# CHECK: s_sub_i32 s5, 0.5, s2                   ; encoding: [0xf0,0x02,0x85,0x81]
3940xf0,0x02,0x85,0x81
395
396# CHECK: s_sub_i32 s5, -4.0, s2                  ; encoding: [0xf7,0x02,0x85,0x81]
3970xf7,0x02,0x85,0x81
398
399# CHECK: s_sub_i32 s5, 0xaf123456, s2            ; encoding: [0xff,0x02,0x85,0x81,0x56,0x34,0x12,0xaf]
4000xff,0x02,0x85,0x81,0x56,0x34,0x12,0xaf
401
402# CHECK: s_sub_i32 s5, 0x3f717273, s2            ; encoding: [0xff,0x02,0x85,0x81,0x73,0x72,0x71,0x3f]
4030xff,0x02,0x85,0x81,0x73,0x72,0x71,0x3f
404
405# CHECK: s_sub_i32 s5, s1, s101                  ; encoding: [0x01,0x65,0x85,0x81]
4060x01,0x65,0x85,0x81
407
408# CHECK: s_sub_i32 s5, s1, flat_scratch_lo       ; encoding: [0x01,0x66,0x85,0x81]
4090x01,0x66,0x85,0x81
410
411# CHECK: s_sub_i32 s5, s1, flat_scratch_hi       ; encoding: [0x01,0x67,0x85,0x81]
4120x01,0x67,0x85,0x81
413
414# CHECK: s_sub_i32 s5, s1, vcc_lo                ; encoding: [0x01,0x6a,0x85,0x81]
4150x01,0x6a,0x85,0x81
416
417# CHECK: s_sub_i32 s5, s1, vcc_hi                ; encoding: [0x01,0x6b,0x85,0x81]
4180x01,0x6b,0x85,0x81
419
420# CHECK: s_sub_i32 s5, s1, m0                    ; encoding: [0x01,0x7c,0x85,0x81]
4210x01,0x7c,0x85,0x81
422
423# CHECK: s_sub_i32 s5, s1, exec_lo               ; encoding: [0x01,0x7e,0x85,0x81]
4240x01,0x7e,0x85,0x81
425
426# CHECK: s_sub_i32 s5, s1, exec_hi               ; encoding: [0x01,0x7f,0x85,0x81]
4270x01,0x7f,0x85,0x81
428
429# CHECK: s_sub_i32 s5, s1, 0                     ; encoding: [0x01,0x80,0x85,0x81]
4300x01,0x80,0x85,0x81
431
432# CHECK: s_sub_i32 s5, s1, -1                    ; encoding: [0x01,0xc1,0x85,0x81]
4330x01,0xc1,0x85,0x81
434
435# CHECK: s_sub_i32 s5, s1, 0.5                   ; encoding: [0x01,0xf0,0x85,0x81]
4360x01,0xf0,0x85,0x81
437
438# CHECK: s_sub_i32 s5, s1, -4.0                  ; encoding: [0x01,0xf7,0x85,0x81]
4390x01,0xf7,0x85,0x81
440
441# CHECK: s_sub_i32 s5, s1, 0xaf123456            ; encoding: [0x01,0xff,0x85,0x81,0x56,0x34,0x12,0xaf]
4420x01,0xff,0x85,0x81,0x56,0x34,0x12,0xaf
443
444# CHECK: s_sub_i32 s5, s1, 0x3f717273            ; encoding: [0x01,0xff,0x85,0x81,0x73,0x72,0x71,0x3f]
4450x01,0xff,0x85,0x81,0x73,0x72,0x71,0x3f
446
447# CHECK: s_addc_u32 s5, s1, s2                   ; encoding: [0x01,0x02,0x05,0x82]
4480x01,0x02,0x05,0x82
449
450# CHECK: s_addc_u32 s101, s1, s2                 ; encoding: [0x01,0x02,0x65,0x82]
4510x01,0x02,0x65,0x82
452
453# CHECK: s_addc_u32 flat_scratch_lo, s1, s2      ; encoding: [0x01,0x02,0x66,0x82]
4540x01,0x02,0x66,0x82
455
456# CHECK: s_addc_u32 flat_scratch_hi, s1, s2      ; encoding: [0x01,0x02,0x67,0x82]
4570x01,0x02,0x67,0x82
458
459# CHECK: s_addc_u32 vcc_lo, s1, s2               ; encoding: [0x01,0x02,0x6a,0x82]
4600x01,0x02,0x6a,0x82
461
462# CHECK: s_addc_u32 vcc_hi, s1, s2               ; encoding: [0x01,0x02,0x6b,0x82]
4630x01,0x02,0x6b,0x82
464
465# CHECK: s_addc_u32 m0, s1, s2                   ; encoding: [0x01,0x02,0x7c,0x82]
4660x01,0x02,0x7c,0x82
467
468# CHECK: s_addc_u32 exec_lo, s1, s2              ; encoding: [0x01,0x02,0x7e,0x82]
4690x01,0x02,0x7e,0x82
470
471# CHECK: s_addc_u32 exec_hi, s1, s2              ; encoding: [0x01,0x02,0x7f,0x82]
4720x01,0x02,0x7f,0x82
473
474# CHECK: s_addc_u32 s5, s101, s2                 ; encoding: [0x65,0x02,0x05,0x82]
4750x65,0x02,0x05,0x82
476
477# CHECK: s_addc_u32 s5, flat_scratch_lo, s2      ; encoding: [0x66,0x02,0x05,0x82]
4780x66,0x02,0x05,0x82
479
480# CHECK: s_addc_u32 s5, flat_scratch_hi, s2      ; encoding: [0x67,0x02,0x05,0x82]
4810x67,0x02,0x05,0x82
482
483# CHECK: s_addc_u32 s5, vcc_lo, s2               ; encoding: [0x6a,0x02,0x05,0x82]
4840x6a,0x02,0x05,0x82
485
486# CHECK: s_addc_u32 s5, vcc_hi, s2               ; encoding: [0x6b,0x02,0x05,0x82]
4870x6b,0x02,0x05,0x82
488
489# CHECK: s_addc_u32 s5, m0, s2                   ; encoding: [0x7c,0x02,0x05,0x82]
4900x7c,0x02,0x05,0x82
491
492# CHECK: s_addc_u32 s5, exec_lo, s2              ; encoding: [0x7e,0x02,0x05,0x82]
4930x7e,0x02,0x05,0x82
494
495# CHECK: s_addc_u32 s5, exec_hi, s2              ; encoding: [0x7f,0x02,0x05,0x82]
4960x7f,0x02,0x05,0x82
497
498# CHECK: s_addc_u32 s5, 0, s2                    ; encoding: [0x80,0x02,0x05,0x82]
4990x80,0x02,0x05,0x82
500
501# CHECK: s_addc_u32 s5, -1, s2                   ; encoding: [0xc1,0x02,0x05,0x82]
5020xc1,0x02,0x05,0x82
503
504# CHECK: s_addc_u32 s5, 0.5, s2                  ; encoding: [0xf0,0x02,0x05,0x82]
5050xf0,0x02,0x05,0x82
506
507# CHECK: s_addc_u32 s5, -4.0, s2                 ; encoding: [0xf7,0x02,0x05,0x82]
5080xf7,0x02,0x05,0x82
509
510# CHECK: s_addc_u32 s5, 0xaf123456, s2           ; encoding: [0xff,0x02,0x05,0x82,0x56,0x34,0x12,0xaf]
5110xff,0x02,0x05,0x82,0x56,0x34,0x12,0xaf
512
513# CHECK: s_addc_u32 s5, 0x3f717273, s2           ; encoding: [0xff,0x02,0x05,0x82,0x73,0x72,0x71,0x3f]
5140xff,0x02,0x05,0x82,0x73,0x72,0x71,0x3f
515
516# CHECK: s_addc_u32 s5, s1, s101                 ; encoding: [0x01,0x65,0x05,0x82]
5170x01,0x65,0x05,0x82
518
519# CHECK: s_addc_u32 s5, s1, flat_scratch_lo      ; encoding: [0x01,0x66,0x05,0x82]
5200x01,0x66,0x05,0x82
521
522# CHECK: s_addc_u32 s5, s1, flat_scratch_hi      ; encoding: [0x01,0x67,0x05,0x82]
5230x01,0x67,0x05,0x82
524
525# CHECK: s_addc_u32 s5, s1, vcc_lo               ; encoding: [0x01,0x6a,0x05,0x82]
5260x01,0x6a,0x05,0x82
527
528# CHECK: s_addc_u32 s5, s1, vcc_hi               ; encoding: [0x01,0x6b,0x05,0x82]
5290x01,0x6b,0x05,0x82
530
531# CHECK: s_addc_u32 s5, s1, m0                   ; encoding: [0x01,0x7c,0x05,0x82]
5320x01,0x7c,0x05,0x82
533
534# CHECK: s_addc_u32 s5, s1, exec_lo              ; encoding: [0x01,0x7e,0x05,0x82]
5350x01,0x7e,0x05,0x82
536
537# CHECK: s_addc_u32 s5, s1, exec_hi              ; encoding: [0x01,0x7f,0x05,0x82]
5380x01,0x7f,0x05,0x82
539
540# CHECK: s_addc_u32 s5, s1, 0                    ; encoding: [0x01,0x80,0x05,0x82]
5410x01,0x80,0x05,0x82
542
543# CHECK: s_addc_u32 s5, s1, -1                   ; encoding: [0x01,0xc1,0x05,0x82]
5440x01,0xc1,0x05,0x82
545
546# CHECK: s_addc_u32 s5, s1, 0.5                  ; encoding: [0x01,0xf0,0x05,0x82]
5470x01,0xf0,0x05,0x82
548
549# CHECK: s_addc_u32 s5, s1, -4.0                 ; encoding: [0x01,0xf7,0x05,0x82]
5500x01,0xf7,0x05,0x82
551
552# CHECK: s_addc_u32 s5, s1, 0xaf123456           ; encoding: [0x01,0xff,0x05,0x82,0x56,0x34,0x12,0xaf]
5530x01,0xff,0x05,0x82,0x56,0x34,0x12,0xaf
554
555# CHECK: s_addc_u32 s5, s1, 0x3f717273           ; encoding: [0x01,0xff,0x05,0x82,0x73,0x72,0x71,0x3f]
5560x01,0xff,0x05,0x82,0x73,0x72,0x71,0x3f
557
558# CHECK: s_subb_u32 s5, s1, s2                   ; encoding: [0x01,0x02,0x85,0x82]
5590x01,0x02,0x85,0x82
560
561# CHECK: s_subb_u32 s101, s1, s2                 ; encoding: [0x01,0x02,0xe5,0x82]
5620x01,0x02,0xe5,0x82
563
564# CHECK: s_subb_u32 flat_scratch_lo, s1, s2      ; encoding: [0x01,0x02,0xe6,0x82]
5650x01,0x02,0xe6,0x82
566
567# CHECK: s_subb_u32 flat_scratch_hi, s1, s2      ; encoding: [0x01,0x02,0xe7,0x82]
5680x01,0x02,0xe7,0x82
569
570# CHECK: s_subb_u32 vcc_lo, s1, s2               ; encoding: [0x01,0x02,0xea,0x82]
5710x01,0x02,0xea,0x82
572
573# CHECK: s_subb_u32 vcc_hi, s1, s2               ; encoding: [0x01,0x02,0xeb,0x82]
5740x01,0x02,0xeb,0x82
575
576# CHECK: s_subb_u32 m0, s1, s2                   ; encoding: [0x01,0x02,0xfc,0x82]
5770x01,0x02,0xfc,0x82
578
579# CHECK: s_subb_u32 exec_lo, s1, s2              ; encoding: [0x01,0x02,0xfe,0x82]
5800x01,0x02,0xfe,0x82
581
582# CHECK: s_subb_u32 exec_hi, s1, s2              ; encoding: [0x01,0x02,0xff,0x82]
5830x01,0x02,0xff,0x82
584
585# CHECK: s_subb_u32 s5, s101, s2                 ; encoding: [0x65,0x02,0x85,0x82]
5860x65,0x02,0x85,0x82
587
588# CHECK: s_subb_u32 s5, flat_scratch_lo, s2      ; encoding: [0x66,0x02,0x85,0x82]
5890x66,0x02,0x85,0x82
590
591# CHECK: s_subb_u32 s5, flat_scratch_hi, s2      ; encoding: [0x67,0x02,0x85,0x82]
5920x67,0x02,0x85,0x82
593
594# CHECK: s_subb_u32 s5, vcc_lo, s2               ; encoding: [0x6a,0x02,0x85,0x82]
5950x6a,0x02,0x85,0x82
596
597# CHECK: s_subb_u32 s5, vcc_hi, s2               ; encoding: [0x6b,0x02,0x85,0x82]
5980x6b,0x02,0x85,0x82
599
600# CHECK: s_subb_u32 s5, m0, s2                   ; encoding: [0x7c,0x02,0x85,0x82]
6010x7c,0x02,0x85,0x82
602
603# CHECK: s_subb_u32 s5, exec_lo, s2              ; encoding: [0x7e,0x02,0x85,0x82]
6040x7e,0x02,0x85,0x82
605
606# CHECK: s_subb_u32 s5, exec_hi, s2              ; encoding: [0x7f,0x02,0x85,0x82]
6070x7f,0x02,0x85,0x82
608
609# CHECK: s_subb_u32 s5, 0, s2                    ; encoding: [0x80,0x02,0x85,0x82]
6100x80,0x02,0x85,0x82
611
612# CHECK: s_subb_u32 s5, -1, s2                   ; encoding: [0xc1,0x02,0x85,0x82]
6130xc1,0x02,0x85,0x82
614
615# CHECK: s_subb_u32 s5, 0.5, s2                  ; encoding: [0xf0,0x02,0x85,0x82]
6160xf0,0x02,0x85,0x82
617
618# CHECK: s_subb_u32 s5, -4.0, s2                 ; encoding: [0xf7,0x02,0x85,0x82]
6190xf7,0x02,0x85,0x82
620
621# CHECK: s_subb_u32 s5, 0xaf123456, s2           ; encoding: [0xff,0x02,0x85,0x82,0x56,0x34,0x12,0xaf]
6220xff,0x02,0x85,0x82,0x56,0x34,0x12,0xaf
623
624# CHECK: s_subb_u32 s5, 0x3f717273, s2           ; encoding: [0xff,0x02,0x85,0x82,0x73,0x72,0x71,0x3f]
6250xff,0x02,0x85,0x82,0x73,0x72,0x71,0x3f
626
627# CHECK: s_subb_u32 s5, s1, s101                 ; encoding: [0x01,0x65,0x85,0x82]
6280x01,0x65,0x85,0x82
629
630# CHECK: s_subb_u32 s5, s1, flat_scratch_lo      ; encoding: [0x01,0x66,0x85,0x82]
6310x01,0x66,0x85,0x82
632
633# CHECK: s_subb_u32 s5, s1, flat_scratch_hi      ; encoding: [0x01,0x67,0x85,0x82]
6340x01,0x67,0x85,0x82
635
636# CHECK: s_subb_u32 s5, s1, vcc_lo               ; encoding: [0x01,0x6a,0x85,0x82]
6370x01,0x6a,0x85,0x82
638
639# CHECK: s_subb_u32 s5, s1, vcc_hi               ; encoding: [0x01,0x6b,0x85,0x82]
6400x01,0x6b,0x85,0x82
641
642# CHECK: s_subb_u32 s5, s1, m0                   ; encoding: [0x01,0x7c,0x85,0x82]
6430x01,0x7c,0x85,0x82
644
645# CHECK: s_subb_u32 s5, s1, exec_lo              ; encoding: [0x01,0x7e,0x85,0x82]
6460x01,0x7e,0x85,0x82
647
648# CHECK: s_subb_u32 s5, s1, exec_hi              ; encoding: [0x01,0x7f,0x85,0x82]
6490x01,0x7f,0x85,0x82
650
651# CHECK: s_subb_u32 s5, s1, 0                    ; encoding: [0x01,0x80,0x85,0x82]
6520x01,0x80,0x85,0x82
653
654# CHECK: s_subb_u32 s5, s1, -1                   ; encoding: [0x01,0xc1,0x85,0x82]
6550x01,0xc1,0x85,0x82
656
657# CHECK: s_subb_u32 s5, s1, 0.5                  ; encoding: [0x01,0xf0,0x85,0x82]
6580x01,0xf0,0x85,0x82
659
660# CHECK: s_subb_u32 s5, s1, -4.0                 ; encoding: [0x01,0xf7,0x85,0x82]
6610x01,0xf7,0x85,0x82
662
663# CHECK: s_subb_u32 s5, s1, 0xaf123456           ; encoding: [0x01,0xff,0x85,0x82,0x56,0x34,0x12,0xaf]
6640x01,0xff,0x85,0x82,0x56,0x34,0x12,0xaf
665
666# CHECK: s_subb_u32 s5, s1, 0x3f717273           ; encoding: [0x01,0xff,0x85,0x82,0x73,0x72,0x71,0x3f]
6670x01,0xff,0x85,0x82,0x73,0x72,0x71,0x3f
668
669# CHECK: s_min_i32 s5, s1, s2                    ; encoding: [0x01,0x02,0x05,0x83]
6700x01,0x02,0x05,0x83
671
672# CHECK: s_min_i32 s101, s1, s2                  ; encoding: [0x01,0x02,0x65,0x83]
6730x01,0x02,0x65,0x83
674
675# CHECK: s_min_i32 flat_scratch_lo, s1, s2       ; encoding: [0x01,0x02,0x66,0x83]
6760x01,0x02,0x66,0x83
677
678# CHECK: s_min_i32 flat_scratch_hi, s1, s2       ; encoding: [0x01,0x02,0x67,0x83]
6790x01,0x02,0x67,0x83
680
681# CHECK: s_min_i32 vcc_lo, s1, s2                ; encoding: [0x01,0x02,0x6a,0x83]
6820x01,0x02,0x6a,0x83
683
684# CHECK: s_min_i32 vcc_hi, s1, s2                ; encoding: [0x01,0x02,0x6b,0x83]
6850x01,0x02,0x6b,0x83
686
687# CHECK: s_min_i32 m0, s1, s2                    ; encoding: [0x01,0x02,0x7c,0x83]
6880x01,0x02,0x7c,0x83
689
690# CHECK: s_min_i32 exec_lo, s1, s2               ; encoding: [0x01,0x02,0x7e,0x83]
6910x01,0x02,0x7e,0x83
692
693# CHECK: s_min_i32 exec_hi, s1, s2               ; encoding: [0x01,0x02,0x7f,0x83]
6940x01,0x02,0x7f,0x83
695
696# CHECK: s_min_i32 s5, s101, s2                  ; encoding: [0x65,0x02,0x05,0x83]
6970x65,0x02,0x05,0x83
698
699# CHECK: s_min_i32 s5, flat_scratch_lo, s2       ; encoding: [0x66,0x02,0x05,0x83]
7000x66,0x02,0x05,0x83
701
702# CHECK: s_min_i32 s5, flat_scratch_hi, s2       ; encoding: [0x67,0x02,0x05,0x83]
7030x67,0x02,0x05,0x83
704
705# CHECK: s_min_i32 s5, vcc_lo, s2                ; encoding: [0x6a,0x02,0x05,0x83]
7060x6a,0x02,0x05,0x83
707
708# CHECK: s_min_i32 s5, vcc_hi, s2                ; encoding: [0x6b,0x02,0x05,0x83]
7090x6b,0x02,0x05,0x83
710
711# CHECK: s_min_i32 s5, m0, s2                    ; encoding: [0x7c,0x02,0x05,0x83]
7120x7c,0x02,0x05,0x83
713
714# CHECK: s_min_i32 s5, exec_lo, s2               ; encoding: [0x7e,0x02,0x05,0x83]
7150x7e,0x02,0x05,0x83
716
717# CHECK: s_min_i32 s5, exec_hi, s2               ; encoding: [0x7f,0x02,0x05,0x83]
7180x7f,0x02,0x05,0x83
719
720# CHECK: s_min_i32 s5, 0, s2                     ; encoding: [0x80,0x02,0x05,0x83]
7210x80,0x02,0x05,0x83
722
723# CHECK: s_min_i32 s5, -1, s2                    ; encoding: [0xc1,0x02,0x05,0x83]
7240xc1,0x02,0x05,0x83
725
726# CHECK: s_min_i32 s5, 0.5, s2                   ; encoding: [0xf0,0x02,0x05,0x83]
7270xf0,0x02,0x05,0x83
728
729# CHECK: s_min_i32 s5, -4.0, s2                  ; encoding: [0xf7,0x02,0x05,0x83]
7300xf7,0x02,0x05,0x83
731
732# CHECK: s_min_i32 s5, 0xaf123456, s2            ; encoding: [0xff,0x02,0x05,0x83,0x56,0x34,0x12,0xaf]
7330xff,0x02,0x05,0x83,0x56,0x34,0x12,0xaf
734
735# CHECK: s_min_i32 s5, 0x3f717273, s2            ; encoding: [0xff,0x02,0x05,0x83,0x73,0x72,0x71,0x3f]
7360xff,0x02,0x05,0x83,0x73,0x72,0x71,0x3f
737
738# CHECK: s_min_i32 s5, s1, s101                  ; encoding: [0x01,0x65,0x05,0x83]
7390x01,0x65,0x05,0x83
740
741# CHECK: s_min_i32 s5, s1, flat_scratch_lo       ; encoding: [0x01,0x66,0x05,0x83]
7420x01,0x66,0x05,0x83
743
744# CHECK: s_min_i32 s5, s1, flat_scratch_hi       ; encoding: [0x01,0x67,0x05,0x83]
7450x01,0x67,0x05,0x83
746
747# CHECK: s_min_i32 s5, s1, vcc_lo                ; encoding: [0x01,0x6a,0x05,0x83]
7480x01,0x6a,0x05,0x83
749
750# CHECK: s_min_i32 s5, s1, vcc_hi                ; encoding: [0x01,0x6b,0x05,0x83]
7510x01,0x6b,0x05,0x83
752
753# CHECK: s_min_i32 s5, s1, m0                    ; encoding: [0x01,0x7c,0x05,0x83]
7540x01,0x7c,0x05,0x83
755
756# CHECK: s_min_i32 s5, s1, exec_lo               ; encoding: [0x01,0x7e,0x05,0x83]
7570x01,0x7e,0x05,0x83
758
759# CHECK: s_min_i32 s5, s1, exec_hi               ; encoding: [0x01,0x7f,0x05,0x83]
7600x01,0x7f,0x05,0x83
761
762# CHECK: s_min_i32 s5, s1, 0                     ; encoding: [0x01,0x80,0x05,0x83]
7630x01,0x80,0x05,0x83
764
765# CHECK: s_min_i32 s5, s1, -1                    ; encoding: [0x01,0xc1,0x05,0x83]
7660x01,0xc1,0x05,0x83
767
768# CHECK: s_min_i32 s5, s1, 0.5                   ; encoding: [0x01,0xf0,0x05,0x83]
7690x01,0xf0,0x05,0x83
770
771# CHECK: s_min_i32 s5, s1, -4.0                  ; encoding: [0x01,0xf7,0x05,0x83]
7720x01,0xf7,0x05,0x83
773
774# CHECK: s_min_i32 s5, s1, 0xaf123456            ; encoding: [0x01,0xff,0x05,0x83,0x56,0x34,0x12,0xaf]
7750x01,0xff,0x05,0x83,0x56,0x34,0x12,0xaf
776
777# CHECK: s_min_i32 s5, s1, 0x3f717273            ; encoding: [0x01,0xff,0x05,0x83,0x73,0x72,0x71,0x3f]
7780x01,0xff,0x05,0x83,0x73,0x72,0x71,0x3f
779
780# CHECK: s_min_u32 s5, s1, s2                    ; encoding: [0x01,0x02,0x85,0x83]
7810x01,0x02,0x85,0x83
782
783# CHECK: s_min_u32 s101, s1, s2                  ; encoding: [0x01,0x02,0xe5,0x83]
7840x01,0x02,0xe5,0x83
785
786# CHECK: s_min_u32 flat_scratch_lo, s1, s2       ; encoding: [0x01,0x02,0xe6,0x83]
7870x01,0x02,0xe6,0x83
788
789# CHECK: s_min_u32 flat_scratch_hi, s1, s2       ; encoding: [0x01,0x02,0xe7,0x83]
7900x01,0x02,0xe7,0x83
791
792# CHECK: s_min_u32 vcc_lo, s1, s2                ; encoding: [0x01,0x02,0xea,0x83]
7930x01,0x02,0xea,0x83
794
795# CHECK: s_min_u32 vcc_hi, s1, s2                ; encoding: [0x01,0x02,0xeb,0x83]
7960x01,0x02,0xeb,0x83
797
798# CHECK: s_min_u32 m0, s1, s2                    ; encoding: [0x01,0x02,0xfc,0x83]
7990x01,0x02,0xfc,0x83
800
801# CHECK: s_min_u32 exec_lo, s1, s2               ; encoding: [0x01,0x02,0xfe,0x83]
8020x01,0x02,0xfe,0x83
803
804# CHECK: s_min_u32 exec_hi, s1, s2               ; encoding: [0x01,0x02,0xff,0x83]
8050x01,0x02,0xff,0x83
806
807# CHECK: s_min_u32 s5, s101, s2                  ; encoding: [0x65,0x02,0x85,0x83]
8080x65,0x02,0x85,0x83
809
810# CHECK: s_min_u32 s5, flat_scratch_lo, s2       ; encoding: [0x66,0x02,0x85,0x83]
8110x66,0x02,0x85,0x83
812
813# CHECK: s_min_u32 s5, flat_scratch_hi, s2       ; encoding: [0x67,0x02,0x85,0x83]
8140x67,0x02,0x85,0x83
815
816# CHECK: s_min_u32 s5, vcc_lo, s2                ; encoding: [0x6a,0x02,0x85,0x83]
8170x6a,0x02,0x85,0x83
818
819# CHECK: s_min_u32 s5, vcc_hi, s2                ; encoding: [0x6b,0x02,0x85,0x83]
8200x6b,0x02,0x85,0x83
821
822# CHECK: s_min_u32 s5, m0, s2                    ; encoding: [0x7c,0x02,0x85,0x83]
8230x7c,0x02,0x85,0x83
824
825# CHECK: s_min_u32 s5, exec_lo, s2               ; encoding: [0x7e,0x02,0x85,0x83]
8260x7e,0x02,0x85,0x83
827
828# CHECK: s_min_u32 s5, exec_hi, s2               ; encoding: [0x7f,0x02,0x85,0x83]
8290x7f,0x02,0x85,0x83
830
831# CHECK: s_min_u32 s5, 0, s2                     ; encoding: [0x80,0x02,0x85,0x83]
8320x80,0x02,0x85,0x83
833
834# CHECK: s_min_u32 s5, -1, s2                    ; encoding: [0xc1,0x02,0x85,0x83]
8350xc1,0x02,0x85,0x83
836
837# CHECK: s_min_u32 s5, 0.5, s2                   ; encoding: [0xf0,0x02,0x85,0x83]
8380xf0,0x02,0x85,0x83
839
840# CHECK: s_min_u32 s5, -4.0, s2                  ; encoding: [0xf7,0x02,0x85,0x83]
8410xf7,0x02,0x85,0x83
842
843# CHECK: s_min_u32 s5, 0xaf123456, s2            ; encoding: [0xff,0x02,0x85,0x83,0x56,0x34,0x12,0xaf]
8440xff,0x02,0x85,0x83,0x56,0x34,0x12,0xaf
845
846# CHECK: s_min_u32 s5, 0x3f717273, s2            ; encoding: [0xff,0x02,0x85,0x83,0x73,0x72,0x71,0x3f]
8470xff,0x02,0x85,0x83,0x73,0x72,0x71,0x3f
848
849# CHECK: s_min_u32 s5, s1, s101                  ; encoding: [0x01,0x65,0x85,0x83]
8500x01,0x65,0x85,0x83
851
852# CHECK: s_min_u32 s5, s1, flat_scratch_lo       ; encoding: [0x01,0x66,0x85,0x83]
8530x01,0x66,0x85,0x83
854
855# CHECK: s_min_u32 s5, s1, flat_scratch_hi       ; encoding: [0x01,0x67,0x85,0x83]
8560x01,0x67,0x85,0x83
857
858# CHECK: s_min_u32 s5, s1, vcc_lo                ; encoding: [0x01,0x6a,0x85,0x83]
8590x01,0x6a,0x85,0x83
860
861# CHECK: s_min_u32 s5, s1, vcc_hi                ; encoding: [0x01,0x6b,0x85,0x83]
8620x01,0x6b,0x85,0x83
863
864# CHECK: s_min_u32 s5, s1, m0                    ; encoding: [0x01,0x7c,0x85,0x83]
8650x01,0x7c,0x85,0x83
866
867# CHECK: s_min_u32 s5, s1, exec_lo               ; encoding: [0x01,0x7e,0x85,0x83]
8680x01,0x7e,0x85,0x83
869
870# CHECK: s_min_u32 s5, s1, exec_hi               ; encoding: [0x01,0x7f,0x85,0x83]
8710x01,0x7f,0x85,0x83
872
873# CHECK: s_min_u32 s5, s1, 0                     ; encoding: [0x01,0x80,0x85,0x83]
8740x01,0x80,0x85,0x83
875
876# CHECK: s_min_u32 s5, s1, -1                    ; encoding: [0x01,0xc1,0x85,0x83]
8770x01,0xc1,0x85,0x83
878
879# CHECK: s_min_u32 s5, s1, 0.5                   ; encoding: [0x01,0xf0,0x85,0x83]
8800x01,0xf0,0x85,0x83
881
882# CHECK: s_min_u32 s5, s1, -4.0                  ; encoding: [0x01,0xf7,0x85,0x83]
8830x01,0xf7,0x85,0x83
884
885# CHECK: s_min_u32 s5, s1, 0xaf123456            ; encoding: [0x01,0xff,0x85,0x83,0x56,0x34,0x12,0xaf]
8860x01,0xff,0x85,0x83,0x56,0x34,0x12,0xaf
887
888# CHECK: s_min_u32 s5, s1, 0x3f717273            ; encoding: [0x01,0xff,0x85,0x83,0x73,0x72,0x71,0x3f]
8890x01,0xff,0x85,0x83,0x73,0x72,0x71,0x3f
890
891# CHECK: s_max_i32 s5, s1, s2                    ; encoding: [0x01,0x02,0x05,0x84]
8920x01,0x02,0x05,0x84
893
894# CHECK: s_max_i32 s101, s1, s2                  ; encoding: [0x01,0x02,0x65,0x84]
8950x01,0x02,0x65,0x84
896
897# CHECK: s_max_i32 flat_scratch_lo, s1, s2       ; encoding: [0x01,0x02,0x66,0x84]
8980x01,0x02,0x66,0x84
899
900# CHECK: s_max_i32 flat_scratch_hi, s1, s2       ; encoding: [0x01,0x02,0x67,0x84]
9010x01,0x02,0x67,0x84
902
903# CHECK: s_max_i32 vcc_lo, s1, s2                ; encoding: [0x01,0x02,0x6a,0x84]
9040x01,0x02,0x6a,0x84
905
906# CHECK: s_max_i32 vcc_hi, s1, s2                ; encoding: [0x01,0x02,0x6b,0x84]
9070x01,0x02,0x6b,0x84
908
909# CHECK: s_max_i32 m0, s1, s2                    ; encoding: [0x01,0x02,0x7c,0x84]
9100x01,0x02,0x7c,0x84
911
912# CHECK: s_max_i32 exec_lo, s1, s2               ; encoding: [0x01,0x02,0x7e,0x84]
9130x01,0x02,0x7e,0x84
914
915# CHECK: s_max_i32 exec_hi, s1, s2               ; encoding: [0x01,0x02,0x7f,0x84]
9160x01,0x02,0x7f,0x84
917
918# CHECK: s_max_i32 s5, s101, s2                  ; encoding: [0x65,0x02,0x05,0x84]
9190x65,0x02,0x05,0x84
920
921# CHECK: s_max_i32 s5, flat_scratch_lo, s2       ; encoding: [0x66,0x02,0x05,0x84]
9220x66,0x02,0x05,0x84
923
924# CHECK: s_max_i32 s5, flat_scratch_hi, s2       ; encoding: [0x67,0x02,0x05,0x84]
9250x67,0x02,0x05,0x84
926
927# CHECK: s_max_i32 s5, vcc_lo, s2                ; encoding: [0x6a,0x02,0x05,0x84]
9280x6a,0x02,0x05,0x84
929
930# CHECK: s_max_i32 s5, vcc_hi, s2                ; encoding: [0x6b,0x02,0x05,0x84]
9310x6b,0x02,0x05,0x84
932
933# CHECK: s_max_i32 s5, m0, s2                    ; encoding: [0x7c,0x02,0x05,0x84]
9340x7c,0x02,0x05,0x84
935
936# CHECK: s_max_i32 s5, exec_lo, s2               ; encoding: [0x7e,0x02,0x05,0x84]
9370x7e,0x02,0x05,0x84
938
939# CHECK: s_max_i32 s5, exec_hi, s2               ; encoding: [0x7f,0x02,0x05,0x84]
9400x7f,0x02,0x05,0x84
941
942# CHECK: s_max_i32 s5, 0, s2                     ; encoding: [0x80,0x02,0x05,0x84]
9430x80,0x02,0x05,0x84
944
945# CHECK: s_max_i32 s5, -1, s2                    ; encoding: [0xc1,0x02,0x05,0x84]
9460xc1,0x02,0x05,0x84
947
948# CHECK: s_max_i32 s5, 0.5, s2                   ; encoding: [0xf0,0x02,0x05,0x84]
9490xf0,0x02,0x05,0x84
950
951# CHECK: s_max_i32 s5, -4.0, s2                  ; encoding: [0xf7,0x02,0x05,0x84]
9520xf7,0x02,0x05,0x84
953
954# CHECK: s_max_i32 s5, 0xaf123456, s2            ; encoding: [0xff,0x02,0x05,0x84,0x56,0x34,0x12,0xaf]
9550xff,0x02,0x05,0x84,0x56,0x34,0x12,0xaf
956
957# CHECK: s_max_i32 s5, 0x3f717273, s2            ; encoding: [0xff,0x02,0x05,0x84,0x73,0x72,0x71,0x3f]
9580xff,0x02,0x05,0x84,0x73,0x72,0x71,0x3f
959
960# CHECK: s_max_i32 s5, s1, s101                  ; encoding: [0x01,0x65,0x05,0x84]
9610x01,0x65,0x05,0x84
962
963# CHECK: s_max_i32 s5, s1, flat_scratch_lo       ; encoding: [0x01,0x66,0x05,0x84]
9640x01,0x66,0x05,0x84
965
966# CHECK: s_max_i32 s5, s1, flat_scratch_hi       ; encoding: [0x01,0x67,0x05,0x84]
9670x01,0x67,0x05,0x84
968
969# CHECK: s_max_i32 s5, s1, vcc_lo                ; encoding: [0x01,0x6a,0x05,0x84]
9700x01,0x6a,0x05,0x84
971
972# CHECK: s_max_i32 s5, s1, vcc_hi                ; encoding: [0x01,0x6b,0x05,0x84]
9730x01,0x6b,0x05,0x84
974
975# CHECK: s_max_i32 s5, s1, m0                    ; encoding: [0x01,0x7c,0x05,0x84]
9760x01,0x7c,0x05,0x84
977
978# CHECK: s_max_i32 s5, s1, exec_lo               ; encoding: [0x01,0x7e,0x05,0x84]
9790x01,0x7e,0x05,0x84
980
981# CHECK: s_max_i32 s5, s1, exec_hi               ; encoding: [0x01,0x7f,0x05,0x84]
9820x01,0x7f,0x05,0x84
983
984# CHECK: s_max_i32 s5, s1, 0                     ; encoding: [0x01,0x80,0x05,0x84]
9850x01,0x80,0x05,0x84
986
987# CHECK: s_max_i32 s5, s1, -1                    ; encoding: [0x01,0xc1,0x05,0x84]
9880x01,0xc1,0x05,0x84
989
990# CHECK: s_max_i32 s5, s1, 0.5                   ; encoding: [0x01,0xf0,0x05,0x84]
9910x01,0xf0,0x05,0x84
992
993# CHECK: s_max_i32 s5, s1, -4.0                  ; encoding: [0x01,0xf7,0x05,0x84]
9940x01,0xf7,0x05,0x84
995
996# CHECK: s_max_i32 s5, s1, 0xaf123456            ; encoding: [0x01,0xff,0x05,0x84,0x56,0x34,0x12,0xaf]
9970x01,0xff,0x05,0x84,0x56,0x34,0x12,0xaf
998
999# CHECK: s_max_i32 s5, s1, 0x3f717273            ; encoding: [0x01,0xff,0x05,0x84,0x73,0x72,0x71,0x3f]
10000x01,0xff,0x05,0x84,0x73,0x72,0x71,0x3f
1001
1002# CHECK: s_max_u32 s5, s1, s2                    ; encoding: [0x01,0x02,0x85,0x84]
10030x01,0x02,0x85,0x84
1004
1005# CHECK: s_max_u32 s101, s1, s2                  ; encoding: [0x01,0x02,0xe5,0x84]
10060x01,0x02,0xe5,0x84
1007
1008# CHECK: s_max_u32 flat_scratch_lo, s1, s2       ; encoding: [0x01,0x02,0xe6,0x84]
10090x01,0x02,0xe6,0x84
1010
1011# CHECK: s_max_u32 flat_scratch_hi, s1, s2       ; encoding: [0x01,0x02,0xe7,0x84]
10120x01,0x02,0xe7,0x84
1013
1014# CHECK: s_max_u32 vcc_lo, s1, s2                ; encoding: [0x01,0x02,0xea,0x84]
10150x01,0x02,0xea,0x84
1016
1017# CHECK: s_max_u32 vcc_hi, s1, s2                ; encoding: [0x01,0x02,0xeb,0x84]
10180x01,0x02,0xeb,0x84
1019
1020# CHECK: s_max_u32 m0, s1, s2                    ; encoding: [0x01,0x02,0xfc,0x84]
10210x01,0x02,0xfc,0x84
1022
1023# CHECK: s_max_u32 exec_lo, s1, s2               ; encoding: [0x01,0x02,0xfe,0x84]
10240x01,0x02,0xfe,0x84
1025
1026# CHECK: s_max_u32 exec_hi, s1, s2               ; encoding: [0x01,0x02,0xff,0x84]
10270x01,0x02,0xff,0x84
1028
1029# CHECK: s_max_u32 s5, s101, s2                  ; encoding: [0x65,0x02,0x85,0x84]
10300x65,0x02,0x85,0x84
1031
1032# CHECK: s_max_u32 s5, flat_scratch_lo, s2       ; encoding: [0x66,0x02,0x85,0x84]
10330x66,0x02,0x85,0x84
1034
1035# CHECK: s_max_u32 s5, flat_scratch_hi, s2       ; encoding: [0x67,0x02,0x85,0x84]
10360x67,0x02,0x85,0x84
1037
1038# CHECK: s_max_u32 s5, vcc_lo, s2                ; encoding: [0x6a,0x02,0x85,0x84]
10390x6a,0x02,0x85,0x84
1040
1041# CHECK: s_max_u32 s5, vcc_hi, s2                ; encoding: [0x6b,0x02,0x85,0x84]
10420x6b,0x02,0x85,0x84
1043
1044# CHECK: s_max_u32 s5, m0, s2                    ; encoding: [0x7c,0x02,0x85,0x84]
10450x7c,0x02,0x85,0x84
1046
1047# CHECK: s_max_u32 s5, exec_lo, s2               ; encoding: [0x7e,0x02,0x85,0x84]
10480x7e,0x02,0x85,0x84
1049
1050# CHECK: s_max_u32 s5, exec_hi, s2               ; encoding: [0x7f,0x02,0x85,0x84]
10510x7f,0x02,0x85,0x84
1052
1053# CHECK: s_max_u32 s5, 0, s2                     ; encoding: [0x80,0x02,0x85,0x84]
10540x80,0x02,0x85,0x84
1055
1056# CHECK: s_max_u32 s5, -1, s2                    ; encoding: [0xc1,0x02,0x85,0x84]
10570xc1,0x02,0x85,0x84
1058
1059# CHECK: s_max_u32 s5, 0.5, s2                   ; encoding: [0xf0,0x02,0x85,0x84]
10600xf0,0x02,0x85,0x84
1061
1062# CHECK: s_max_u32 s5, -4.0, s2                  ; encoding: [0xf7,0x02,0x85,0x84]
10630xf7,0x02,0x85,0x84
1064
1065# CHECK: s_max_u32 s5, 0xaf123456, s2            ; encoding: [0xff,0x02,0x85,0x84,0x56,0x34,0x12,0xaf]
10660xff,0x02,0x85,0x84,0x56,0x34,0x12,0xaf
1067
1068# CHECK: s_max_u32 s5, 0x3f717273, s2            ; encoding: [0xff,0x02,0x85,0x84,0x73,0x72,0x71,0x3f]
10690xff,0x02,0x85,0x84,0x73,0x72,0x71,0x3f
1070
1071# CHECK: s_max_u32 s5, s1, s101                  ; encoding: [0x01,0x65,0x85,0x84]
10720x01,0x65,0x85,0x84
1073
1074# CHECK: s_max_u32 s5, s1, flat_scratch_lo       ; encoding: [0x01,0x66,0x85,0x84]
10750x01,0x66,0x85,0x84
1076
1077# CHECK: s_max_u32 s5, s1, flat_scratch_hi       ; encoding: [0x01,0x67,0x85,0x84]
10780x01,0x67,0x85,0x84
1079
1080# CHECK: s_max_u32 s5, s1, vcc_lo                ; encoding: [0x01,0x6a,0x85,0x84]
10810x01,0x6a,0x85,0x84
1082
1083# CHECK: s_max_u32 s5, s1, vcc_hi                ; encoding: [0x01,0x6b,0x85,0x84]
10840x01,0x6b,0x85,0x84
1085
1086# CHECK: s_max_u32 s5, s1, m0                    ; encoding: [0x01,0x7c,0x85,0x84]
10870x01,0x7c,0x85,0x84
1088
1089# CHECK: s_max_u32 s5, s1, exec_lo               ; encoding: [0x01,0x7e,0x85,0x84]
10900x01,0x7e,0x85,0x84
1091
1092# CHECK: s_max_u32 s5, s1, exec_hi               ; encoding: [0x01,0x7f,0x85,0x84]
10930x01,0x7f,0x85,0x84
1094
1095# CHECK: s_max_u32 s5, s1, 0                     ; encoding: [0x01,0x80,0x85,0x84]
10960x01,0x80,0x85,0x84
1097
1098# CHECK: s_max_u32 s5, s1, -1                    ; encoding: [0x01,0xc1,0x85,0x84]
10990x01,0xc1,0x85,0x84
1100
1101# CHECK: s_max_u32 s5, s1, 0.5                   ; encoding: [0x01,0xf0,0x85,0x84]
11020x01,0xf0,0x85,0x84
1103
1104# CHECK: s_max_u32 s5, s1, -4.0                  ; encoding: [0x01,0xf7,0x85,0x84]
11050x01,0xf7,0x85,0x84
1106
1107# CHECK: s_max_u32 s5, s1, 0xaf123456            ; encoding: [0x01,0xff,0x85,0x84,0x56,0x34,0x12,0xaf]
11080x01,0xff,0x85,0x84,0x56,0x34,0x12,0xaf
1109
1110# CHECK: s_max_u32 s5, s1, 0x3f717273            ; encoding: [0x01,0xff,0x85,0x84,0x73,0x72,0x71,0x3f]
11110x01,0xff,0x85,0x84,0x73,0x72,0x71,0x3f
1112
1113# CHECK: s_cselect_b32 s5, s1, s2                ; encoding: [0x01,0x02,0x05,0x85]
11140x01,0x02,0x05,0x85
1115
1116# CHECK: s_cselect_b32 s101, s1, s2              ; encoding: [0x01,0x02,0x65,0x85]
11170x01,0x02,0x65,0x85
1118
1119# CHECK: s_cselect_b32 flat_scratch_lo, s1, s2   ; encoding: [0x01,0x02,0x66,0x85]
11200x01,0x02,0x66,0x85
1121
1122# CHECK: s_cselect_b32 flat_scratch_hi, s1, s2   ; encoding: [0x01,0x02,0x67,0x85]
11230x01,0x02,0x67,0x85
1124
1125# CHECK: s_cselect_b32 vcc_lo, s1, s2            ; encoding: [0x01,0x02,0x6a,0x85]
11260x01,0x02,0x6a,0x85
1127
1128# CHECK: s_cselect_b32 vcc_hi, s1, s2            ; encoding: [0x01,0x02,0x6b,0x85]
11290x01,0x02,0x6b,0x85
1130
1131# CHECK: s_cselect_b32 m0, s1, s2                ; encoding: [0x01,0x02,0x7c,0x85]
11320x01,0x02,0x7c,0x85
1133
1134# CHECK: s_cselect_b32 exec_lo, s1, s2           ; encoding: [0x01,0x02,0x7e,0x85]
11350x01,0x02,0x7e,0x85
1136
1137# CHECK: s_cselect_b32 exec_hi, s1, s2           ; encoding: [0x01,0x02,0x7f,0x85]
11380x01,0x02,0x7f,0x85
1139
1140# CHECK: s_cselect_b32 s5, s101, s2              ; encoding: [0x65,0x02,0x05,0x85]
11410x65,0x02,0x05,0x85
1142
1143# CHECK: s_cselect_b32 s5, flat_scratch_lo, s2   ; encoding: [0x66,0x02,0x05,0x85]
11440x66,0x02,0x05,0x85
1145
1146# CHECK: s_cselect_b32 s5, flat_scratch_hi, s2   ; encoding: [0x67,0x02,0x05,0x85]
11470x67,0x02,0x05,0x85
1148
1149# CHECK: s_cselect_b32 s5, vcc_lo, s2            ; encoding: [0x6a,0x02,0x05,0x85]
11500x6a,0x02,0x05,0x85
1151
1152# CHECK: s_cselect_b32 s5, vcc_hi, s2            ; encoding: [0x6b,0x02,0x05,0x85]
11530x6b,0x02,0x05,0x85
1154
1155# CHECK: s_cselect_b32 s5, m0, s2                ; encoding: [0x7c,0x02,0x05,0x85]
11560x7c,0x02,0x05,0x85
1157
1158# CHECK: s_cselect_b32 s5, exec_lo, s2           ; encoding: [0x7e,0x02,0x05,0x85]
11590x7e,0x02,0x05,0x85
1160
1161# CHECK: s_cselect_b32 s5, exec_hi, s2           ; encoding: [0x7f,0x02,0x05,0x85]
11620x7f,0x02,0x05,0x85
1163
1164# CHECK: s_cselect_b32 s5, 0, s2                 ; encoding: [0x80,0x02,0x05,0x85]
11650x80,0x02,0x05,0x85
1166
1167# CHECK: s_cselect_b32 s5, -1, s2                ; encoding: [0xc1,0x02,0x05,0x85]
11680xc1,0x02,0x05,0x85
1169
1170# CHECK: s_cselect_b32 s5, 0.5, s2               ; encoding: [0xf0,0x02,0x05,0x85]
11710xf0,0x02,0x05,0x85
1172
1173# CHECK: s_cselect_b32 s5, -4.0, s2              ; encoding: [0xf7,0x02,0x05,0x85]
11740xf7,0x02,0x05,0x85
1175
1176# CHECK: s_cselect_b32 s5, 0xaf123456, s2        ; encoding: [0xff,0x02,0x05,0x85,0x56,0x34,0x12,0xaf]
11770xff,0x02,0x05,0x85,0x56,0x34,0x12,0xaf
1178
1179# CHECK: s_cselect_b32 s5, 0x3f717273, s2        ; encoding: [0xff,0x02,0x05,0x85,0x73,0x72,0x71,0x3f]
11800xff,0x02,0x05,0x85,0x73,0x72,0x71,0x3f
1181
1182# CHECK: s_cselect_b32 s5, s1, s101              ; encoding: [0x01,0x65,0x05,0x85]
11830x01,0x65,0x05,0x85
1184
1185# CHECK: s_cselect_b32 s5, s1, flat_scratch_lo   ; encoding: [0x01,0x66,0x05,0x85]
11860x01,0x66,0x05,0x85
1187
1188# CHECK: s_cselect_b32 s5, s1, flat_scratch_hi   ; encoding: [0x01,0x67,0x05,0x85]
11890x01,0x67,0x05,0x85
1190
1191# CHECK: s_cselect_b32 s5, s1, vcc_lo            ; encoding: [0x01,0x6a,0x05,0x85]
11920x01,0x6a,0x05,0x85
1193
1194# CHECK: s_cselect_b32 s5, s1, vcc_hi            ; encoding: [0x01,0x6b,0x05,0x85]
11950x01,0x6b,0x05,0x85
1196
1197# CHECK: s_cselect_b32 s5, s1, m0                ; encoding: [0x01,0x7c,0x05,0x85]
11980x01,0x7c,0x05,0x85
1199
1200# CHECK: s_cselect_b32 s5, s1, exec_lo           ; encoding: [0x01,0x7e,0x05,0x85]
12010x01,0x7e,0x05,0x85
1202
1203# CHECK: s_cselect_b32 s5, s1, exec_hi           ; encoding: [0x01,0x7f,0x05,0x85]
12040x01,0x7f,0x05,0x85
1205
1206# CHECK: s_cselect_b32 s5, s1, 0                 ; encoding: [0x01,0x80,0x05,0x85]
12070x01,0x80,0x05,0x85
1208
1209# CHECK: s_cselect_b32 s5, s1, -1                ; encoding: [0x01,0xc1,0x05,0x85]
12100x01,0xc1,0x05,0x85
1211
1212# CHECK: s_cselect_b32 s5, s1, 0.5               ; encoding: [0x01,0xf0,0x05,0x85]
12130x01,0xf0,0x05,0x85
1214
1215# CHECK: s_cselect_b32 s5, s1, -4.0              ; encoding: [0x01,0xf7,0x05,0x85]
12160x01,0xf7,0x05,0x85
1217
1218# CHECK: s_cselect_b32 s5, s1, 0xaf123456        ; encoding: [0x01,0xff,0x05,0x85,0x56,0x34,0x12,0xaf]
12190x01,0xff,0x05,0x85,0x56,0x34,0x12,0xaf
1220
1221# CHECK: s_cselect_b32 s5, s1, 0x3f717273        ; encoding: [0x01,0xff,0x05,0x85,0x73,0x72,0x71,0x3f]
12220x01,0xff,0x05,0x85,0x73,0x72,0x71,0x3f
1223
1224# CHECK: s_cselect_b64 s[10:11], s[2:3], s[4:5]  ; encoding: [0x02,0x04,0x8a,0x85]
12250x02,0x04,0x8a,0x85
1226
1227# CHECK: s_cselect_b64 s[12:13], s[2:3], s[4:5]  ; encoding: [0x02,0x04,0x8c,0x85]
12280x02,0x04,0x8c,0x85
1229
1230# CHECK: s_cselect_b64 s[100:101], s[2:3], s[4:5] ; encoding: [0x02,0x04,0xe4,0x85]
12310x02,0x04,0xe4,0x85
1232
1233# CHECK: s_cselect_b64 flat_scratch, s[2:3], s[4:5] ; encoding: [0x02,0x04,0xe6,0x85]
12340x02,0x04,0xe6,0x85
1235
1236# CHECK: s_cselect_b64 vcc, s[2:3], s[4:5]       ; encoding: [0x02,0x04,0xea,0x85]
12370x02,0x04,0xea,0x85
1238
1239# CHECK: s_cselect_b64 exec, s[2:3], s[4:5]      ; encoding: [0x02,0x04,0xfe,0x85]
12400x02,0x04,0xfe,0x85
1241
1242# CHECK: s_cselect_b64 s[10:11], s[4:5], s[4:5]  ; encoding: [0x04,0x04,0x8a,0x85]
12430x04,0x04,0x8a,0x85
1244
1245# CHECK: s_cselect_b64 s[10:11], s[100:101], s[4:5] ; encoding: [0x64,0x04,0x8a,0x85]
12460x64,0x04,0x8a,0x85
1247
1248# CHECK: s_cselect_b64 s[10:11], flat_scratch, s[4:5] ; encoding: [0x66,0x04,0x8a,0x85]
12490x66,0x04,0x8a,0x85
1250
1251# CHECK: s_cselect_b64 s[10:11], vcc, s[4:5]     ; encoding: [0x6a,0x04,0x8a,0x85]
12520x6a,0x04,0x8a,0x85
1253
1254# CHECK: s_cselect_b64 s[10:11], exec, s[4:5]    ; encoding: [0x7e,0x04,0x8a,0x85]
12550x7e,0x04,0x8a,0x85
1256
1257# CHECK: s_cselect_b64 s[10:11], 0, s[4:5]       ; encoding: [0x80,0x04,0x8a,0x85]
12580x80,0x04,0x8a,0x85
1259
1260# CHECK: s_cselect_b64 s[10:11], -1, s[4:5]      ; encoding: [0xc1,0x04,0x8a,0x85]
12610xc1,0x04,0x8a,0x85
1262
1263# CHECK: s_cselect_b64 s[10:11], 0.5, s[4:5]     ; encoding: [0xf0,0x04,0x8a,0x85]
12640xf0,0x04,0x8a,0x85
1265
1266# CHECK: s_cselect_b64 s[10:11], -4.0, s[4:5]    ; encoding: [0xf7,0x04,0x8a,0x85]
12670xf7,0x04,0x8a,0x85
1268
1269# CHECK: s_cselect_b64 s[10:11], 0xaf123456, s[4:5] ; encoding: [0xff,0x04,0x8a,0x85,0x56,0x34,0x12,0xaf]
12700xff,0x04,0x8a,0x85,0x56,0x34,0x12,0xaf
1271
1272# CHECK: s_cselect_b64 s[10:11], 0x3f717273, s[4:5] ; encoding: [0xff,0x04,0x8a,0x85,0x73,0x72,0x71,0x3f]
12730xff,0x04,0x8a,0x85,0x73,0x72,0x71,0x3f
1274
1275# CHECK: s_cselect_b64 s[10:11], s[2:3], s[6:7]  ; encoding: [0x02,0x06,0x8a,0x85]
12760x02,0x06,0x8a,0x85
1277
1278# CHECK: s_cselect_b64 s[10:11], s[2:3], s[100:101] ; encoding: [0x02,0x64,0x8a,0x85]
12790x02,0x64,0x8a,0x85
1280
1281# CHECK: s_cselect_b64 s[10:11], s[2:3], flat_scratch ; encoding: [0x02,0x66,0x8a,0x85]
12820x02,0x66,0x8a,0x85
1283
1284# CHECK: s_cselect_b64 s[10:11], s[2:3], vcc     ; encoding: [0x02,0x6a,0x8a,0x85]
12850x02,0x6a,0x8a,0x85
1286
1287# CHECK: s_cselect_b64 s[10:11], s[2:3], exec    ; encoding: [0x02,0x7e,0x8a,0x85]
12880x02,0x7e,0x8a,0x85
1289
1290# CHECK: s_cselect_b64 s[10:11], s[2:3], 0       ; encoding: [0x02,0x80,0x8a,0x85]
12910x02,0x80,0x8a,0x85
1292
1293# CHECK: s_cselect_b64 s[10:11], s[2:3], -1      ; encoding: [0x02,0xc1,0x8a,0x85]
12940x02,0xc1,0x8a,0x85
1295
1296# CHECK: s_cselect_b64 s[10:11], s[2:3], 0.5     ; encoding: [0x02,0xf0,0x8a,0x85]
12970x02,0xf0,0x8a,0x85
1298
1299# CHECK: s_cselect_b64 s[10:11], s[2:3], -4.0    ; encoding: [0x02,0xf7,0x8a,0x85]
13000x02,0xf7,0x8a,0x85
1301
1302# CHECK: s_cselect_b64 s[10:11], s[2:3], 0xaf123456 ; encoding: [0x02,0xff,0x8a,0x85,0x56,0x34,0x12,0xaf]
13030x02,0xff,0x8a,0x85,0x56,0x34,0x12,0xaf
1304
1305# CHECK: s_cselect_b64 s[10:11], s[2:3], 0x3f717273 ; encoding: [0x02,0xff,0x8a,0x85,0x73,0x72,0x71,0x3f]
13060x02,0xff,0x8a,0x85,0x73,0x72,0x71,0x3f
1307
1308# CHECK: s_and_b32 s5, s1, s2                    ; encoding: [0x01,0x02,0x05,0x86]
13090x01,0x02,0x05,0x86
1310
1311# CHECK: s_and_b32 s101, s1, s2                  ; encoding: [0x01,0x02,0x65,0x86]
13120x01,0x02,0x65,0x86
1313
1314# CHECK: s_and_b32 flat_scratch_lo, s1, s2       ; encoding: [0x01,0x02,0x66,0x86]
13150x01,0x02,0x66,0x86
1316
1317# CHECK: s_and_b32 flat_scratch_hi, s1, s2       ; encoding: [0x01,0x02,0x67,0x86]
13180x01,0x02,0x67,0x86
1319
1320# CHECK: s_and_b32 vcc_lo, s1, s2                ; encoding: [0x01,0x02,0x6a,0x86]
13210x01,0x02,0x6a,0x86
1322
1323# CHECK: s_and_b32 vcc_hi, s1, s2                ; encoding: [0x01,0x02,0x6b,0x86]
13240x01,0x02,0x6b,0x86
1325
1326# CHECK: s_and_b32 m0, s1, s2                    ; encoding: [0x01,0x02,0x7c,0x86]
13270x01,0x02,0x7c,0x86
1328
1329# CHECK: s_and_b32 exec_lo, s1, s2               ; encoding: [0x01,0x02,0x7e,0x86]
13300x01,0x02,0x7e,0x86
1331
1332# CHECK: s_and_b32 exec_hi, s1, s2               ; encoding: [0x01,0x02,0x7f,0x86]
13330x01,0x02,0x7f,0x86
1334
1335# CHECK: s_and_b32 s5, s101, s2                  ; encoding: [0x65,0x02,0x05,0x86]
13360x65,0x02,0x05,0x86
1337
1338# CHECK: s_and_b32 s5, flat_scratch_lo, s2       ; encoding: [0x66,0x02,0x05,0x86]
13390x66,0x02,0x05,0x86
1340
1341# CHECK: s_and_b32 s5, flat_scratch_hi, s2       ; encoding: [0x67,0x02,0x05,0x86]
13420x67,0x02,0x05,0x86
1343
1344# CHECK: s_and_b32 s5, vcc_lo, s2                ; encoding: [0x6a,0x02,0x05,0x86]
13450x6a,0x02,0x05,0x86
1346
1347# CHECK: s_and_b32 s5, vcc_hi, s2                ; encoding: [0x6b,0x02,0x05,0x86]
13480x6b,0x02,0x05,0x86
1349
1350# CHECK: s_and_b32 s5, m0, s2                    ; encoding: [0x7c,0x02,0x05,0x86]
13510x7c,0x02,0x05,0x86
1352
1353# CHECK: s_and_b32 s5, exec_lo, s2               ; encoding: [0x7e,0x02,0x05,0x86]
13540x7e,0x02,0x05,0x86
1355
1356# CHECK: s_and_b32 s5, exec_hi, s2               ; encoding: [0x7f,0x02,0x05,0x86]
13570x7f,0x02,0x05,0x86
1358
1359# CHECK: s_and_b32 s5, 0, s2                     ; encoding: [0x80,0x02,0x05,0x86]
13600x80,0x02,0x05,0x86
1361
1362# CHECK: s_and_b32 s5, -1, s2                    ; encoding: [0xc1,0x02,0x05,0x86]
13630xc1,0x02,0x05,0x86
1364
1365# CHECK: s_and_b32 s5, 0.5, s2                   ; encoding: [0xf0,0x02,0x05,0x86]
13660xf0,0x02,0x05,0x86
1367
1368# CHECK: s_and_b32 s5, -4.0, s2                  ; encoding: [0xf7,0x02,0x05,0x86]
13690xf7,0x02,0x05,0x86
1370
1371# CHECK: s_and_b32 s5, 0xaf123456, s2            ; encoding: [0xff,0x02,0x05,0x86,0x56,0x34,0x12,0xaf]
13720xff,0x02,0x05,0x86,0x56,0x34,0x12,0xaf
1373
1374# CHECK: s_and_b32 s5, 0x3f717273, s2            ; encoding: [0xff,0x02,0x05,0x86,0x73,0x72,0x71,0x3f]
13750xff,0x02,0x05,0x86,0x73,0x72,0x71,0x3f
1376
1377# CHECK: s_and_b32 s5, s1, s101                  ; encoding: [0x01,0x65,0x05,0x86]
13780x01,0x65,0x05,0x86
1379
1380# CHECK: s_and_b32 s5, s1, flat_scratch_lo       ; encoding: [0x01,0x66,0x05,0x86]
13810x01,0x66,0x05,0x86
1382
1383# CHECK: s_and_b32 s5, s1, flat_scratch_hi       ; encoding: [0x01,0x67,0x05,0x86]
13840x01,0x67,0x05,0x86
1385
1386# CHECK: s_and_b32 s5, s1, vcc_lo                ; encoding: [0x01,0x6a,0x05,0x86]
13870x01,0x6a,0x05,0x86
1388
1389# CHECK: s_and_b32 s5, s1, vcc_hi                ; encoding: [0x01,0x6b,0x05,0x86]
13900x01,0x6b,0x05,0x86
1391
1392# CHECK: s_and_b32 s5, s1, m0                    ; encoding: [0x01,0x7c,0x05,0x86]
13930x01,0x7c,0x05,0x86
1394
1395# CHECK: s_and_b32 s5, s1, exec_lo               ; encoding: [0x01,0x7e,0x05,0x86]
13960x01,0x7e,0x05,0x86
1397
1398# CHECK: s_and_b32 s5, s1, exec_hi               ; encoding: [0x01,0x7f,0x05,0x86]
13990x01,0x7f,0x05,0x86
1400
1401# CHECK: s_and_b32 s5, s1, 0                     ; encoding: [0x01,0x80,0x05,0x86]
14020x01,0x80,0x05,0x86
1403
1404# CHECK: s_and_b32 s5, s1, -1                    ; encoding: [0x01,0xc1,0x05,0x86]
14050x01,0xc1,0x05,0x86
1406
1407# CHECK: s_and_b32 s5, s1, 0.5                   ; encoding: [0x01,0xf0,0x05,0x86]
14080x01,0xf0,0x05,0x86
1409
1410# CHECK: s_and_b32 s5, s1, -4.0                  ; encoding: [0x01,0xf7,0x05,0x86]
14110x01,0xf7,0x05,0x86
1412
1413# CHECK: s_and_b32 s5, s1, 0xaf123456            ; encoding: [0x01,0xff,0x05,0x86,0x56,0x34,0x12,0xaf]
14140x01,0xff,0x05,0x86,0x56,0x34,0x12,0xaf
1415
1416# CHECK: s_and_b32 s5, s1, 0x3f717273            ; encoding: [0x01,0xff,0x05,0x86,0x73,0x72,0x71,0x3f]
14170x01,0xff,0x05,0x86,0x73,0x72,0x71,0x3f
1418
1419# CHECK: s_and_b64 s[10:11], s[2:3], s[4:5]      ; encoding: [0x02,0x04,0x8a,0x86]
14200x02,0x04,0x8a,0x86
1421
1422# CHECK: s_and_b64 s[12:13], s[2:3], s[4:5]      ; encoding: [0x02,0x04,0x8c,0x86]
14230x02,0x04,0x8c,0x86
1424
1425# CHECK: s_and_b64 s[100:101], s[2:3], s[4:5]    ; encoding: [0x02,0x04,0xe4,0x86]
14260x02,0x04,0xe4,0x86
1427
1428# CHECK: s_and_b64 flat_scratch, s[2:3], s[4:5]  ; encoding: [0x02,0x04,0xe6,0x86]
14290x02,0x04,0xe6,0x86
1430
1431# CHECK: s_and_b64 vcc, s[2:3], s[4:5]           ; encoding: [0x02,0x04,0xea,0x86]
14320x02,0x04,0xea,0x86
1433
1434# CHECK: s_and_b64 exec, s[2:3], s[4:5]          ; encoding: [0x02,0x04,0xfe,0x86]
14350x02,0x04,0xfe,0x86
1436
1437# CHECK: s_and_b64 s[10:11], s[4:5], s[4:5]      ; encoding: [0x04,0x04,0x8a,0x86]
14380x04,0x04,0x8a,0x86
1439
1440# CHECK: s_and_b64 s[10:11], s[100:101], s[4:5]  ; encoding: [0x64,0x04,0x8a,0x86]
14410x64,0x04,0x8a,0x86
1442
1443# CHECK: s_and_b64 s[10:11], flat_scratch, s[4:5] ; encoding: [0x66,0x04,0x8a,0x86]
14440x66,0x04,0x8a,0x86
1445
1446# CHECK: s_and_b64 s[10:11], vcc, s[4:5]         ; encoding: [0x6a,0x04,0x8a,0x86]
14470x6a,0x04,0x8a,0x86
1448
1449# CHECK: s_and_b64 s[10:11], exec, s[4:5]        ; encoding: [0x7e,0x04,0x8a,0x86]
14500x7e,0x04,0x8a,0x86
1451
1452# CHECK: s_and_b64 s[10:11], 0, s[4:5]           ; encoding: [0x80,0x04,0x8a,0x86]
14530x80,0x04,0x8a,0x86
1454
1455# CHECK: s_and_b64 s[10:11], -1, s[4:5]          ; encoding: [0xc1,0x04,0x8a,0x86]
14560xc1,0x04,0x8a,0x86
1457
1458# CHECK: s_and_b64 s[10:11], 0.5, s[4:5]         ; encoding: [0xf0,0x04,0x8a,0x86]
14590xf0,0x04,0x8a,0x86
1460
1461# CHECK: s_and_b64 s[10:11], -4.0, s[4:5]        ; encoding: [0xf7,0x04,0x8a,0x86]
14620xf7,0x04,0x8a,0x86
1463
1464# CHECK: s_and_b64 s[10:11], 0xaf123456, s[4:5]  ; encoding: [0xff,0x04,0x8a,0x86,0x56,0x34,0x12,0xaf]
14650xff,0x04,0x8a,0x86,0x56,0x34,0x12,0xaf
1466
1467# CHECK: s_and_b64 s[10:11], 0x3f717273, s[4:5]  ; encoding: [0xff,0x04,0x8a,0x86,0x73,0x72,0x71,0x3f]
14680xff,0x04,0x8a,0x86,0x73,0x72,0x71,0x3f
1469
1470# CHECK: s_and_b64 s[10:11], s[2:3], s[6:7]      ; encoding: [0x02,0x06,0x8a,0x86]
14710x02,0x06,0x8a,0x86
1472
1473# CHECK: s_and_b64 s[10:11], s[2:3], s[100:101]  ; encoding: [0x02,0x64,0x8a,0x86]
14740x02,0x64,0x8a,0x86
1475
1476# CHECK: s_and_b64 s[10:11], s[2:3], flat_scratch ; encoding: [0x02,0x66,0x8a,0x86]
14770x02,0x66,0x8a,0x86
1478
1479# CHECK: s_and_b64 s[10:11], s[2:3], vcc         ; encoding: [0x02,0x6a,0x8a,0x86]
14800x02,0x6a,0x8a,0x86
1481
1482# CHECK: s_and_b64 s[10:11], s[2:3], exec        ; encoding: [0x02,0x7e,0x8a,0x86]
14830x02,0x7e,0x8a,0x86
1484
1485# CHECK: s_and_b64 s[10:11], s[2:3], 0           ; encoding: [0x02,0x80,0x8a,0x86]
14860x02,0x80,0x8a,0x86
1487
1488# CHECK: s_and_b64 s[10:11], s[2:3], -1          ; encoding: [0x02,0xc1,0x8a,0x86]
14890x02,0xc1,0x8a,0x86
1490
1491# CHECK: s_and_b64 s[10:11], s[2:3], 0.5         ; encoding: [0x02,0xf0,0x8a,0x86]
14920x02,0xf0,0x8a,0x86
1493
1494# CHECK: s_and_b64 s[10:11], s[2:3], -4.0        ; encoding: [0x02,0xf7,0x8a,0x86]
14950x02,0xf7,0x8a,0x86
1496
1497# CHECK: s_and_b64 s[10:11], s[2:3], 0xaf123456  ; encoding: [0x02,0xff,0x8a,0x86,0x56,0x34,0x12,0xaf]
14980x02,0xff,0x8a,0x86,0x56,0x34,0x12,0xaf
1499
1500# CHECK: s_and_b64 s[10:11], s[2:3], 0x3f717273  ; encoding: [0x02,0xff,0x8a,0x86,0x73,0x72,0x71,0x3f]
15010x02,0xff,0x8a,0x86,0x73,0x72,0x71,0x3f
1502
1503# CHECK: s_or_b32 s5, s1, s2                     ; encoding: [0x01,0x02,0x05,0x87]
15040x01,0x02,0x05,0x87
1505
1506# CHECK: s_or_b32 s101, s1, s2                   ; encoding: [0x01,0x02,0x65,0x87]
15070x01,0x02,0x65,0x87
1508
1509# CHECK: s_or_b32 flat_scratch_lo, s1, s2        ; encoding: [0x01,0x02,0x66,0x87]
15100x01,0x02,0x66,0x87
1511
1512# CHECK: s_or_b32 flat_scratch_hi, s1, s2        ; encoding: [0x01,0x02,0x67,0x87]
15130x01,0x02,0x67,0x87
1514
1515# CHECK: s_or_b32 vcc_lo, s1, s2                 ; encoding: [0x01,0x02,0x6a,0x87]
15160x01,0x02,0x6a,0x87
1517
1518# CHECK: s_or_b32 vcc_hi, s1, s2                 ; encoding: [0x01,0x02,0x6b,0x87]
15190x01,0x02,0x6b,0x87
1520
1521# CHECK: s_or_b32 m0, s1, s2                     ; encoding: [0x01,0x02,0x7c,0x87]
15220x01,0x02,0x7c,0x87
1523
1524# CHECK: s_or_b32 exec_lo, s1, s2                ; encoding: [0x01,0x02,0x7e,0x87]
15250x01,0x02,0x7e,0x87
1526
1527# CHECK: s_or_b32 exec_hi, s1, s2                ; encoding: [0x01,0x02,0x7f,0x87]
15280x01,0x02,0x7f,0x87
1529
1530# CHECK: s_or_b32 s5, s101, s2                   ; encoding: [0x65,0x02,0x05,0x87]
15310x65,0x02,0x05,0x87
1532
1533# CHECK: s_or_b32 s5, flat_scratch_lo, s2        ; encoding: [0x66,0x02,0x05,0x87]
15340x66,0x02,0x05,0x87
1535
1536# CHECK: s_or_b32 s5, flat_scratch_hi, s2        ; encoding: [0x67,0x02,0x05,0x87]
15370x67,0x02,0x05,0x87
1538
1539# CHECK: s_or_b32 s5, vcc_lo, s2                 ; encoding: [0x6a,0x02,0x05,0x87]
15400x6a,0x02,0x05,0x87
1541
1542# CHECK: s_or_b32 s5, vcc_hi, s2                 ; encoding: [0x6b,0x02,0x05,0x87]
15430x6b,0x02,0x05,0x87
1544
1545# CHECK: s_or_b32 s5, m0, s2                     ; encoding: [0x7c,0x02,0x05,0x87]
15460x7c,0x02,0x05,0x87
1547
1548# CHECK: s_or_b32 s5, exec_lo, s2                ; encoding: [0x7e,0x02,0x05,0x87]
15490x7e,0x02,0x05,0x87
1550
1551# CHECK: s_or_b32 s5, exec_hi, s2                ; encoding: [0x7f,0x02,0x05,0x87]
15520x7f,0x02,0x05,0x87
1553
1554# CHECK: s_or_b32 s5, 0, s2                      ; encoding: [0x80,0x02,0x05,0x87]
15550x80,0x02,0x05,0x87
1556
1557# CHECK: s_or_b32 s5, -1, s2                     ; encoding: [0xc1,0x02,0x05,0x87]
15580xc1,0x02,0x05,0x87
1559
1560# CHECK: s_or_b32 s5, 0.5, s2                    ; encoding: [0xf0,0x02,0x05,0x87]
15610xf0,0x02,0x05,0x87
1562
1563# CHECK: s_or_b32 s5, -4.0, s2                   ; encoding: [0xf7,0x02,0x05,0x87]
15640xf7,0x02,0x05,0x87
1565
1566# CHECK: s_or_b32 s5, 0xaf123456, s2             ; encoding: [0xff,0x02,0x05,0x87,0x56,0x34,0x12,0xaf]
15670xff,0x02,0x05,0x87,0x56,0x34,0x12,0xaf
1568
1569# CHECK: s_or_b32 s5, 0x3f717273, s2             ; encoding: [0xff,0x02,0x05,0x87,0x73,0x72,0x71,0x3f]
15700xff,0x02,0x05,0x87,0x73,0x72,0x71,0x3f
1571
1572# CHECK: s_or_b32 s5, s1, s101                   ; encoding: [0x01,0x65,0x05,0x87]
15730x01,0x65,0x05,0x87
1574
1575# CHECK: s_or_b32 s5, s1, flat_scratch_lo        ; encoding: [0x01,0x66,0x05,0x87]
15760x01,0x66,0x05,0x87
1577
1578# CHECK: s_or_b32 s5, s1, flat_scratch_hi        ; encoding: [0x01,0x67,0x05,0x87]
15790x01,0x67,0x05,0x87
1580
1581# CHECK: s_or_b32 s5, s1, vcc_lo                 ; encoding: [0x01,0x6a,0x05,0x87]
15820x01,0x6a,0x05,0x87
1583
1584# CHECK: s_or_b32 s5, s1, vcc_hi                 ; encoding: [0x01,0x6b,0x05,0x87]
15850x01,0x6b,0x05,0x87
1586
1587# CHECK: s_or_b32 s5, s1, m0                     ; encoding: [0x01,0x7c,0x05,0x87]
15880x01,0x7c,0x05,0x87
1589
1590# CHECK: s_or_b32 s5, s1, exec_lo                ; encoding: [0x01,0x7e,0x05,0x87]
15910x01,0x7e,0x05,0x87
1592
1593# CHECK: s_or_b32 s5, s1, exec_hi                ; encoding: [0x01,0x7f,0x05,0x87]
15940x01,0x7f,0x05,0x87
1595
1596# CHECK: s_or_b32 s5, s1, 0                      ; encoding: [0x01,0x80,0x05,0x87]
15970x01,0x80,0x05,0x87
1598
1599# CHECK: s_or_b32 s5, s1, -1                     ; encoding: [0x01,0xc1,0x05,0x87]
16000x01,0xc1,0x05,0x87
1601
1602# CHECK: s_or_b32 s5, s1, 0.5                    ; encoding: [0x01,0xf0,0x05,0x87]
16030x01,0xf0,0x05,0x87
1604
1605# CHECK: s_or_b32 s5, s1, -4.0                   ; encoding: [0x01,0xf7,0x05,0x87]
16060x01,0xf7,0x05,0x87
1607
1608# CHECK: s_or_b32 s5, s1, 0xaf123456             ; encoding: [0x01,0xff,0x05,0x87,0x56,0x34,0x12,0xaf]
16090x01,0xff,0x05,0x87,0x56,0x34,0x12,0xaf
1610
1611# CHECK: s_or_b32 s5, s1, 0x3f717273             ; encoding: [0x01,0xff,0x05,0x87,0x73,0x72,0x71,0x3f]
16120x01,0xff,0x05,0x87,0x73,0x72,0x71,0x3f
1613
1614# CHECK: s_or_b64 s[10:11], s[2:3], s[4:5]       ; encoding: [0x02,0x04,0x8a,0x87]
16150x02,0x04,0x8a,0x87
1616
1617# CHECK: s_or_b64 s[12:13], s[2:3], s[4:5]       ; encoding: [0x02,0x04,0x8c,0x87]
16180x02,0x04,0x8c,0x87
1619
1620# CHECK: s_or_b64 s[100:101], s[2:3], s[4:5]     ; encoding: [0x02,0x04,0xe4,0x87]
16210x02,0x04,0xe4,0x87
1622
1623# CHECK: s_or_b64 flat_scratch, s[2:3], s[4:5]   ; encoding: [0x02,0x04,0xe6,0x87]
16240x02,0x04,0xe6,0x87
1625
1626# CHECK: s_or_b64 vcc, s[2:3], s[4:5]            ; encoding: [0x02,0x04,0xea,0x87]
16270x02,0x04,0xea,0x87
1628
1629# CHECK: s_or_b64 exec, s[2:3], s[4:5]           ; encoding: [0x02,0x04,0xfe,0x87]
16300x02,0x04,0xfe,0x87
1631
1632# CHECK: s_or_b64 s[10:11], s[4:5], s[4:5]       ; encoding: [0x04,0x04,0x8a,0x87]
16330x04,0x04,0x8a,0x87
1634
1635# CHECK: s_or_b64 s[10:11], s[100:101], s[4:5]   ; encoding: [0x64,0x04,0x8a,0x87]
16360x64,0x04,0x8a,0x87
1637
1638# CHECK: s_or_b64 s[10:11], flat_scratch, s[4:5] ; encoding: [0x66,0x04,0x8a,0x87]
16390x66,0x04,0x8a,0x87
1640
1641# CHECK: s_or_b64 s[10:11], vcc, s[4:5]          ; encoding: [0x6a,0x04,0x8a,0x87]
16420x6a,0x04,0x8a,0x87
1643
1644# CHECK: s_or_b64 s[10:11], exec, s[4:5]         ; encoding: [0x7e,0x04,0x8a,0x87]
16450x7e,0x04,0x8a,0x87
1646
1647# CHECK: s_or_b64 s[10:11], 0, s[4:5]            ; encoding: [0x80,0x04,0x8a,0x87]
16480x80,0x04,0x8a,0x87
1649
1650# CHECK: s_or_b64 s[10:11], -1, s[4:5]           ; encoding: [0xc1,0x04,0x8a,0x87]
16510xc1,0x04,0x8a,0x87
1652
1653# CHECK: s_or_b64 s[10:11], 0.5, s[4:5]          ; encoding: [0xf0,0x04,0x8a,0x87]
16540xf0,0x04,0x8a,0x87
1655
1656# CHECK: s_or_b64 s[10:11], -4.0, s[4:5]         ; encoding: [0xf7,0x04,0x8a,0x87]
16570xf7,0x04,0x8a,0x87
1658
1659# CHECK: s_or_b64 s[10:11], 0xaf123456, s[4:5]   ; encoding: [0xff,0x04,0x8a,0x87,0x56,0x34,0x12,0xaf]
16600xff,0x04,0x8a,0x87,0x56,0x34,0x12,0xaf
1661
1662# CHECK: s_or_b64 s[10:11], 0x3f717273, s[4:5]   ; encoding: [0xff,0x04,0x8a,0x87,0x73,0x72,0x71,0x3f]
16630xff,0x04,0x8a,0x87,0x73,0x72,0x71,0x3f
1664
1665# CHECK: s_or_b64 s[10:11], s[2:3], s[6:7]       ; encoding: [0x02,0x06,0x8a,0x87]
16660x02,0x06,0x8a,0x87
1667
1668# CHECK: s_or_b64 s[10:11], s[2:3], s[100:101]   ; encoding: [0x02,0x64,0x8a,0x87]
16690x02,0x64,0x8a,0x87
1670
1671# CHECK: s_or_b64 s[10:11], s[2:3], flat_scratch ; encoding: [0x02,0x66,0x8a,0x87]
16720x02,0x66,0x8a,0x87
1673
1674# CHECK: s_or_b64 s[10:11], s[2:3], vcc          ; encoding: [0x02,0x6a,0x8a,0x87]
16750x02,0x6a,0x8a,0x87
1676
1677# CHECK: s_or_b64 s[10:11], s[2:3], exec         ; encoding: [0x02,0x7e,0x8a,0x87]
16780x02,0x7e,0x8a,0x87
1679
1680# CHECK: s_or_b64 s[10:11], s[2:3], 0            ; encoding: [0x02,0x80,0x8a,0x87]
16810x02,0x80,0x8a,0x87
1682
1683# CHECK: s_or_b64 s[10:11], s[2:3], -1           ; encoding: [0x02,0xc1,0x8a,0x87]
16840x02,0xc1,0x8a,0x87
1685
1686# CHECK: s_or_b64 s[10:11], s[2:3], 0.5          ; encoding: [0x02,0xf0,0x8a,0x87]
16870x02,0xf0,0x8a,0x87
1688
1689# CHECK: s_or_b64 s[10:11], s[2:3], -4.0         ; encoding: [0x02,0xf7,0x8a,0x87]
16900x02,0xf7,0x8a,0x87
1691
1692# CHECK: s_or_b64 s[10:11], s[2:3], 0xaf123456   ; encoding: [0x02,0xff,0x8a,0x87,0x56,0x34,0x12,0xaf]
16930x02,0xff,0x8a,0x87,0x56,0x34,0x12,0xaf
1694
1695# CHECK: s_or_b64 s[10:11], s[2:3], 0x3f717273   ; encoding: [0x02,0xff,0x8a,0x87,0x73,0x72,0x71,0x3f]
16960x02,0xff,0x8a,0x87,0x73,0x72,0x71,0x3f
1697
1698# CHECK: s_xor_b32 s5, s1, s2                    ; encoding: [0x01,0x02,0x05,0x88]
16990x01,0x02,0x05,0x88
1700
1701# CHECK: s_xor_b32 s101, s1, s2                  ; encoding: [0x01,0x02,0x65,0x88]
17020x01,0x02,0x65,0x88
1703
1704# CHECK: s_xor_b32 flat_scratch_lo, s1, s2       ; encoding: [0x01,0x02,0x66,0x88]
17050x01,0x02,0x66,0x88
1706
1707# CHECK: s_xor_b32 flat_scratch_hi, s1, s2       ; encoding: [0x01,0x02,0x67,0x88]
17080x01,0x02,0x67,0x88
1709
1710# CHECK: s_xor_b32 vcc_lo, s1, s2                ; encoding: [0x01,0x02,0x6a,0x88]
17110x01,0x02,0x6a,0x88
1712
1713# CHECK: s_xor_b32 vcc_hi, s1, s2                ; encoding: [0x01,0x02,0x6b,0x88]
17140x01,0x02,0x6b,0x88
1715
1716# CHECK: s_xor_b32 m0, s1, s2                    ; encoding: [0x01,0x02,0x7c,0x88]
17170x01,0x02,0x7c,0x88
1718
1719# CHECK: s_xor_b32 exec_lo, s1, s2               ; encoding: [0x01,0x02,0x7e,0x88]
17200x01,0x02,0x7e,0x88
1721
1722# CHECK: s_xor_b32 exec_hi, s1, s2               ; encoding: [0x01,0x02,0x7f,0x88]
17230x01,0x02,0x7f,0x88
1724
1725# CHECK: s_xor_b32 s5, s101, s2                  ; encoding: [0x65,0x02,0x05,0x88]
17260x65,0x02,0x05,0x88
1727
1728# CHECK: s_xor_b32 s5, flat_scratch_lo, s2       ; encoding: [0x66,0x02,0x05,0x88]
17290x66,0x02,0x05,0x88
1730
1731# CHECK: s_xor_b32 s5, flat_scratch_hi, s2       ; encoding: [0x67,0x02,0x05,0x88]
17320x67,0x02,0x05,0x88
1733
1734# CHECK: s_xor_b32 s5, vcc_lo, s2                ; encoding: [0x6a,0x02,0x05,0x88]
17350x6a,0x02,0x05,0x88
1736
1737# CHECK: s_xor_b32 s5, vcc_hi, s2                ; encoding: [0x6b,0x02,0x05,0x88]
17380x6b,0x02,0x05,0x88
1739
1740# CHECK: s_xor_b32 s5, m0, s2                    ; encoding: [0x7c,0x02,0x05,0x88]
17410x7c,0x02,0x05,0x88
1742
1743# CHECK: s_xor_b32 s5, exec_lo, s2               ; encoding: [0x7e,0x02,0x05,0x88]
17440x7e,0x02,0x05,0x88
1745
1746# CHECK: s_xor_b32 s5, exec_hi, s2               ; encoding: [0x7f,0x02,0x05,0x88]
17470x7f,0x02,0x05,0x88
1748
1749# CHECK: s_xor_b32 s5, 0, s2                     ; encoding: [0x80,0x02,0x05,0x88]
17500x80,0x02,0x05,0x88
1751
1752# CHECK: s_xor_b32 s5, -1, s2                    ; encoding: [0xc1,0x02,0x05,0x88]
17530xc1,0x02,0x05,0x88
1754
1755# CHECK: s_xor_b32 s5, 0.5, s2                   ; encoding: [0xf0,0x02,0x05,0x88]
17560xf0,0x02,0x05,0x88
1757
1758# CHECK: s_xor_b32 s5, -4.0, s2                  ; encoding: [0xf7,0x02,0x05,0x88]
17590xf7,0x02,0x05,0x88
1760
1761# CHECK: s_xor_b32 s5, 0xaf123456, s2            ; encoding: [0xff,0x02,0x05,0x88,0x56,0x34,0x12,0xaf]
17620xff,0x02,0x05,0x88,0x56,0x34,0x12,0xaf
1763
1764# CHECK: s_xor_b32 s5, 0x3f717273, s2            ; encoding: [0xff,0x02,0x05,0x88,0x73,0x72,0x71,0x3f]
17650xff,0x02,0x05,0x88,0x73,0x72,0x71,0x3f
1766
1767# CHECK: s_xor_b32 s5, s1, s101                  ; encoding: [0x01,0x65,0x05,0x88]
17680x01,0x65,0x05,0x88
1769
1770# CHECK: s_xor_b32 s5, s1, flat_scratch_lo       ; encoding: [0x01,0x66,0x05,0x88]
17710x01,0x66,0x05,0x88
1772
1773# CHECK: s_xor_b32 s5, s1, flat_scratch_hi       ; encoding: [0x01,0x67,0x05,0x88]
17740x01,0x67,0x05,0x88
1775
1776# CHECK: s_xor_b32 s5, s1, vcc_lo                ; encoding: [0x01,0x6a,0x05,0x88]
17770x01,0x6a,0x05,0x88
1778
1779# CHECK: s_xor_b32 s5, s1, vcc_hi                ; encoding: [0x01,0x6b,0x05,0x88]
17800x01,0x6b,0x05,0x88
1781
1782# CHECK: s_xor_b32 s5, s1, m0                    ; encoding: [0x01,0x7c,0x05,0x88]
17830x01,0x7c,0x05,0x88
1784
1785# CHECK: s_xor_b32 s5, s1, exec_lo               ; encoding: [0x01,0x7e,0x05,0x88]
17860x01,0x7e,0x05,0x88
1787
1788# CHECK: s_xor_b32 s5, s1, exec_hi               ; encoding: [0x01,0x7f,0x05,0x88]
17890x01,0x7f,0x05,0x88
1790
1791# CHECK: s_xor_b32 s5, s1, 0                     ; encoding: [0x01,0x80,0x05,0x88]
17920x01,0x80,0x05,0x88
1793
1794# CHECK: s_xor_b32 s5, s1, -1                    ; encoding: [0x01,0xc1,0x05,0x88]
17950x01,0xc1,0x05,0x88
1796
1797# CHECK: s_xor_b32 s5, s1, 0.5                   ; encoding: [0x01,0xf0,0x05,0x88]
17980x01,0xf0,0x05,0x88
1799
1800# CHECK: s_xor_b32 s5, s1, -4.0                  ; encoding: [0x01,0xf7,0x05,0x88]
18010x01,0xf7,0x05,0x88
1802
1803# CHECK: s_xor_b32 s5, s1, 0xaf123456            ; encoding: [0x01,0xff,0x05,0x88,0x56,0x34,0x12,0xaf]
18040x01,0xff,0x05,0x88,0x56,0x34,0x12,0xaf
1805
1806# CHECK: s_xor_b32 s5, s1, 0x3f717273            ; encoding: [0x01,0xff,0x05,0x88,0x73,0x72,0x71,0x3f]
18070x01,0xff,0x05,0x88,0x73,0x72,0x71,0x3f
1808
1809# CHECK: s_xor_b64 s[10:11], s[2:3], s[4:5]      ; encoding: [0x02,0x04,0x8a,0x88]
18100x02,0x04,0x8a,0x88
1811
1812# CHECK: s_xor_b64 s[12:13], s[2:3], s[4:5]      ; encoding: [0x02,0x04,0x8c,0x88]
18130x02,0x04,0x8c,0x88
1814
1815# CHECK: s_xor_b64 s[100:101], s[2:3], s[4:5]    ; encoding: [0x02,0x04,0xe4,0x88]
18160x02,0x04,0xe4,0x88
1817
1818# CHECK: s_xor_b64 flat_scratch, s[2:3], s[4:5]  ; encoding: [0x02,0x04,0xe6,0x88]
18190x02,0x04,0xe6,0x88
1820
1821# CHECK: s_xor_b64 vcc, s[2:3], s[4:5]           ; encoding: [0x02,0x04,0xea,0x88]
18220x02,0x04,0xea,0x88
1823
1824# CHECK: s_xor_b64 exec, s[2:3], s[4:5]          ; encoding: [0x02,0x04,0xfe,0x88]
18250x02,0x04,0xfe,0x88
1826
1827# CHECK: s_xor_b64 s[10:11], s[4:5], s[4:5]      ; encoding: [0x04,0x04,0x8a,0x88]
18280x04,0x04,0x8a,0x88
1829
1830# CHECK: s_xor_b64 s[10:11], s[100:101], s[4:5]  ; encoding: [0x64,0x04,0x8a,0x88]
18310x64,0x04,0x8a,0x88
1832
1833# CHECK: s_xor_b64 s[10:11], flat_scratch, s[4:5] ; encoding: [0x66,0x04,0x8a,0x88]
18340x66,0x04,0x8a,0x88
1835
1836# CHECK: s_xor_b64 s[10:11], vcc, s[4:5]         ; encoding: [0x6a,0x04,0x8a,0x88]
18370x6a,0x04,0x8a,0x88
1838
1839# CHECK: s_xor_b64 s[10:11], exec, s[4:5]        ; encoding: [0x7e,0x04,0x8a,0x88]
18400x7e,0x04,0x8a,0x88
1841
1842# CHECK: s_xor_b64 s[10:11], 0, s[4:5]           ; encoding: [0x80,0x04,0x8a,0x88]
18430x80,0x04,0x8a,0x88
1844
1845# CHECK: s_xor_b64 s[10:11], -1, s[4:5]          ; encoding: [0xc1,0x04,0x8a,0x88]
18460xc1,0x04,0x8a,0x88
1847
1848# CHECK: s_xor_b64 s[10:11], 0.5, s[4:5]         ; encoding: [0xf0,0x04,0x8a,0x88]
18490xf0,0x04,0x8a,0x88
1850
1851# CHECK: s_xor_b64 s[10:11], -4.0, s[4:5]        ; encoding: [0xf7,0x04,0x8a,0x88]
18520xf7,0x04,0x8a,0x88
1853
1854# CHECK: s_xor_b64 s[10:11], 0xaf123456, s[4:5]  ; encoding: [0xff,0x04,0x8a,0x88,0x56,0x34,0x12,0xaf]
18550xff,0x04,0x8a,0x88,0x56,0x34,0x12,0xaf
1856
1857# CHECK: s_xor_b64 s[10:11], 0x3f717273, s[4:5]  ; encoding: [0xff,0x04,0x8a,0x88,0x73,0x72,0x71,0x3f]
18580xff,0x04,0x8a,0x88,0x73,0x72,0x71,0x3f
1859
1860# CHECK: s_xor_b64 s[10:11], s[2:3], s[6:7]      ; encoding: [0x02,0x06,0x8a,0x88]
18610x02,0x06,0x8a,0x88
1862
1863# CHECK: s_xor_b64 s[10:11], s[2:3], s[100:101]  ; encoding: [0x02,0x64,0x8a,0x88]
18640x02,0x64,0x8a,0x88
1865
1866# CHECK: s_xor_b64 s[10:11], s[2:3], flat_scratch ; encoding: [0x02,0x66,0x8a,0x88]
18670x02,0x66,0x8a,0x88
1868
1869# CHECK: s_xor_b64 s[10:11], s[2:3], vcc         ; encoding: [0x02,0x6a,0x8a,0x88]
18700x02,0x6a,0x8a,0x88
1871
1872# CHECK: s_xor_b64 s[10:11], s[2:3], exec        ; encoding: [0x02,0x7e,0x8a,0x88]
18730x02,0x7e,0x8a,0x88
1874
1875# CHECK: s_xor_b64 s[10:11], s[2:3], 0           ; encoding: [0x02,0x80,0x8a,0x88]
18760x02,0x80,0x8a,0x88
1877
1878# CHECK: s_xor_b64 s[10:11], s[2:3], -1          ; encoding: [0x02,0xc1,0x8a,0x88]
18790x02,0xc1,0x8a,0x88
1880
1881# CHECK: s_xor_b64 s[10:11], s[2:3], 0.5         ; encoding: [0x02,0xf0,0x8a,0x88]
18820x02,0xf0,0x8a,0x88
1883
1884# CHECK: s_xor_b64 s[10:11], s[2:3], -4.0        ; encoding: [0x02,0xf7,0x8a,0x88]
18850x02,0xf7,0x8a,0x88
1886
1887# CHECK: s_xor_b64 s[10:11], s[2:3], 0xaf123456  ; encoding: [0x02,0xff,0x8a,0x88,0x56,0x34,0x12,0xaf]
18880x02,0xff,0x8a,0x88,0x56,0x34,0x12,0xaf
1889
1890# CHECK: s_xor_b64 s[10:11], s[2:3], 0x3f717273  ; encoding: [0x02,0xff,0x8a,0x88,0x73,0x72,0x71,0x3f]
18910x02,0xff,0x8a,0x88,0x73,0x72,0x71,0x3f
1892
1893# CHECK: s_andn2_b32 s5, s1, s2                  ; encoding: [0x01,0x02,0x05,0x89]
18940x01,0x02,0x05,0x89
1895
1896# CHECK: s_andn2_b32 s101, s1, s2                ; encoding: [0x01,0x02,0x65,0x89]
18970x01,0x02,0x65,0x89
1898
1899# CHECK: s_andn2_b32 flat_scratch_lo, s1, s2     ; encoding: [0x01,0x02,0x66,0x89]
19000x01,0x02,0x66,0x89
1901
1902# CHECK: s_andn2_b32 flat_scratch_hi, s1, s2     ; encoding: [0x01,0x02,0x67,0x89]
19030x01,0x02,0x67,0x89
1904
1905# CHECK: s_andn2_b32 vcc_lo, s1, s2              ; encoding: [0x01,0x02,0x6a,0x89]
19060x01,0x02,0x6a,0x89
1907
1908# CHECK: s_andn2_b32 vcc_hi, s1, s2              ; encoding: [0x01,0x02,0x6b,0x89]
19090x01,0x02,0x6b,0x89
1910
1911# CHECK: s_andn2_b32 m0, s1, s2                  ; encoding: [0x01,0x02,0x7c,0x89]
19120x01,0x02,0x7c,0x89
1913
1914# CHECK: s_andn2_b32 exec_lo, s1, s2             ; encoding: [0x01,0x02,0x7e,0x89]
19150x01,0x02,0x7e,0x89
1916
1917# CHECK: s_andn2_b32 exec_hi, s1, s2             ; encoding: [0x01,0x02,0x7f,0x89]
19180x01,0x02,0x7f,0x89
1919
1920# CHECK: s_andn2_b32 s5, s101, s2                ; encoding: [0x65,0x02,0x05,0x89]
19210x65,0x02,0x05,0x89
1922
1923# CHECK: s_andn2_b32 s5, flat_scratch_lo, s2     ; encoding: [0x66,0x02,0x05,0x89]
19240x66,0x02,0x05,0x89
1925
1926# CHECK: s_andn2_b32 s5, flat_scratch_hi, s2     ; encoding: [0x67,0x02,0x05,0x89]
19270x67,0x02,0x05,0x89
1928
1929# CHECK: s_andn2_b32 s5, vcc_lo, s2              ; encoding: [0x6a,0x02,0x05,0x89]
19300x6a,0x02,0x05,0x89
1931
1932# CHECK: s_andn2_b32 s5, vcc_hi, s2              ; encoding: [0x6b,0x02,0x05,0x89]
19330x6b,0x02,0x05,0x89
1934
1935# CHECK: s_andn2_b32 s5, m0, s2                  ; encoding: [0x7c,0x02,0x05,0x89]
19360x7c,0x02,0x05,0x89
1937
1938# CHECK: s_andn2_b32 s5, exec_lo, s2             ; encoding: [0x7e,0x02,0x05,0x89]
19390x7e,0x02,0x05,0x89
1940
1941# CHECK: s_andn2_b32 s5, exec_hi, s2             ; encoding: [0x7f,0x02,0x05,0x89]
19420x7f,0x02,0x05,0x89
1943
1944# CHECK: s_andn2_b32 s5, 0, s2                   ; encoding: [0x80,0x02,0x05,0x89]
19450x80,0x02,0x05,0x89
1946
1947# CHECK: s_andn2_b32 s5, -1, s2                  ; encoding: [0xc1,0x02,0x05,0x89]
19480xc1,0x02,0x05,0x89
1949
1950# CHECK: s_andn2_b32 s5, 0.5, s2                 ; encoding: [0xf0,0x02,0x05,0x89]
19510xf0,0x02,0x05,0x89
1952
1953# CHECK: s_andn2_b32 s5, -4.0, s2                ; encoding: [0xf7,0x02,0x05,0x89]
19540xf7,0x02,0x05,0x89
1955
1956# CHECK: s_andn2_b32 s5, 0xaf123456, s2          ; encoding: [0xff,0x02,0x05,0x89,0x56,0x34,0x12,0xaf]
19570xff,0x02,0x05,0x89,0x56,0x34,0x12,0xaf
1958
1959# CHECK: s_andn2_b32 s5, 0x3f717273, s2          ; encoding: [0xff,0x02,0x05,0x89,0x73,0x72,0x71,0x3f]
19600xff,0x02,0x05,0x89,0x73,0x72,0x71,0x3f
1961
1962# CHECK: s_andn2_b32 s5, s1, s101                ; encoding: [0x01,0x65,0x05,0x89]
19630x01,0x65,0x05,0x89
1964
1965# CHECK: s_andn2_b32 s5, s1, flat_scratch_lo     ; encoding: [0x01,0x66,0x05,0x89]
19660x01,0x66,0x05,0x89
1967
1968# CHECK: s_andn2_b32 s5, s1, flat_scratch_hi     ; encoding: [0x01,0x67,0x05,0x89]
19690x01,0x67,0x05,0x89
1970
1971# CHECK: s_andn2_b32 s5, s1, vcc_lo              ; encoding: [0x01,0x6a,0x05,0x89]
19720x01,0x6a,0x05,0x89
1973
1974# CHECK: s_andn2_b32 s5, s1, vcc_hi              ; encoding: [0x01,0x6b,0x05,0x89]
19750x01,0x6b,0x05,0x89
1976
1977# CHECK: s_andn2_b32 s5, s1, m0                  ; encoding: [0x01,0x7c,0x05,0x89]
19780x01,0x7c,0x05,0x89
1979
1980# CHECK: s_andn2_b32 s5, s1, exec_lo             ; encoding: [0x01,0x7e,0x05,0x89]
19810x01,0x7e,0x05,0x89
1982
1983# CHECK: s_andn2_b32 s5, s1, exec_hi             ; encoding: [0x01,0x7f,0x05,0x89]
19840x01,0x7f,0x05,0x89
1985
1986# CHECK: s_andn2_b32 s5, s1, 0                   ; encoding: [0x01,0x80,0x05,0x89]
19870x01,0x80,0x05,0x89
1988
1989# CHECK: s_andn2_b32 s5, s1, -1                  ; encoding: [0x01,0xc1,0x05,0x89]
19900x01,0xc1,0x05,0x89
1991
1992# CHECK: s_andn2_b32 s5, s1, 0.5                 ; encoding: [0x01,0xf0,0x05,0x89]
19930x01,0xf0,0x05,0x89
1994
1995# CHECK: s_andn2_b32 s5, s1, -4.0                ; encoding: [0x01,0xf7,0x05,0x89]
19960x01,0xf7,0x05,0x89
1997
1998# CHECK: s_andn2_b32 s5, s1, 0xaf123456          ; encoding: [0x01,0xff,0x05,0x89,0x56,0x34,0x12,0xaf]
19990x01,0xff,0x05,0x89,0x56,0x34,0x12,0xaf
2000
2001# CHECK: s_andn2_b32 s5, s1, 0x3f717273          ; encoding: [0x01,0xff,0x05,0x89,0x73,0x72,0x71,0x3f]
20020x01,0xff,0x05,0x89,0x73,0x72,0x71,0x3f
2003
2004# CHECK: s_andn2_b64 s[10:11], s[2:3], s[4:5]    ; encoding: [0x02,0x04,0x8a,0x89]
20050x02,0x04,0x8a,0x89
2006
2007# CHECK: s_andn2_b64 s[12:13], s[2:3], s[4:5]    ; encoding: [0x02,0x04,0x8c,0x89]
20080x02,0x04,0x8c,0x89
2009
2010# CHECK: s_andn2_b64 s[100:101], s[2:3], s[4:5]  ; encoding: [0x02,0x04,0xe4,0x89]
20110x02,0x04,0xe4,0x89
2012
2013# CHECK: s_andn2_b64 flat_scratch, s[2:3], s[4:5] ; encoding: [0x02,0x04,0xe6,0x89]
20140x02,0x04,0xe6,0x89
2015
2016# CHECK: s_andn2_b64 vcc, s[2:3], s[4:5]         ; encoding: [0x02,0x04,0xea,0x89]
20170x02,0x04,0xea,0x89
2018
2019# CHECK: s_andn2_b64 exec, s[2:3], s[4:5]        ; encoding: [0x02,0x04,0xfe,0x89]
20200x02,0x04,0xfe,0x89
2021
2022# CHECK: s_andn2_b64 s[10:11], s[4:5], s[4:5]    ; encoding: [0x04,0x04,0x8a,0x89]
20230x04,0x04,0x8a,0x89
2024
2025# CHECK: s_andn2_b64 s[10:11], s[100:101], s[4:5] ; encoding: [0x64,0x04,0x8a,0x89]
20260x64,0x04,0x8a,0x89
2027
2028# CHECK: s_andn2_b64 s[10:11], flat_scratch, s[4:5] ; encoding: [0x66,0x04,0x8a,0x89]
20290x66,0x04,0x8a,0x89
2030
2031# CHECK: s_andn2_b64 s[10:11], vcc, s[4:5]       ; encoding: [0x6a,0x04,0x8a,0x89]
20320x6a,0x04,0x8a,0x89
2033
2034# CHECK: s_andn2_b64 s[10:11], exec, s[4:5]      ; encoding: [0x7e,0x04,0x8a,0x89]
20350x7e,0x04,0x8a,0x89
2036
2037# CHECK: s_andn2_b64 s[10:11], 0, s[4:5]         ; encoding: [0x80,0x04,0x8a,0x89]
20380x80,0x04,0x8a,0x89
2039
2040# CHECK: s_andn2_b64 s[10:11], -1, s[4:5]        ; encoding: [0xc1,0x04,0x8a,0x89]
20410xc1,0x04,0x8a,0x89
2042
2043# CHECK: s_andn2_b64 s[10:11], 0.5, s[4:5]       ; encoding: [0xf0,0x04,0x8a,0x89]
20440xf0,0x04,0x8a,0x89
2045
2046# CHECK: s_andn2_b64 s[10:11], -4.0, s[4:5]      ; encoding: [0xf7,0x04,0x8a,0x89]
20470xf7,0x04,0x8a,0x89
2048
2049# CHECK: s_andn2_b64 s[10:11], 0xaf123456, s[4:5] ; encoding: [0xff,0x04,0x8a,0x89,0x56,0x34,0x12,0xaf]
20500xff,0x04,0x8a,0x89,0x56,0x34,0x12,0xaf
2051
2052# CHECK: s_andn2_b64 s[10:11], 0x3f717273, s[4:5] ; encoding: [0xff,0x04,0x8a,0x89,0x73,0x72,0x71,0x3f]
20530xff,0x04,0x8a,0x89,0x73,0x72,0x71,0x3f
2054
2055# CHECK: s_andn2_b64 s[10:11], s[2:3], s[6:7]    ; encoding: [0x02,0x06,0x8a,0x89]
20560x02,0x06,0x8a,0x89
2057
2058# CHECK: s_andn2_b64 s[10:11], s[2:3], s[100:101] ; encoding: [0x02,0x64,0x8a,0x89]
20590x02,0x64,0x8a,0x89
2060
2061# CHECK: s_andn2_b64 s[10:11], s[2:3], flat_scratch ; encoding: [0x02,0x66,0x8a,0x89]
20620x02,0x66,0x8a,0x89
2063
2064# CHECK: s_andn2_b64 s[10:11], s[2:3], vcc       ; encoding: [0x02,0x6a,0x8a,0x89]
20650x02,0x6a,0x8a,0x89
2066
2067# CHECK: s_andn2_b64 s[10:11], s[2:3], exec      ; encoding: [0x02,0x7e,0x8a,0x89]
20680x02,0x7e,0x8a,0x89
2069
2070# CHECK: s_andn2_b64 s[10:11], s[2:3], 0         ; encoding: [0x02,0x80,0x8a,0x89]
20710x02,0x80,0x8a,0x89
2072
2073# CHECK: s_andn2_b64 s[10:11], s[2:3], -1        ; encoding: [0x02,0xc1,0x8a,0x89]
20740x02,0xc1,0x8a,0x89
2075
2076# CHECK: s_andn2_b64 s[10:11], s[2:3], 0.5       ; encoding: [0x02,0xf0,0x8a,0x89]
20770x02,0xf0,0x8a,0x89
2078
2079# CHECK: s_andn2_b64 s[10:11], s[2:3], -4.0      ; encoding: [0x02,0xf7,0x8a,0x89]
20800x02,0xf7,0x8a,0x89
2081
2082# CHECK: s_andn2_b64 s[10:11], s[2:3], 0xaf123456 ; encoding: [0x02,0xff,0x8a,0x89,0x56,0x34,0x12,0xaf]
20830x02,0xff,0x8a,0x89,0x56,0x34,0x12,0xaf
2084
2085# CHECK: s_andn2_b64 s[10:11], s[2:3], 0x3f717273 ; encoding: [0x02,0xff,0x8a,0x89,0x73,0x72,0x71,0x3f]
20860x02,0xff,0x8a,0x89,0x73,0x72,0x71,0x3f
2087
2088# CHECK: s_orn2_b32 s5, s1, s2                   ; encoding: [0x01,0x02,0x05,0x8a]
20890x01,0x02,0x05,0x8a
2090
2091# CHECK: s_orn2_b32 s101, s1, s2                 ; encoding: [0x01,0x02,0x65,0x8a]
20920x01,0x02,0x65,0x8a
2093
2094# CHECK: s_orn2_b32 flat_scratch_lo, s1, s2      ; encoding: [0x01,0x02,0x66,0x8a]
20950x01,0x02,0x66,0x8a
2096
2097# CHECK: s_orn2_b32 flat_scratch_hi, s1, s2      ; encoding: [0x01,0x02,0x67,0x8a]
20980x01,0x02,0x67,0x8a
2099
2100# CHECK: s_orn2_b32 vcc_lo, s1, s2               ; encoding: [0x01,0x02,0x6a,0x8a]
21010x01,0x02,0x6a,0x8a
2102
2103# CHECK: s_orn2_b32 vcc_hi, s1, s2               ; encoding: [0x01,0x02,0x6b,0x8a]
21040x01,0x02,0x6b,0x8a
2105
2106# CHECK: s_orn2_b32 m0, s1, s2                   ; encoding: [0x01,0x02,0x7c,0x8a]
21070x01,0x02,0x7c,0x8a
2108
2109# CHECK: s_orn2_b32 exec_lo, s1, s2              ; encoding: [0x01,0x02,0x7e,0x8a]
21100x01,0x02,0x7e,0x8a
2111
2112# CHECK: s_orn2_b32 exec_hi, s1, s2              ; encoding: [0x01,0x02,0x7f,0x8a]
21130x01,0x02,0x7f,0x8a
2114
2115# CHECK: s_orn2_b32 s5, s101, s2                 ; encoding: [0x65,0x02,0x05,0x8a]
21160x65,0x02,0x05,0x8a
2117
2118# CHECK: s_orn2_b32 s5, flat_scratch_lo, s2      ; encoding: [0x66,0x02,0x05,0x8a]
21190x66,0x02,0x05,0x8a
2120
2121# CHECK: s_orn2_b32 s5, flat_scratch_hi, s2      ; encoding: [0x67,0x02,0x05,0x8a]
21220x67,0x02,0x05,0x8a
2123
2124# CHECK: s_orn2_b32 s5, vcc_lo, s2               ; encoding: [0x6a,0x02,0x05,0x8a]
21250x6a,0x02,0x05,0x8a
2126
2127# CHECK: s_orn2_b32 s5, vcc_hi, s2               ; encoding: [0x6b,0x02,0x05,0x8a]
21280x6b,0x02,0x05,0x8a
2129
2130# CHECK: s_orn2_b32 s5, m0, s2                   ; encoding: [0x7c,0x02,0x05,0x8a]
21310x7c,0x02,0x05,0x8a
2132
2133# CHECK: s_orn2_b32 s5, exec_lo, s2              ; encoding: [0x7e,0x02,0x05,0x8a]
21340x7e,0x02,0x05,0x8a
2135
2136# CHECK: s_orn2_b32 s5, exec_hi, s2              ; encoding: [0x7f,0x02,0x05,0x8a]
21370x7f,0x02,0x05,0x8a
2138
2139# CHECK: s_orn2_b32 s5, 0, s2                    ; encoding: [0x80,0x02,0x05,0x8a]
21400x80,0x02,0x05,0x8a
2141
2142# CHECK: s_orn2_b32 s5, -1, s2                   ; encoding: [0xc1,0x02,0x05,0x8a]
21430xc1,0x02,0x05,0x8a
2144
2145# CHECK: s_orn2_b32 s5, 0.5, s2                  ; encoding: [0xf0,0x02,0x05,0x8a]
21460xf0,0x02,0x05,0x8a
2147
2148# CHECK: s_orn2_b32 s5, -4.0, s2                 ; encoding: [0xf7,0x02,0x05,0x8a]
21490xf7,0x02,0x05,0x8a
2150
2151# CHECK: s_orn2_b32 s5, 0xaf123456, s2           ; encoding: [0xff,0x02,0x05,0x8a,0x56,0x34,0x12,0xaf]
21520xff,0x02,0x05,0x8a,0x56,0x34,0x12,0xaf
2153
2154# CHECK: s_orn2_b32 s5, 0x3f717273, s2           ; encoding: [0xff,0x02,0x05,0x8a,0x73,0x72,0x71,0x3f]
21550xff,0x02,0x05,0x8a,0x73,0x72,0x71,0x3f
2156
2157# CHECK: s_orn2_b32 s5, s1, s101                 ; encoding: [0x01,0x65,0x05,0x8a]
21580x01,0x65,0x05,0x8a
2159
2160# CHECK: s_orn2_b32 s5, s1, flat_scratch_lo      ; encoding: [0x01,0x66,0x05,0x8a]
21610x01,0x66,0x05,0x8a
2162
2163# CHECK: s_orn2_b32 s5, s1, flat_scratch_hi      ; encoding: [0x01,0x67,0x05,0x8a]
21640x01,0x67,0x05,0x8a
2165
2166# CHECK: s_orn2_b32 s5, s1, vcc_lo               ; encoding: [0x01,0x6a,0x05,0x8a]
21670x01,0x6a,0x05,0x8a
2168
2169# CHECK: s_orn2_b32 s5, s1, vcc_hi               ; encoding: [0x01,0x6b,0x05,0x8a]
21700x01,0x6b,0x05,0x8a
2171
2172# CHECK: s_orn2_b32 s5, s1, m0                   ; encoding: [0x01,0x7c,0x05,0x8a]
21730x01,0x7c,0x05,0x8a
2174
2175# CHECK: s_orn2_b32 s5, s1, exec_lo              ; encoding: [0x01,0x7e,0x05,0x8a]
21760x01,0x7e,0x05,0x8a
2177
2178# CHECK: s_orn2_b32 s5, s1, exec_hi              ; encoding: [0x01,0x7f,0x05,0x8a]
21790x01,0x7f,0x05,0x8a
2180
2181# CHECK: s_orn2_b32 s5, s1, 0                    ; encoding: [0x01,0x80,0x05,0x8a]
21820x01,0x80,0x05,0x8a
2183
2184# CHECK: s_orn2_b32 s5, s1, -1                   ; encoding: [0x01,0xc1,0x05,0x8a]
21850x01,0xc1,0x05,0x8a
2186
2187# CHECK: s_orn2_b32 s5, s1, 0.5                  ; encoding: [0x01,0xf0,0x05,0x8a]
21880x01,0xf0,0x05,0x8a
2189
2190# CHECK: s_orn2_b32 s5, s1, -4.0                 ; encoding: [0x01,0xf7,0x05,0x8a]
21910x01,0xf7,0x05,0x8a
2192
2193# CHECK: s_orn2_b32 s5, s1, 0xaf123456           ; encoding: [0x01,0xff,0x05,0x8a,0x56,0x34,0x12,0xaf]
21940x01,0xff,0x05,0x8a,0x56,0x34,0x12,0xaf
2195
2196# CHECK: s_orn2_b32 s5, s1, 0x3f717273           ; encoding: [0x01,0xff,0x05,0x8a,0x73,0x72,0x71,0x3f]
21970x01,0xff,0x05,0x8a,0x73,0x72,0x71,0x3f
2198
2199# CHECK: s_orn2_b64 s[10:11], s[2:3], s[4:5]     ; encoding: [0x02,0x04,0x8a,0x8a]
22000x02,0x04,0x8a,0x8a
2201
2202# CHECK: s_orn2_b64 s[12:13], s[2:3], s[4:5]     ; encoding: [0x02,0x04,0x8c,0x8a]
22030x02,0x04,0x8c,0x8a
2204
2205# CHECK: s_orn2_b64 s[100:101], s[2:3], s[4:5]   ; encoding: [0x02,0x04,0xe4,0x8a]
22060x02,0x04,0xe4,0x8a
2207
2208# CHECK: s_orn2_b64 flat_scratch, s[2:3], s[4:5] ; encoding: [0x02,0x04,0xe6,0x8a]
22090x02,0x04,0xe6,0x8a
2210
2211# CHECK: s_orn2_b64 vcc, s[2:3], s[4:5]          ; encoding: [0x02,0x04,0xea,0x8a]
22120x02,0x04,0xea,0x8a
2213
2214# CHECK: s_orn2_b64 exec, s[2:3], s[4:5]         ; encoding: [0x02,0x04,0xfe,0x8a]
22150x02,0x04,0xfe,0x8a
2216
2217# CHECK: s_orn2_b64 s[10:11], s[4:5], s[4:5]     ; encoding: [0x04,0x04,0x8a,0x8a]
22180x04,0x04,0x8a,0x8a
2219
2220# CHECK: s_orn2_b64 s[10:11], s[100:101], s[4:5] ; encoding: [0x64,0x04,0x8a,0x8a]
22210x64,0x04,0x8a,0x8a
2222
2223# CHECK: s_orn2_b64 s[10:11], flat_scratch, s[4:5] ; encoding: [0x66,0x04,0x8a,0x8a]
22240x66,0x04,0x8a,0x8a
2225
2226# CHECK: s_orn2_b64 s[10:11], vcc, s[4:5]        ; encoding: [0x6a,0x04,0x8a,0x8a]
22270x6a,0x04,0x8a,0x8a
2228
2229# CHECK: s_orn2_b64 s[10:11], exec, s[4:5]       ; encoding: [0x7e,0x04,0x8a,0x8a]
22300x7e,0x04,0x8a,0x8a
2231
2232# CHECK: s_orn2_b64 s[10:11], 0, s[4:5]          ; encoding: [0x80,0x04,0x8a,0x8a]
22330x80,0x04,0x8a,0x8a
2234
2235# CHECK: s_orn2_b64 s[10:11], -1, s[4:5]         ; encoding: [0xc1,0x04,0x8a,0x8a]
22360xc1,0x04,0x8a,0x8a
2237
2238# CHECK: s_orn2_b64 s[10:11], 0.5, s[4:5]        ; encoding: [0xf0,0x04,0x8a,0x8a]
22390xf0,0x04,0x8a,0x8a
2240
2241# CHECK: s_orn2_b64 s[10:11], -4.0, s[4:5]       ; encoding: [0xf7,0x04,0x8a,0x8a]
22420xf7,0x04,0x8a,0x8a
2243
2244# CHECK: s_orn2_b64 s[10:11], 0xaf123456, s[4:5] ; encoding: [0xff,0x04,0x8a,0x8a,0x56,0x34,0x12,0xaf]
22450xff,0x04,0x8a,0x8a,0x56,0x34,0x12,0xaf
2246
2247# CHECK: s_orn2_b64 s[10:11], 0x3f717273, s[4:5] ; encoding: [0xff,0x04,0x8a,0x8a,0x73,0x72,0x71,0x3f]
22480xff,0x04,0x8a,0x8a,0x73,0x72,0x71,0x3f
2249
2250# CHECK: s_orn2_b64 s[10:11], s[2:3], s[6:7]     ; encoding: [0x02,0x06,0x8a,0x8a]
22510x02,0x06,0x8a,0x8a
2252
2253# CHECK: s_orn2_b64 s[10:11], s[2:3], s[100:101] ; encoding: [0x02,0x64,0x8a,0x8a]
22540x02,0x64,0x8a,0x8a
2255
2256# CHECK: s_orn2_b64 s[10:11], s[2:3], flat_scratch ; encoding: [0x02,0x66,0x8a,0x8a]
22570x02,0x66,0x8a,0x8a
2258
2259# CHECK: s_orn2_b64 s[10:11], s[2:3], vcc        ; encoding: [0x02,0x6a,0x8a,0x8a]
22600x02,0x6a,0x8a,0x8a
2261
2262# CHECK: s_orn2_b64 s[10:11], s[2:3], exec       ; encoding: [0x02,0x7e,0x8a,0x8a]
22630x02,0x7e,0x8a,0x8a
2264
2265# CHECK: s_orn2_b64 s[10:11], s[2:3], 0          ; encoding: [0x02,0x80,0x8a,0x8a]
22660x02,0x80,0x8a,0x8a
2267
2268# CHECK: s_orn2_b64 s[10:11], s[2:3], -1         ; encoding: [0x02,0xc1,0x8a,0x8a]
22690x02,0xc1,0x8a,0x8a
2270
2271# CHECK: s_orn2_b64 s[10:11], s[2:3], 0.5        ; encoding: [0x02,0xf0,0x8a,0x8a]
22720x02,0xf0,0x8a,0x8a
2273
2274# CHECK: s_orn2_b64 s[10:11], s[2:3], -4.0       ; encoding: [0x02,0xf7,0x8a,0x8a]
22750x02,0xf7,0x8a,0x8a
2276
2277# CHECK: s_orn2_b64 s[10:11], s[2:3], 0xaf123456 ; encoding: [0x02,0xff,0x8a,0x8a,0x56,0x34,0x12,0xaf]
22780x02,0xff,0x8a,0x8a,0x56,0x34,0x12,0xaf
2279
2280# CHECK: s_orn2_b64 s[10:11], s[2:3], 0x3f717273 ; encoding: [0x02,0xff,0x8a,0x8a,0x73,0x72,0x71,0x3f]
22810x02,0xff,0x8a,0x8a,0x73,0x72,0x71,0x3f
2282
2283# CHECK: s_nand_b32 s5, s1, s2                   ; encoding: [0x01,0x02,0x05,0x8b]
22840x01,0x02,0x05,0x8b
2285
2286# CHECK: s_nand_b32 s101, s1, s2                 ; encoding: [0x01,0x02,0x65,0x8b]
22870x01,0x02,0x65,0x8b
2288
2289# CHECK: s_nand_b32 flat_scratch_lo, s1, s2      ; encoding: [0x01,0x02,0x66,0x8b]
22900x01,0x02,0x66,0x8b
2291
2292# CHECK: s_nand_b32 flat_scratch_hi, s1, s2      ; encoding: [0x01,0x02,0x67,0x8b]
22930x01,0x02,0x67,0x8b
2294
2295# CHECK: s_nand_b32 vcc_lo, s1, s2               ; encoding: [0x01,0x02,0x6a,0x8b]
22960x01,0x02,0x6a,0x8b
2297
2298# CHECK: s_nand_b32 vcc_hi, s1, s2               ; encoding: [0x01,0x02,0x6b,0x8b]
22990x01,0x02,0x6b,0x8b
2300
2301# CHECK: s_nand_b32 m0, s1, s2                   ; encoding: [0x01,0x02,0x7c,0x8b]
23020x01,0x02,0x7c,0x8b
2303
2304# CHECK: s_nand_b32 exec_lo, s1, s2              ; encoding: [0x01,0x02,0x7e,0x8b]
23050x01,0x02,0x7e,0x8b
2306
2307# CHECK: s_nand_b32 exec_hi, s1, s2              ; encoding: [0x01,0x02,0x7f,0x8b]
23080x01,0x02,0x7f,0x8b
2309
2310# CHECK: s_nand_b32 s5, s101, s2                 ; encoding: [0x65,0x02,0x05,0x8b]
23110x65,0x02,0x05,0x8b
2312
2313# CHECK: s_nand_b32 s5, flat_scratch_lo, s2      ; encoding: [0x66,0x02,0x05,0x8b]
23140x66,0x02,0x05,0x8b
2315
2316# CHECK: s_nand_b32 s5, flat_scratch_hi, s2      ; encoding: [0x67,0x02,0x05,0x8b]
23170x67,0x02,0x05,0x8b
2318
2319# CHECK: s_nand_b32 s5, vcc_lo, s2               ; encoding: [0x6a,0x02,0x05,0x8b]
23200x6a,0x02,0x05,0x8b
2321
2322# CHECK: s_nand_b32 s5, vcc_hi, s2               ; encoding: [0x6b,0x02,0x05,0x8b]
23230x6b,0x02,0x05,0x8b
2324
2325# CHECK: s_nand_b32 s5, m0, s2                   ; encoding: [0x7c,0x02,0x05,0x8b]
23260x7c,0x02,0x05,0x8b
2327
2328# CHECK: s_nand_b32 s5, exec_lo, s2              ; encoding: [0x7e,0x02,0x05,0x8b]
23290x7e,0x02,0x05,0x8b
2330
2331# CHECK: s_nand_b32 s5, exec_hi, s2              ; encoding: [0x7f,0x02,0x05,0x8b]
23320x7f,0x02,0x05,0x8b
2333
2334# CHECK: s_nand_b32 s5, 0, s2                    ; encoding: [0x80,0x02,0x05,0x8b]
23350x80,0x02,0x05,0x8b
2336
2337# CHECK: s_nand_b32 s5, -1, s2                   ; encoding: [0xc1,0x02,0x05,0x8b]
23380xc1,0x02,0x05,0x8b
2339
2340# CHECK: s_nand_b32 s5, 0.5, s2                  ; encoding: [0xf0,0x02,0x05,0x8b]
23410xf0,0x02,0x05,0x8b
2342
2343# CHECK: s_nand_b32 s5, -4.0, s2                 ; encoding: [0xf7,0x02,0x05,0x8b]
23440xf7,0x02,0x05,0x8b
2345
2346# CHECK: s_nand_b32 s5, 0xaf123456, s2           ; encoding: [0xff,0x02,0x05,0x8b,0x56,0x34,0x12,0xaf]
23470xff,0x02,0x05,0x8b,0x56,0x34,0x12,0xaf
2348
2349# CHECK: s_nand_b32 s5, 0x3f717273, s2           ; encoding: [0xff,0x02,0x05,0x8b,0x73,0x72,0x71,0x3f]
23500xff,0x02,0x05,0x8b,0x73,0x72,0x71,0x3f
2351
2352# CHECK: s_nand_b32 s5, s1, s101                 ; encoding: [0x01,0x65,0x05,0x8b]
23530x01,0x65,0x05,0x8b
2354
2355# CHECK: s_nand_b32 s5, s1, flat_scratch_lo      ; encoding: [0x01,0x66,0x05,0x8b]
23560x01,0x66,0x05,0x8b
2357
2358# CHECK: s_nand_b32 s5, s1, flat_scratch_hi      ; encoding: [0x01,0x67,0x05,0x8b]
23590x01,0x67,0x05,0x8b
2360
2361# CHECK: s_nand_b32 s5, s1, vcc_lo               ; encoding: [0x01,0x6a,0x05,0x8b]
23620x01,0x6a,0x05,0x8b
2363
2364# CHECK: s_nand_b32 s5, s1, vcc_hi               ; encoding: [0x01,0x6b,0x05,0x8b]
23650x01,0x6b,0x05,0x8b
2366
2367# CHECK: s_nand_b32 s5, s1, m0                   ; encoding: [0x01,0x7c,0x05,0x8b]
23680x01,0x7c,0x05,0x8b
2369
2370# CHECK: s_nand_b32 s5, s1, exec_lo              ; encoding: [0x01,0x7e,0x05,0x8b]
23710x01,0x7e,0x05,0x8b
2372
2373# CHECK: s_nand_b32 s5, s1, exec_hi              ; encoding: [0x01,0x7f,0x05,0x8b]
23740x01,0x7f,0x05,0x8b
2375
2376# CHECK: s_nand_b32 s5, s1, 0                    ; encoding: [0x01,0x80,0x05,0x8b]
23770x01,0x80,0x05,0x8b
2378
2379# CHECK: s_nand_b32 s5, s1, -1                   ; encoding: [0x01,0xc1,0x05,0x8b]
23800x01,0xc1,0x05,0x8b
2381
2382# CHECK: s_nand_b32 s5, s1, 0.5                  ; encoding: [0x01,0xf0,0x05,0x8b]
23830x01,0xf0,0x05,0x8b
2384
2385# CHECK: s_nand_b32 s5, s1, -4.0                 ; encoding: [0x01,0xf7,0x05,0x8b]
23860x01,0xf7,0x05,0x8b
2387
2388# CHECK: s_nand_b32 s5, s1, 0xaf123456           ; encoding: [0x01,0xff,0x05,0x8b,0x56,0x34,0x12,0xaf]
23890x01,0xff,0x05,0x8b,0x56,0x34,0x12,0xaf
2390
2391# CHECK: s_nand_b32 s5, s1, 0x3f717273           ; encoding: [0x01,0xff,0x05,0x8b,0x73,0x72,0x71,0x3f]
23920x01,0xff,0x05,0x8b,0x73,0x72,0x71,0x3f
2393
2394# CHECK: s_nand_b64 s[10:11], s[2:3], s[4:5]     ; encoding: [0x02,0x04,0x8a,0x8b]
23950x02,0x04,0x8a,0x8b
2396
2397# CHECK: s_nand_b64 s[12:13], s[2:3], s[4:5]     ; encoding: [0x02,0x04,0x8c,0x8b]
23980x02,0x04,0x8c,0x8b
2399
2400# CHECK: s_nand_b64 s[100:101], s[2:3], s[4:5]   ; encoding: [0x02,0x04,0xe4,0x8b]
24010x02,0x04,0xe4,0x8b
2402
2403# CHECK: s_nand_b64 flat_scratch, s[2:3], s[4:5] ; encoding: [0x02,0x04,0xe6,0x8b]
24040x02,0x04,0xe6,0x8b
2405
2406# CHECK: s_nand_b64 vcc, s[2:3], s[4:5]          ; encoding: [0x02,0x04,0xea,0x8b]
24070x02,0x04,0xea,0x8b
2408
2409# CHECK: s_nand_b64 exec, s[2:3], s[4:5]         ; encoding: [0x02,0x04,0xfe,0x8b]
24100x02,0x04,0xfe,0x8b
2411
2412# CHECK: s_nand_b64 s[10:11], s[4:5], s[4:5]     ; encoding: [0x04,0x04,0x8a,0x8b]
24130x04,0x04,0x8a,0x8b
2414
2415# CHECK: s_nand_b64 s[10:11], s[100:101], s[4:5] ; encoding: [0x64,0x04,0x8a,0x8b]
24160x64,0x04,0x8a,0x8b
2417
2418# CHECK: s_nand_b64 s[10:11], flat_scratch, s[4:5] ; encoding: [0x66,0x04,0x8a,0x8b]
24190x66,0x04,0x8a,0x8b
2420
2421# CHECK: s_nand_b64 s[10:11], vcc, s[4:5]        ; encoding: [0x6a,0x04,0x8a,0x8b]
24220x6a,0x04,0x8a,0x8b
2423
2424# CHECK: s_nand_b64 s[10:11], exec, s[4:5]       ; encoding: [0x7e,0x04,0x8a,0x8b]
24250x7e,0x04,0x8a,0x8b
2426
2427# CHECK: s_nand_b64 s[10:11], 0, s[4:5]          ; encoding: [0x80,0x04,0x8a,0x8b]
24280x80,0x04,0x8a,0x8b
2429
2430# CHECK: s_nand_b64 s[10:11], -1, s[4:5]         ; encoding: [0xc1,0x04,0x8a,0x8b]
24310xc1,0x04,0x8a,0x8b
2432
2433# CHECK: s_nand_b64 s[10:11], 0.5, s[4:5]        ; encoding: [0xf0,0x04,0x8a,0x8b]
24340xf0,0x04,0x8a,0x8b
2435
2436# CHECK: s_nand_b64 s[10:11], -4.0, s[4:5]       ; encoding: [0xf7,0x04,0x8a,0x8b]
24370xf7,0x04,0x8a,0x8b
2438
2439# CHECK: s_nand_b64 s[10:11], 0xaf123456, s[4:5] ; encoding: [0xff,0x04,0x8a,0x8b,0x56,0x34,0x12,0xaf]
24400xff,0x04,0x8a,0x8b,0x56,0x34,0x12,0xaf
2441
2442# CHECK: s_nand_b64 s[10:11], 0x3f717273, s[4:5] ; encoding: [0xff,0x04,0x8a,0x8b,0x73,0x72,0x71,0x3f]
24430xff,0x04,0x8a,0x8b,0x73,0x72,0x71,0x3f
2444
2445# CHECK: s_nand_b64 s[10:11], s[2:3], s[6:7]     ; encoding: [0x02,0x06,0x8a,0x8b]
24460x02,0x06,0x8a,0x8b
2447
2448# CHECK: s_nand_b64 s[10:11], s[2:3], s[100:101] ; encoding: [0x02,0x64,0x8a,0x8b]
24490x02,0x64,0x8a,0x8b
2450
2451# CHECK: s_nand_b64 s[10:11], s[2:3], flat_scratch ; encoding: [0x02,0x66,0x8a,0x8b]
24520x02,0x66,0x8a,0x8b
2453
2454# CHECK: s_nand_b64 s[10:11], s[2:3], vcc        ; encoding: [0x02,0x6a,0x8a,0x8b]
24550x02,0x6a,0x8a,0x8b
2456
2457# CHECK: s_nand_b64 s[10:11], s[2:3], exec       ; encoding: [0x02,0x7e,0x8a,0x8b]
24580x02,0x7e,0x8a,0x8b
2459
2460# CHECK: s_nand_b64 s[10:11], s[2:3], 0          ; encoding: [0x02,0x80,0x8a,0x8b]
24610x02,0x80,0x8a,0x8b
2462
2463# CHECK: s_nand_b64 s[10:11], s[2:3], -1         ; encoding: [0x02,0xc1,0x8a,0x8b]
24640x02,0xc1,0x8a,0x8b
2465
2466# CHECK: s_nand_b64 s[10:11], s[2:3], 0.5        ; encoding: [0x02,0xf0,0x8a,0x8b]
24670x02,0xf0,0x8a,0x8b
2468
2469# CHECK: s_nand_b64 s[10:11], s[2:3], -4.0       ; encoding: [0x02,0xf7,0x8a,0x8b]
24700x02,0xf7,0x8a,0x8b
2471
2472# CHECK: s_nand_b64 s[10:11], s[2:3], 0xaf123456 ; encoding: [0x02,0xff,0x8a,0x8b,0x56,0x34,0x12,0xaf]
24730x02,0xff,0x8a,0x8b,0x56,0x34,0x12,0xaf
2474
2475# CHECK: s_nand_b64 s[10:11], s[2:3], 0x3f717273 ; encoding: [0x02,0xff,0x8a,0x8b,0x73,0x72,0x71,0x3f]
24760x02,0xff,0x8a,0x8b,0x73,0x72,0x71,0x3f
2477
2478# CHECK: s_nor_b32 s5, s1, s2                    ; encoding: [0x01,0x02,0x05,0x8c]
24790x01,0x02,0x05,0x8c
2480
2481# CHECK: s_nor_b32 s101, s1, s2                  ; encoding: [0x01,0x02,0x65,0x8c]
24820x01,0x02,0x65,0x8c
2483
2484# CHECK: s_nor_b32 flat_scratch_lo, s1, s2       ; encoding: [0x01,0x02,0x66,0x8c]
24850x01,0x02,0x66,0x8c
2486
2487# CHECK: s_nor_b32 flat_scratch_hi, s1, s2       ; encoding: [0x01,0x02,0x67,0x8c]
24880x01,0x02,0x67,0x8c
2489
2490# CHECK: s_nor_b32 vcc_lo, s1, s2                ; encoding: [0x01,0x02,0x6a,0x8c]
24910x01,0x02,0x6a,0x8c
2492
2493# CHECK: s_nor_b32 vcc_hi, s1, s2                ; encoding: [0x01,0x02,0x6b,0x8c]
24940x01,0x02,0x6b,0x8c
2495
2496# CHECK: s_nor_b32 m0, s1, s2                    ; encoding: [0x01,0x02,0x7c,0x8c]
24970x01,0x02,0x7c,0x8c
2498
2499# CHECK: s_nor_b32 exec_lo, s1, s2               ; encoding: [0x01,0x02,0x7e,0x8c]
25000x01,0x02,0x7e,0x8c
2501
2502# CHECK: s_nor_b32 exec_hi, s1, s2               ; encoding: [0x01,0x02,0x7f,0x8c]
25030x01,0x02,0x7f,0x8c
2504
2505# CHECK: s_nor_b32 s5, s101, s2                  ; encoding: [0x65,0x02,0x05,0x8c]
25060x65,0x02,0x05,0x8c
2507
2508# CHECK: s_nor_b32 s5, flat_scratch_lo, s2       ; encoding: [0x66,0x02,0x05,0x8c]
25090x66,0x02,0x05,0x8c
2510
2511# CHECK: s_nor_b32 s5, flat_scratch_hi, s2       ; encoding: [0x67,0x02,0x05,0x8c]
25120x67,0x02,0x05,0x8c
2513
2514# CHECK: s_nor_b32 s5, vcc_lo, s2                ; encoding: [0x6a,0x02,0x05,0x8c]
25150x6a,0x02,0x05,0x8c
2516
2517# CHECK: s_nor_b32 s5, vcc_hi, s2                ; encoding: [0x6b,0x02,0x05,0x8c]
25180x6b,0x02,0x05,0x8c
2519
2520# CHECK: s_nor_b32 s5, m0, s2                    ; encoding: [0x7c,0x02,0x05,0x8c]
25210x7c,0x02,0x05,0x8c
2522
2523# CHECK: s_nor_b32 s5, exec_lo, s2               ; encoding: [0x7e,0x02,0x05,0x8c]
25240x7e,0x02,0x05,0x8c
2525
2526# CHECK: s_nor_b32 s5, exec_hi, s2               ; encoding: [0x7f,0x02,0x05,0x8c]
25270x7f,0x02,0x05,0x8c
2528
2529# CHECK: s_nor_b32 s5, 0, s2                     ; encoding: [0x80,0x02,0x05,0x8c]
25300x80,0x02,0x05,0x8c
2531
2532# CHECK: s_nor_b32 s5, -1, s2                    ; encoding: [0xc1,0x02,0x05,0x8c]
25330xc1,0x02,0x05,0x8c
2534
2535# CHECK: s_nor_b32 s5, 0.5, s2                   ; encoding: [0xf0,0x02,0x05,0x8c]
25360xf0,0x02,0x05,0x8c
2537
2538# CHECK: s_nor_b32 s5, -4.0, s2                  ; encoding: [0xf7,0x02,0x05,0x8c]
25390xf7,0x02,0x05,0x8c
2540
2541# CHECK: s_nor_b32 s5, 0xaf123456, s2            ; encoding: [0xff,0x02,0x05,0x8c,0x56,0x34,0x12,0xaf]
25420xff,0x02,0x05,0x8c,0x56,0x34,0x12,0xaf
2543
2544# CHECK: s_nor_b32 s5, 0x3f717273, s2            ; encoding: [0xff,0x02,0x05,0x8c,0x73,0x72,0x71,0x3f]
25450xff,0x02,0x05,0x8c,0x73,0x72,0x71,0x3f
2546
2547# CHECK: s_nor_b32 s5, s1, s101                  ; encoding: [0x01,0x65,0x05,0x8c]
25480x01,0x65,0x05,0x8c
2549
2550# CHECK: s_nor_b32 s5, s1, flat_scratch_lo       ; encoding: [0x01,0x66,0x05,0x8c]
25510x01,0x66,0x05,0x8c
2552
2553# CHECK: s_nor_b32 s5, s1, flat_scratch_hi       ; encoding: [0x01,0x67,0x05,0x8c]
25540x01,0x67,0x05,0x8c
2555
2556# CHECK: s_nor_b32 s5, s1, vcc_lo                ; encoding: [0x01,0x6a,0x05,0x8c]
25570x01,0x6a,0x05,0x8c
2558
2559# CHECK: s_nor_b32 s5, s1, vcc_hi                ; encoding: [0x01,0x6b,0x05,0x8c]
25600x01,0x6b,0x05,0x8c
2561
2562# CHECK: s_nor_b32 s5, s1, m0                    ; encoding: [0x01,0x7c,0x05,0x8c]
25630x01,0x7c,0x05,0x8c
2564
2565# CHECK: s_nor_b32 s5, s1, exec_lo               ; encoding: [0x01,0x7e,0x05,0x8c]
25660x01,0x7e,0x05,0x8c
2567
2568# CHECK: s_nor_b32 s5, s1, exec_hi               ; encoding: [0x01,0x7f,0x05,0x8c]
25690x01,0x7f,0x05,0x8c
2570
2571# CHECK: s_nor_b32 s5, s1, 0                     ; encoding: [0x01,0x80,0x05,0x8c]
25720x01,0x80,0x05,0x8c
2573
2574# CHECK: s_nor_b32 s5, s1, -1                    ; encoding: [0x01,0xc1,0x05,0x8c]
25750x01,0xc1,0x05,0x8c
2576
2577# CHECK: s_nor_b32 s5, s1, 0.5                   ; encoding: [0x01,0xf0,0x05,0x8c]
25780x01,0xf0,0x05,0x8c
2579
2580# CHECK: s_nor_b32 s5, s1, -4.0                  ; encoding: [0x01,0xf7,0x05,0x8c]
25810x01,0xf7,0x05,0x8c
2582
2583# CHECK: s_nor_b32 s5, s1, 0xaf123456            ; encoding: [0x01,0xff,0x05,0x8c,0x56,0x34,0x12,0xaf]
25840x01,0xff,0x05,0x8c,0x56,0x34,0x12,0xaf
2585
2586# CHECK: s_nor_b32 s5, s1, 0x3f717273            ; encoding: [0x01,0xff,0x05,0x8c,0x73,0x72,0x71,0x3f]
25870x01,0xff,0x05,0x8c,0x73,0x72,0x71,0x3f
2588
2589# CHECK: s_nor_b64 s[10:11], s[2:3], s[4:5]      ; encoding: [0x02,0x04,0x8a,0x8c]
25900x02,0x04,0x8a,0x8c
2591
2592# CHECK: s_nor_b64 s[12:13], s[2:3], s[4:5]      ; encoding: [0x02,0x04,0x8c,0x8c]
25930x02,0x04,0x8c,0x8c
2594
2595# CHECK: s_nor_b64 s[100:101], s[2:3], s[4:5]    ; encoding: [0x02,0x04,0xe4,0x8c]
25960x02,0x04,0xe4,0x8c
2597
2598# CHECK: s_nor_b64 flat_scratch, s[2:3], s[4:5]  ; encoding: [0x02,0x04,0xe6,0x8c]
25990x02,0x04,0xe6,0x8c
2600
2601# CHECK: s_nor_b64 vcc, s[2:3], s[4:5]           ; encoding: [0x02,0x04,0xea,0x8c]
26020x02,0x04,0xea,0x8c
2603
2604# CHECK: s_nor_b64 exec, s[2:3], s[4:5]          ; encoding: [0x02,0x04,0xfe,0x8c]
26050x02,0x04,0xfe,0x8c
2606
2607# CHECK: s_nor_b64 s[10:11], s[4:5], s[4:5]      ; encoding: [0x04,0x04,0x8a,0x8c]
26080x04,0x04,0x8a,0x8c
2609
2610# CHECK: s_nor_b64 s[10:11], s[100:101], s[4:5]  ; encoding: [0x64,0x04,0x8a,0x8c]
26110x64,0x04,0x8a,0x8c
2612
2613# CHECK: s_nor_b64 s[10:11], flat_scratch, s[4:5] ; encoding: [0x66,0x04,0x8a,0x8c]
26140x66,0x04,0x8a,0x8c
2615
2616# CHECK: s_nor_b64 s[10:11], vcc, s[4:5]         ; encoding: [0x6a,0x04,0x8a,0x8c]
26170x6a,0x04,0x8a,0x8c
2618
2619# CHECK: s_nor_b64 s[10:11], exec, s[4:5]        ; encoding: [0x7e,0x04,0x8a,0x8c]
26200x7e,0x04,0x8a,0x8c
2621
2622# CHECK: s_nor_b64 s[10:11], 0, s[4:5]           ; encoding: [0x80,0x04,0x8a,0x8c]
26230x80,0x04,0x8a,0x8c
2624
2625# CHECK: s_nor_b64 s[10:11], -1, s[4:5]          ; encoding: [0xc1,0x04,0x8a,0x8c]
26260xc1,0x04,0x8a,0x8c
2627
2628# CHECK: s_nor_b64 s[10:11], 0.5, s[4:5]         ; encoding: [0xf0,0x04,0x8a,0x8c]
26290xf0,0x04,0x8a,0x8c
2630
2631# CHECK: s_nor_b64 s[10:11], -4.0, s[4:5]        ; encoding: [0xf7,0x04,0x8a,0x8c]
26320xf7,0x04,0x8a,0x8c
2633
2634# CHECK: s_nor_b64 s[10:11], 0xaf123456, s[4:5]  ; encoding: [0xff,0x04,0x8a,0x8c,0x56,0x34,0x12,0xaf]
26350xff,0x04,0x8a,0x8c,0x56,0x34,0x12,0xaf
2636
2637# CHECK: s_nor_b64 s[10:11], 0x3f717273, s[4:5]  ; encoding: [0xff,0x04,0x8a,0x8c,0x73,0x72,0x71,0x3f]
26380xff,0x04,0x8a,0x8c,0x73,0x72,0x71,0x3f
2639
2640# CHECK: s_nor_b64 s[10:11], s[2:3], s[6:7]      ; encoding: [0x02,0x06,0x8a,0x8c]
26410x02,0x06,0x8a,0x8c
2642
2643# CHECK: s_nor_b64 s[10:11], s[2:3], s[100:101]  ; encoding: [0x02,0x64,0x8a,0x8c]
26440x02,0x64,0x8a,0x8c
2645
2646# CHECK: s_nor_b64 s[10:11], s[2:3], flat_scratch ; encoding: [0x02,0x66,0x8a,0x8c]
26470x02,0x66,0x8a,0x8c
2648
2649# CHECK: s_nor_b64 s[10:11], s[2:3], vcc         ; encoding: [0x02,0x6a,0x8a,0x8c]
26500x02,0x6a,0x8a,0x8c
2651
2652# CHECK: s_nor_b64 s[10:11], s[2:3], exec        ; encoding: [0x02,0x7e,0x8a,0x8c]
26530x02,0x7e,0x8a,0x8c
2654
2655# CHECK: s_nor_b64 s[10:11], s[2:3], 0           ; encoding: [0x02,0x80,0x8a,0x8c]
26560x02,0x80,0x8a,0x8c
2657
2658# CHECK: s_nor_b64 s[10:11], s[2:3], -1          ; encoding: [0x02,0xc1,0x8a,0x8c]
26590x02,0xc1,0x8a,0x8c
2660
2661# CHECK: s_nor_b64 s[10:11], s[2:3], 0.5         ; encoding: [0x02,0xf0,0x8a,0x8c]
26620x02,0xf0,0x8a,0x8c
2663
2664# CHECK: s_nor_b64 s[10:11], s[2:3], -4.0        ; encoding: [0x02,0xf7,0x8a,0x8c]
26650x02,0xf7,0x8a,0x8c
2666
2667# CHECK: s_nor_b64 s[10:11], s[2:3], 0xaf123456  ; encoding: [0x02,0xff,0x8a,0x8c,0x56,0x34,0x12,0xaf]
26680x02,0xff,0x8a,0x8c,0x56,0x34,0x12,0xaf
2669
2670# CHECK: s_nor_b64 s[10:11], s[2:3], 0x3f717273  ; encoding: [0x02,0xff,0x8a,0x8c,0x73,0x72,0x71,0x3f]
26710x02,0xff,0x8a,0x8c,0x73,0x72,0x71,0x3f
2672
2673# CHECK: s_xnor_b32 s5, s1, s2                   ; encoding: [0x01,0x02,0x05,0x8d]
26740x01,0x02,0x05,0x8d
2675
2676# CHECK: s_xnor_b32 s101, s1, s2                 ; encoding: [0x01,0x02,0x65,0x8d]
26770x01,0x02,0x65,0x8d
2678
2679# CHECK: s_xnor_b32 flat_scratch_lo, s1, s2      ; encoding: [0x01,0x02,0x66,0x8d]
26800x01,0x02,0x66,0x8d
2681
2682# CHECK: s_xnor_b32 flat_scratch_hi, s1, s2      ; encoding: [0x01,0x02,0x67,0x8d]
26830x01,0x02,0x67,0x8d
2684
2685# CHECK: s_xnor_b32 vcc_lo, s1, s2               ; encoding: [0x01,0x02,0x6a,0x8d]
26860x01,0x02,0x6a,0x8d
2687
2688# CHECK: s_xnor_b32 vcc_hi, s1, s2               ; encoding: [0x01,0x02,0x6b,0x8d]
26890x01,0x02,0x6b,0x8d
2690
2691# CHECK: s_xnor_b32 m0, s1, s2                   ; encoding: [0x01,0x02,0x7c,0x8d]
26920x01,0x02,0x7c,0x8d
2693
2694# CHECK: s_xnor_b32 exec_lo, s1, s2              ; encoding: [0x01,0x02,0x7e,0x8d]
26950x01,0x02,0x7e,0x8d
2696
2697# CHECK: s_xnor_b32 exec_hi, s1, s2              ; encoding: [0x01,0x02,0x7f,0x8d]
26980x01,0x02,0x7f,0x8d
2699
2700# CHECK: s_xnor_b32 s5, s101, s2                 ; encoding: [0x65,0x02,0x05,0x8d]
27010x65,0x02,0x05,0x8d
2702
2703# CHECK: s_xnor_b32 s5, flat_scratch_lo, s2      ; encoding: [0x66,0x02,0x05,0x8d]
27040x66,0x02,0x05,0x8d
2705
2706# CHECK: s_xnor_b32 s5, flat_scratch_hi, s2      ; encoding: [0x67,0x02,0x05,0x8d]
27070x67,0x02,0x05,0x8d
2708
2709# CHECK: s_xnor_b32 s5, vcc_lo, s2               ; encoding: [0x6a,0x02,0x05,0x8d]
27100x6a,0x02,0x05,0x8d
2711
2712# CHECK: s_xnor_b32 s5, vcc_hi, s2               ; encoding: [0x6b,0x02,0x05,0x8d]
27130x6b,0x02,0x05,0x8d
2714
2715# CHECK: s_xnor_b32 s5, m0, s2                   ; encoding: [0x7c,0x02,0x05,0x8d]
27160x7c,0x02,0x05,0x8d
2717
2718# CHECK: s_xnor_b32 s5, exec_lo, s2              ; encoding: [0x7e,0x02,0x05,0x8d]
27190x7e,0x02,0x05,0x8d
2720
2721# CHECK: s_xnor_b32 s5, exec_hi, s2              ; encoding: [0x7f,0x02,0x05,0x8d]
27220x7f,0x02,0x05,0x8d
2723
2724# CHECK: s_xnor_b32 s5, 0, s2                    ; encoding: [0x80,0x02,0x05,0x8d]
27250x80,0x02,0x05,0x8d
2726
2727# CHECK: s_xnor_b32 s5, -1, s2                   ; encoding: [0xc1,0x02,0x05,0x8d]
27280xc1,0x02,0x05,0x8d
2729
2730# CHECK: s_xnor_b32 s5, 0.5, s2                  ; encoding: [0xf0,0x02,0x05,0x8d]
27310xf0,0x02,0x05,0x8d
2732
2733# CHECK: s_xnor_b32 s5, -4.0, s2                 ; encoding: [0xf7,0x02,0x05,0x8d]
27340xf7,0x02,0x05,0x8d
2735
2736# CHECK: s_xnor_b32 s5, 0xaf123456, s2           ; encoding: [0xff,0x02,0x05,0x8d,0x56,0x34,0x12,0xaf]
27370xff,0x02,0x05,0x8d,0x56,0x34,0x12,0xaf
2738
2739# CHECK: s_xnor_b32 s5, 0x3f717273, s2           ; encoding: [0xff,0x02,0x05,0x8d,0x73,0x72,0x71,0x3f]
27400xff,0x02,0x05,0x8d,0x73,0x72,0x71,0x3f
2741
2742# CHECK: s_xnor_b32 s5, s1, s101                 ; encoding: [0x01,0x65,0x05,0x8d]
27430x01,0x65,0x05,0x8d
2744
2745# CHECK: s_xnor_b32 s5, s1, flat_scratch_lo      ; encoding: [0x01,0x66,0x05,0x8d]
27460x01,0x66,0x05,0x8d
2747
2748# CHECK: s_xnor_b32 s5, s1, flat_scratch_hi      ; encoding: [0x01,0x67,0x05,0x8d]
27490x01,0x67,0x05,0x8d
2750
2751# CHECK: s_xnor_b32 s5, s1, vcc_lo               ; encoding: [0x01,0x6a,0x05,0x8d]
27520x01,0x6a,0x05,0x8d
2753
2754# CHECK: s_xnor_b32 s5, s1, vcc_hi               ; encoding: [0x01,0x6b,0x05,0x8d]
27550x01,0x6b,0x05,0x8d
2756
2757# CHECK: s_xnor_b32 s5, s1, m0                   ; encoding: [0x01,0x7c,0x05,0x8d]
27580x01,0x7c,0x05,0x8d
2759
2760# CHECK: s_xnor_b32 s5, s1, exec_lo              ; encoding: [0x01,0x7e,0x05,0x8d]
27610x01,0x7e,0x05,0x8d
2762
2763# CHECK: s_xnor_b32 s5, s1, exec_hi              ; encoding: [0x01,0x7f,0x05,0x8d]
27640x01,0x7f,0x05,0x8d
2765
2766# CHECK: s_xnor_b32 s5, s1, 0                    ; encoding: [0x01,0x80,0x05,0x8d]
27670x01,0x80,0x05,0x8d
2768
2769# CHECK: s_xnor_b32 s5, s1, -1                   ; encoding: [0x01,0xc1,0x05,0x8d]
27700x01,0xc1,0x05,0x8d
2771
2772# CHECK: s_xnor_b32 s5, s1, 0.5                  ; encoding: [0x01,0xf0,0x05,0x8d]
27730x01,0xf0,0x05,0x8d
2774
2775# CHECK: s_xnor_b32 s5, s1, -4.0                 ; encoding: [0x01,0xf7,0x05,0x8d]
27760x01,0xf7,0x05,0x8d
2777
2778# CHECK: s_xnor_b32 s5, s1, 0xaf123456           ; encoding: [0x01,0xff,0x05,0x8d,0x56,0x34,0x12,0xaf]
27790x01,0xff,0x05,0x8d,0x56,0x34,0x12,0xaf
2780
2781# CHECK: s_xnor_b32 s5, s1, 0x3f717273           ; encoding: [0x01,0xff,0x05,0x8d,0x73,0x72,0x71,0x3f]
27820x01,0xff,0x05,0x8d,0x73,0x72,0x71,0x3f
2783
2784# CHECK: s_xnor_b64 s[10:11], s[2:3], s[4:5]     ; encoding: [0x02,0x04,0x8a,0x8d]
27850x02,0x04,0x8a,0x8d
2786
2787# CHECK: s_xnor_b64 s[12:13], s[2:3], s[4:5]     ; encoding: [0x02,0x04,0x8c,0x8d]
27880x02,0x04,0x8c,0x8d
2789
2790# CHECK: s_xnor_b64 s[100:101], s[2:3], s[4:5]   ; encoding: [0x02,0x04,0xe4,0x8d]
27910x02,0x04,0xe4,0x8d
2792
2793# CHECK: s_xnor_b64 flat_scratch, s[2:3], s[4:5] ; encoding: [0x02,0x04,0xe6,0x8d]
27940x02,0x04,0xe6,0x8d
2795
2796# CHECK: s_xnor_b64 vcc, s[2:3], s[4:5]          ; encoding: [0x02,0x04,0xea,0x8d]
27970x02,0x04,0xea,0x8d
2798
2799# CHECK: s_xnor_b64 exec, s[2:3], s[4:5]         ; encoding: [0x02,0x04,0xfe,0x8d]
28000x02,0x04,0xfe,0x8d
2801
2802# CHECK: s_xnor_b64 s[10:11], s[4:5], s[4:5]     ; encoding: [0x04,0x04,0x8a,0x8d]
28030x04,0x04,0x8a,0x8d
2804
2805# CHECK: s_xnor_b64 s[10:11], s[100:101], s[4:5] ; encoding: [0x64,0x04,0x8a,0x8d]
28060x64,0x04,0x8a,0x8d
2807
2808# CHECK: s_xnor_b64 s[10:11], flat_scratch, s[4:5] ; encoding: [0x66,0x04,0x8a,0x8d]
28090x66,0x04,0x8a,0x8d
2810
2811# CHECK: s_xnor_b64 s[10:11], vcc, s[4:5]        ; encoding: [0x6a,0x04,0x8a,0x8d]
28120x6a,0x04,0x8a,0x8d
2813
2814# CHECK: s_xnor_b64 s[10:11], exec, s[4:5]       ; encoding: [0x7e,0x04,0x8a,0x8d]
28150x7e,0x04,0x8a,0x8d
2816
2817# CHECK: s_xnor_b64 s[10:11], 0, s[4:5]          ; encoding: [0x80,0x04,0x8a,0x8d]
28180x80,0x04,0x8a,0x8d
2819
2820# CHECK: s_xnor_b64 s[10:11], -1, s[4:5]         ; encoding: [0xc1,0x04,0x8a,0x8d]
28210xc1,0x04,0x8a,0x8d
2822
2823# CHECK: s_xnor_b64 s[10:11], 0.5, s[4:5]        ; encoding: [0xf0,0x04,0x8a,0x8d]
28240xf0,0x04,0x8a,0x8d
2825
2826# CHECK: s_xnor_b64 s[10:11], -4.0, s[4:5]       ; encoding: [0xf7,0x04,0x8a,0x8d]
28270xf7,0x04,0x8a,0x8d
2828
2829# CHECK: s_xnor_b64 s[10:11], 0xaf123456, s[4:5] ; encoding: [0xff,0x04,0x8a,0x8d,0x56,0x34,0x12,0xaf]
28300xff,0x04,0x8a,0x8d,0x56,0x34,0x12,0xaf
2831
2832# CHECK: s_xnor_b64 s[10:11], 0x3f717273, s[4:5] ; encoding: [0xff,0x04,0x8a,0x8d,0x73,0x72,0x71,0x3f]
28330xff,0x04,0x8a,0x8d,0x73,0x72,0x71,0x3f
2834
2835# CHECK: s_xnor_b64 s[10:11], s[2:3], s[6:7]     ; encoding: [0x02,0x06,0x8a,0x8d]
28360x02,0x06,0x8a,0x8d
2837
2838# CHECK: s_xnor_b64 s[10:11], s[2:3], s[100:101] ; encoding: [0x02,0x64,0x8a,0x8d]
28390x02,0x64,0x8a,0x8d
2840
2841# CHECK: s_xnor_b64 s[10:11], s[2:3], flat_scratch ; encoding: [0x02,0x66,0x8a,0x8d]
28420x02,0x66,0x8a,0x8d
2843
2844# CHECK: s_xnor_b64 s[10:11], s[2:3], vcc        ; encoding: [0x02,0x6a,0x8a,0x8d]
28450x02,0x6a,0x8a,0x8d
2846
2847# CHECK: s_xnor_b64 s[10:11], s[2:3], exec       ; encoding: [0x02,0x7e,0x8a,0x8d]
28480x02,0x7e,0x8a,0x8d
2849
2850# CHECK: s_xnor_b64 s[10:11], s[2:3], 0          ; encoding: [0x02,0x80,0x8a,0x8d]
28510x02,0x80,0x8a,0x8d
2852
2853# CHECK: s_xnor_b64 s[10:11], s[2:3], -1         ; encoding: [0x02,0xc1,0x8a,0x8d]
28540x02,0xc1,0x8a,0x8d
2855
2856# CHECK: s_xnor_b64 s[10:11], s[2:3], 0.5        ; encoding: [0x02,0xf0,0x8a,0x8d]
28570x02,0xf0,0x8a,0x8d
2858
2859# CHECK: s_xnor_b64 s[10:11], s[2:3], -4.0       ; encoding: [0x02,0xf7,0x8a,0x8d]
28600x02,0xf7,0x8a,0x8d
2861
2862# CHECK: s_xnor_b64 s[10:11], s[2:3], 0xaf123456 ; encoding: [0x02,0xff,0x8a,0x8d,0x56,0x34,0x12,0xaf]
28630x02,0xff,0x8a,0x8d,0x56,0x34,0x12,0xaf
2864
2865# CHECK: s_xnor_b64 s[10:11], s[2:3], 0x3f717273 ; encoding: [0x02,0xff,0x8a,0x8d,0x73,0x72,0x71,0x3f]
28660x02,0xff,0x8a,0x8d,0x73,0x72,0x71,0x3f
2867
2868# CHECK: s_lshl_b32 s5, s1, s2                   ; encoding: [0x01,0x02,0x05,0x8e]
28690x01,0x02,0x05,0x8e
2870
2871# CHECK: s_lshl_b32 s101, s1, s2                 ; encoding: [0x01,0x02,0x65,0x8e]
28720x01,0x02,0x65,0x8e
2873
2874# CHECK: s_lshl_b32 flat_scratch_lo, s1, s2      ; encoding: [0x01,0x02,0x66,0x8e]
28750x01,0x02,0x66,0x8e
2876
2877# CHECK: s_lshl_b32 flat_scratch_hi, s1, s2      ; encoding: [0x01,0x02,0x67,0x8e]
28780x01,0x02,0x67,0x8e
2879
2880# CHECK: s_lshl_b32 vcc_lo, s1, s2               ; encoding: [0x01,0x02,0x6a,0x8e]
28810x01,0x02,0x6a,0x8e
2882
2883# CHECK: s_lshl_b32 vcc_hi, s1, s2               ; encoding: [0x01,0x02,0x6b,0x8e]
28840x01,0x02,0x6b,0x8e
2885
2886# CHECK: s_lshl_b32 m0, s1, s2                   ; encoding: [0x01,0x02,0x7c,0x8e]
28870x01,0x02,0x7c,0x8e
2888
2889# CHECK: s_lshl_b32 exec_lo, s1, s2              ; encoding: [0x01,0x02,0x7e,0x8e]
28900x01,0x02,0x7e,0x8e
2891
2892# CHECK: s_lshl_b32 exec_hi, s1, s2              ; encoding: [0x01,0x02,0x7f,0x8e]
28930x01,0x02,0x7f,0x8e
2894
2895# CHECK: s_lshl_b32 s5, s101, s2                 ; encoding: [0x65,0x02,0x05,0x8e]
28960x65,0x02,0x05,0x8e
2897
2898# CHECK: s_lshl_b32 s5, flat_scratch_lo, s2      ; encoding: [0x66,0x02,0x05,0x8e]
28990x66,0x02,0x05,0x8e
2900
2901# CHECK: s_lshl_b32 s5, flat_scratch_hi, s2      ; encoding: [0x67,0x02,0x05,0x8e]
29020x67,0x02,0x05,0x8e
2903
2904# CHECK: s_lshl_b32 s5, vcc_lo, s2               ; encoding: [0x6a,0x02,0x05,0x8e]
29050x6a,0x02,0x05,0x8e
2906
2907# CHECK: s_lshl_b32 s5, vcc_hi, s2               ; encoding: [0x6b,0x02,0x05,0x8e]
29080x6b,0x02,0x05,0x8e
2909
2910# CHECK: s_lshl_b32 s5, m0, s2                   ; encoding: [0x7c,0x02,0x05,0x8e]
29110x7c,0x02,0x05,0x8e
2912
2913# CHECK: s_lshl_b32 s5, exec_lo, s2              ; encoding: [0x7e,0x02,0x05,0x8e]
29140x7e,0x02,0x05,0x8e
2915
2916# CHECK: s_lshl_b32 s5, exec_hi, s2              ; encoding: [0x7f,0x02,0x05,0x8e]
29170x7f,0x02,0x05,0x8e
2918
2919# CHECK: s_lshl_b32 s5, 0, s2                    ; encoding: [0x80,0x02,0x05,0x8e]
29200x80,0x02,0x05,0x8e
2921
2922# CHECK: s_lshl_b32 s5, -1, s2                   ; encoding: [0xc1,0x02,0x05,0x8e]
29230xc1,0x02,0x05,0x8e
2924
2925# CHECK: s_lshl_b32 s5, 0.5, s2                  ; encoding: [0xf0,0x02,0x05,0x8e]
29260xf0,0x02,0x05,0x8e
2927
2928# CHECK: s_lshl_b32 s5, -4.0, s2                 ; encoding: [0xf7,0x02,0x05,0x8e]
29290xf7,0x02,0x05,0x8e
2930
2931# CHECK: s_lshl_b32 s5, 0xaf123456, s2           ; encoding: [0xff,0x02,0x05,0x8e,0x56,0x34,0x12,0xaf]
29320xff,0x02,0x05,0x8e,0x56,0x34,0x12,0xaf
2933
2934# CHECK: s_lshl_b32 s5, 0x3f717273, s2           ; encoding: [0xff,0x02,0x05,0x8e,0x73,0x72,0x71,0x3f]
29350xff,0x02,0x05,0x8e,0x73,0x72,0x71,0x3f
2936
2937# CHECK: s_lshl_b32 s5, s1, s101                 ; encoding: [0x01,0x65,0x05,0x8e]
29380x01,0x65,0x05,0x8e
2939
2940# CHECK: s_lshl_b32 s5, s1, flat_scratch_lo      ; encoding: [0x01,0x66,0x05,0x8e]
29410x01,0x66,0x05,0x8e
2942
2943# CHECK: s_lshl_b32 s5, s1, flat_scratch_hi      ; encoding: [0x01,0x67,0x05,0x8e]
29440x01,0x67,0x05,0x8e
2945
2946# CHECK: s_lshl_b32 s5, s1, vcc_lo               ; encoding: [0x01,0x6a,0x05,0x8e]
29470x01,0x6a,0x05,0x8e
2948
2949# CHECK: s_lshl_b32 s5, s1, vcc_hi               ; encoding: [0x01,0x6b,0x05,0x8e]
29500x01,0x6b,0x05,0x8e
2951
2952# CHECK: s_lshl_b32 s5, s1, m0                   ; encoding: [0x01,0x7c,0x05,0x8e]
29530x01,0x7c,0x05,0x8e
2954
2955# CHECK: s_lshl_b32 s5, s1, exec_lo              ; encoding: [0x01,0x7e,0x05,0x8e]
29560x01,0x7e,0x05,0x8e
2957
2958# CHECK: s_lshl_b32 s5, s1, exec_hi              ; encoding: [0x01,0x7f,0x05,0x8e]
29590x01,0x7f,0x05,0x8e
2960
2961# CHECK: s_lshl_b32 s5, s1, 0                    ; encoding: [0x01,0x80,0x05,0x8e]
29620x01,0x80,0x05,0x8e
2963
2964# CHECK: s_lshl_b32 s5, s1, -1                   ; encoding: [0x01,0xc1,0x05,0x8e]
29650x01,0xc1,0x05,0x8e
2966
2967# CHECK: s_lshl_b32 s5, s1, 0.5                  ; encoding: [0x01,0xf0,0x05,0x8e]
29680x01,0xf0,0x05,0x8e
2969
2970# CHECK: s_lshl_b32 s5, s1, -4.0                 ; encoding: [0x01,0xf7,0x05,0x8e]
29710x01,0xf7,0x05,0x8e
2972
2973# CHECK: s_lshl_b32 s5, s1, 0xaf123456           ; encoding: [0x01,0xff,0x05,0x8e,0x56,0x34,0x12,0xaf]
29740x01,0xff,0x05,0x8e,0x56,0x34,0x12,0xaf
2975
2976# CHECK: s_lshl_b32 s5, s1, 0x3f717273           ; encoding: [0x01,0xff,0x05,0x8e,0x73,0x72,0x71,0x3f]
29770x01,0xff,0x05,0x8e,0x73,0x72,0x71,0x3f
2978
2979# CHECK: s_lshl_b64 s[10:11], s[2:3], s2         ; encoding: [0x02,0x02,0x8a,0x8e]
29800x02,0x02,0x8a,0x8e
2981
2982# CHECK: s_lshl_b64 s[12:13], s[2:3], s2         ; encoding: [0x02,0x02,0x8c,0x8e]
29830x02,0x02,0x8c,0x8e
2984
2985# CHECK: s_lshl_b64 s[100:101], s[2:3], s2       ; encoding: [0x02,0x02,0xe4,0x8e]
29860x02,0x02,0xe4,0x8e
2987
2988# CHECK: s_lshl_b64 flat_scratch, s[2:3], s2     ; encoding: [0x02,0x02,0xe6,0x8e]
29890x02,0x02,0xe6,0x8e
2990
2991# CHECK: s_lshl_b64 vcc, s[2:3], s2              ; encoding: [0x02,0x02,0xea,0x8e]
29920x02,0x02,0xea,0x8e
2993
2994# CHECK: s_lshl_b64 exec, s[2:3], s2             ; encoding: [0x02,0x02,0xfe,0x8e]
29950x02,0x02,0xfe,0x8e
2996
2997# CHECK: s_lshl_b64 s[10:11], s[4:5], s2         ; encoding: [0x04,0x02,0x8a,0x8e]
29980x04,0x02,0x8a,0x8e
2999
3000# CHECK: s_lshl_b64 s[10:11], s[100:101], s2     ; encoding: [0x64,0x02,0x8a,0x8e]
30010x64,0x02,0x8a,0x8e
3002
3003# CHECK: s_lshl_b64 s[10:11], flat_scratch, s2   ; encoding: [0x66,0x02,0x8a,0x8e]
30040x66,0x02,0x8a,0x8e
3005
3006# CHECK: s_lshl_b64 s[10:11], vcc, s2            ; encoding: [0x6a,0x02,0x8a,0x8e]
30070x6a,0x02,0x8a,0x8e
3008
3009# CHECK: s_lshl_b64 s[10:11], exec, s2           ; encoding: [0x7e,0x02,0x8a,0x8e]
30100x7e,0x02,0x8a,0x8e
3011
3012# CHECK: s_lshl_b64 s[10:11], 0, s2              ; encoding: [0x80,0x02,0x8a,0x8e]
30130x80,0x02,0x8a,0x8e
3014
3015# CHECK: s_lshl_b64 s[10:11], -1, s2             ; encoding: [0xc1,0x02,0x8a,0x8e]
30160xc1,0x02,0x8a,0x8e
3017
3018# CHECK: s_lshl_b64 s[10:11], 0.5, s2            ; encoding: [0xf0,0x02,0x8a,0x8e]
30190xf0,0x02,0x8a,0x8e
3020
3021# CHECK: s_lshl_b64 s[10:11], -4.0, s2           ; encoding: [0xf7,0x02,0x8a,0x8e]
30220xf7,0x02,0x8a,0x8e
3023
3024# CHECK: s_lshl_b64 s[10:11], 0xaf123456, s2     ; encoding: [0xff,0x02,0x8a,0x8e,0x56,0x34,0x12,0xaf]
30250xff,0x02,0x8a,0x8e,0x56,0x34,0x12,0xaf
3026
3027# CHECK: s_lshl_b64 s[10:11], 0x3f717273, s2     ; encoding: [0xff,0x02,0x8a,0x8e,0x73,0x72,0x71,0x3f]
30280xff,0x02,0x8a,0x8e,0x73,0x72,0x71,0x3f
3029
3030# CHECK: s_lshl_b64 s[10:11], s[2:3], s101       ; encoding: [0x02,0x65,0x8a,0x8e]
30310x02,0x65,0x8a,0x8e
3032
3033# CHECK: s_lshl_b64 s[10:11], s[2:3], flat_scratch_lo ; encoding: [0x02,0x66,0x8a,0x8e]
30340x02,0x66,0x8a,0x8e
3035
3036# CHECK: s_lshl_b64 s[10:11], s[2:3], flat_scratch_hi ; encoding: [0x02,0x67,0x8a,0x8e]
30370x02,0x67,0x8a,0x8e
3038
3039# CHECK: s_lshl_b64 s[10:11], s[2:3], vcc_lo     ; encoding: [0x02,0x6a,0x8a,0x8e]
30400x02,0x6a,0x8a,0x8e
3041
3042# CHECK: s_lshl_b64 s[10:11], s[2:3], vcc_hi     ; encoding: [0x02,0x6b,0x8a,0x8e]
30430x02,0x6b,0x8a,0x8e
3044
3045# CHECK: s_lshl_b64 s[10:11], s[2:3], m0         ; encoding: [0x02,0x7c,0x8a,0x8e]
30460x02,0x7c,0x8a,0x8e
3047
3048# CHECK: s_lshl_b64 s[10:11], s[2:3], exec_lo    ; encoding: [0x02,0x7e,0x8a,0x8e]
30490x02,0x7e,0x8a,0x8e
3050
3051# CHECK: s_lshl_b64 s[10:11], s[2:3], exec_hi    ; encoding: [0x02,0x7f,0x8a,0x8e]
30520x02,0x7f,0x8a,0x8e
3053
3054# CHECK: s_lshl_b64 s[10:11], s[2:3], 0          ; encoding: [0x02,0x80,0x8a,0x8e]
30550x02,0x80,0x8a,0x8e
3056
3057# CHECK: s_lshl_b64 s[10:11], s[2:3], -1         ; encoding: [0x02,0xc1,0x8a,0x8e]
30580x02,0xc1,0x8a,0x8e
3059
3060# CHECK: s_lshl_b64 s[10:11], s[2:3], 0.5        ; encoding: [0x02,0xf0,0x8a,0x8e]
30610x02,0xf0,0x8a,0x8e
3062
3063# CHECK: s_lshl_b64 s[10:11], s[2:3], -4.0       ; encoding: [0x02,0xf7,0x8a,0x8e]
30640x02,0xf7,0x8a,0x8e
3065
3066# CHECK: s_lshl_b64 s[10:11], s[2:3], 0xaf123456 ; encoding: [0x02,0xff,0x8a,0x8e,0x56,0x34,0x12,0xaf]
30670x02,0xff,0x8a,0x8e,0x56,0x34,0x12,0xaf
3068
3069# CHECK: s_lshl_b64 s[10:11], s[2:3], 0x3f717273 ; encoding: [0x02,0xff,0x8a,0x8e,0x73,0x72,0x71,0x3f]
30700x02,0xff,0x8a,0x8e,0x73,0x72,0x71,0x3f
3071
3072# CHECK: s_lshr_b32 s5, s1, s2                   ; encoding: [0x01,0x02,0x05,0x8f]
30730x01,0x02,0x05,0x8f
3074
3075# CHECK: s_lshr_b32 s101, s1, s2                 ; encoding: [0x01,0x02,0x65,0x8f]
30760x01,0x02,0x65,0x8f
3077
3078# CHECK: s_lshr_b32 flat_scratch_lo, s1, s2      ; encoding: [0x01,0x02,0x66,0x8f]
30790x01,0x02,0x66,0x8f
3080
3081# CHECK: s_lshr_b32 flat_scratch_hi, s1, s2      ; encoding: [0x01,0x02,0x67,0x8f]
30820x01,0x02,0x67,0x8f
3083
3084# CHECK: s_lshr_b32 vcc_lo, s1, s2               ; encoding: [0x01,0x02,0x6a,0x8f]
30850x01,0x02,0x6a,0x8f
3086
3087# CHECK: s_lshr_b32 vcc_hi, s1, s2               ; encoding: [0x01,0x02,0x6b,0x8f]
30880x01,0x02,0x6b,0x8f
3089
3090# CHECK: s_lshr_b32 m0, s1, s2                   ; encoding: [0x01,0x02,0x7c,0x8f]
30910x01,0x02,0x7c,0x8f
3092
3093# CHECK: s_lshr_b32 exec_lo, s1, s2              ; encoding: [0x01,0x02,0x7e,0x8f]
30940x01,0x02,0x7e,0x8f
3095
3096# CHECK: s_lshr_b32 exec_hi, s1, s2              ; encoding: [0x01,0x02,0x7f,0x8f]
30970x01,0x02,0x7f,0x8f
3098
3099# CHECK: s_lshr_b32 s5, s101, s2                 ; encoding: [0x65,0x02,0x05,0x8f]
31000x65,0x02,0x05,0x8f
3101
3102# CHECK: s_lshr_b32 s5, flat_scratch_lo, s2      ; encoding: [0x66,0x02,0x05,0x8f]
31030x66,0x02,0x05,0x8f
3104
3105# CHECK: s_lshr_b32 s5, flat_scratch_hi, s2      ; encoding: [0x67,0x02,0x05,0x8f]
31060x67,0x02,0x05,0x8f
3107
3108# CHECK: s_lshr_b32 s5, vcc_lo, s2               ; encoding: [0x6a,0x02,0x05,0x8f]
31090x6a,0x02,0x05,0x8f
3110
3111# CHECK: s_lshr_b32 s5, vcc_hi, s2               ; encoding: [0x6b,0x02,0x05,0x8f]
31120x6b,0x02,0x05,0x8f
3113
3114# CHECK: s_lshr_b32 s5, m0, s2                   ; encoding: [0x7c,0x02,0x05,0x8f]
31150x7c,0x02,0x05,0x8f
3116
3117# CHECK: s_lshr_b32 s5, exec_lo, s2              ; encoding: [0x7e,0x02,0x05,0x8f]
31180x7e,0x02,0x05,0x8f
3119
3120# CHECK: s_lshr_b32 s5, exec_hi, s2              ; encoding: [0x7f,0x02,0x05,0x8f]
31210x7f,0x02,0x05,0x8f
3122
3123# CHECK: s_lshr_b32 s5, 0, s2                    ; encoding: [0x80,0x02,0x05,0x8f]
31240x80,0x02,0x05,0x8f
3125
3126# CHECK: s_lshr_b32 s5, -1, s2                   ; encoding: [0xc1,0x02,0x05,0x8f]
31270xc1,0x02,0x05,0x8f
3128
3129# CHECK: s_lshr_b32 s5, 0.5, s2                  ; encoding: [0xf0,0x02,0x05,0x8f]
31300xf0,0x02,0x05,0x8f
3131
3132# CHECK: s_lshr_b32 s5, -4.0, s2                 ; encoding: [0xf7,0x02,0x05,0x8f]
31330xf7,0x02,0x05,0x8f
3134
3135# CHECK: s_lshr_b32 s5, 0xaf123456, s2           ; encoding: [0xff,0x02,0x05,0x8f,0x56,0x34,0x12,0xaf]
31360xff,0x02,0x05,0x8f,0x56,0x34,0x12,0xaf
3137
3138# CHECK: s_lshr_b32 s5, 0x3f717273, s2           ; encoding: [0xff,0x02,0x05,0x8f,0x73,0x72,0x71,0x3f]
31390xff,0x02,0x05,0x8f,0x73,0x72,0x71,0x3f
3140
3141# CHECK: s_lshr_b32 s5, s1, s101                 ; encoding: [0x01,0x65,0x05,0x8f]
31420x01,0x65,0x05,0x8f
3143
3144# CHECK: s_lshr_b32 s5, s1, flat_scratch_lo      ; encoding: [0x01,0x66,0x05,0x8f]
31450x01,0x66,0x05,0x8f
3146
3147# CHECK: s_lshr_b32 s5, s1, flat_scratch_hi      ; encoding: [0x01,0x67,0x05,0x8f]
31480x01,0x67,0x05,0x8f
3149
3150# CHECK: s_lshr_b32 s5, s1, vcc_lo               ; encoding: [0x01,0x6a,0x05,0x8f]
31510x01,0x6a,0x05,0x8f
3152
3153# CHECK: s_lshr_b32 s5, s1, vcc_hi               ; encoding: [0x01,0x6b,0x05,0x8f]
31540x01,0x6b,0x05,0x8f
3155
3156# CHECK: s_lshr_b32 s5, s1, m0                   ; encoding: [0x01,0x7c,0x05,0x8f]
31570x01,0x7c,0x05,0x8f
3158
3159# CHECK: s_lshr_b32 s5, s1, exec_lo              ; encoding: [0x01,0x7e,0x05,0x8f]
31600x01,0x7e,0x05,0x8f
3161
3162# CHECK: s_lshr_b32 s5, s1, exec_hi              ; encoding: [0x01,0x7f,0x05,0x8f]
31630x01,0x7f,0x05,0x8f
3164
3165# CHECK: s_lshr_b32 s5, s1, 0                    ; encoding: [0x01,0x80,0x05,0x8f]
31660x01,0x80,0x05,0x8f
3167
3168# CHECK: s_lshr_b32 s5, s1, -1                   ; encoding: [0x01,0xc1,0x05,0x8f]
31690x01,0xc1,0x05,0x8f
3170
3171# CHECK: s_lshr_b32 s5, s1, 0.5                  ; encoding: [0x01,0xf0,0x05,0x8f]
31720x01,0xf0,0x05,0x8f
3173
3174# CHECK: s_lshr_b32 s5, s1, -4.0                 ; encoding: [0x01,0xf7,0x05,0x8f]
31750x01,0xf7,0x05,0x8f
3176
3177# CHECK: s_lshr_b32 s5, s1, 0xaf123456           ; encoding: [0x01,0xff,0x05,0x8f,0x56,0x34,0x12,0xaf]
31780x01,0xff,0x05,0x8f,0x56,0x34,0x12,0xaf
3179
3180# CHECK: s_lshr_b32 s5, s1, 0x3f717273           ; encoding: [0x01,0xff,0x05,0x8f,0x73,0x72,0x71,0x3f]
31810x01,0xff,0x05,0x8f,0x73,0x72,0x71,0x3f
3182
3183# CHECK: s_lshr_b64 s[10:11], s[2:3], s2         ; encoding: [0x02,0x02,0x8a,0x8f]
31840x02,0x02,0x8a,0x8f
3185
3186# CHECK: s_lshr_b64 s[12:13], s[2:3], s2         ; encoding: [0x02,0x02,0x8c,0x8f]
31870x02,0x02,0x8c,0x8f
3188
3189# CHECK: s_lshr_b64 s[100:101], s[2:3], s2       ; encoding: [0x02,0x02,0xe4,0x8f]
31900x02,0x02,0xe4,0x8f
3191
3192# CHECK: s_lshr_b64 flat_scratch, s[2:3], s2     ; encoding: [0x02,0x02,0xe6,0x8f]
31930x02,0x02,0xe6,0x8f
3194
3195# CHECK: s_lshr_b64 vcc, s[2:3], s2              ; encoding: [0x02,0x02,0xea,0x8f]
31960x02,0x02,0xea,0x8f
3197
3198# CHECK: s_lshr_b64 exec, s[2:3], s2             ; encoding: [0x02,0x02,0xfe,0x8f]
31990x02,0x02,0xfe,0x8f
3200
3201# CHECK: s_lshr_b64 s[10:11], s[4:5], s2         ; encoding: [0x04,0x02,0x8a,0x8f]
32020x04,0x02,0x8a,0x8f
3203
3204# CHECK: s_lshr_b64 s[10:11], s[100:101], s2     ; encoding: [0x64,0x02,0x8a,0x8f]
32050x64,0x02,0x8a,0x8f
3206
3207# CHECK: s_lshr_b64 s[10:11], flat_scratch, s2   ; encoding: [0x66,0x02,0x8a,0x8f]
32080x66,0x02,0x8a,0x8f
3209
3210# CHECK: s_lshr_b64 s[10:11], vcc, s2            ; encoding: [0x6a,0x02,0x8a,0x8f]
32110x6a,0x02,0x8a,0x8f
3212
3213# CHECK: s_lshr_b64 s[10:11], exec, s2           ; encoding: [0x7e,0x02,0x8a,0x8f]
32140x7e,0x02,0x8a,0x8f
3215
3216# CHECK: s_lshr_b64 s[10:11], 0, s2              ; encoding: [0x80,0x02,0x8a,0x8f]
32170x80,0x02,0x8a,0x8f
3218
3219# CHECK: s_lshr_b64 s[10:11], -1, s2             ; encoding: [0xc1,0x02,0x8a,0x8f]
32200xc1,0x02,0x8a,0x8f
3221
3222# CHECK: s_lshr_b64 s[10:11], 0.5, s2            ; encoding: [0xf0,0x02,0x8a,0x8f]
32230xf0,0x02,0x8a,0x8f
3224
3225# CHECK: s_lshr_b64 s[10:11], -4.0, s2           ; encoding: [0xf7,0x02,0x8a,0x8f]
32260xf7,0x02,0x8a,0x8f
3227
3228# CHECK: s_lshr_b64 s[10:11], 0xaf123456, s2     ; encoding: [0xff,0x02,0x8a,0x8f,0x56,0x34,0x12,0xaf]
32290xff,0x02,0x8a,0x8f,0x56,0x34,0x12,0xaf
3230
3231# CHECK: s_lshr_b64 s[10:11], 0x3f717273, s2     ; encoding: [0xff,0x02,0x8a,0x8f,0x73,0x72,0x71,0x3f]
32320xff,0x02,0x8a,0x8f,0x73,0x72,0x71,0x3f
3233
3234# CHECK: s_lshr_b64 s[10:11], s[2:3], s101       ; encoding: [0x02,0x65,0x8a,0x8f]
32350x02,0x65,0x8a,0x8f
3236
3237# CHECK: s_lshr_b64 s[10:11], s[2:3], flat_scratch_lo ; encoding: [0x02,0x66,0x8a,0x8f]
32380x02,0x66,0x8a,0x8f
3239
3240# CHECK: s_lshr_b64 s[10:11], s[2:3], flat_scratch_hi ; encoding: [0x02,0x67,0x8a,0x8f]
32410x02,0x67,0x8a,0x8f
3242
3243# CHECK: s_lshr_b64 s[10:11], s[2:3], vcc_lo     ; encoding: [0x02,0x6a,0x8a,0x8f]
32440x02,0x6a,0x8a,0x8f
3245
3246# CHECK: s_lshr_b64 s[10:11], s[2:3], vcc_hi     ; encoding: [0x02,0x6b,0x8a,0x8f]
32470x02,0x6b,0x8a,0x8f
3248
3249# CHECK: s_lshr_b64 s[10:11], s[2:3], m0         ; encoding: [0x02,0x7c,0x8a,0x8f]
32500x02,0x7c,0x8a,0x8f
3251
3252# CHECK: s_lshr_b64 s[10:11], s[2:3], exec_lo    ; encoding: [0x02,0x7e,0x8a,0x8f]
32530x02,0x7e,0x8a,0x8f
3254
3255# CHECK: s_lshr_b64 s[10:11], s[2:3], exec_hi    ; encoding: [0x02,0x7f,0x8a,0x8f]
32560x02,0x7f,0x8a,0x8f
3257
3258# CHECK: s_lshr_b64 s[10:11], s[2:3], 0          ; encoding: [0x02,0x80,0x8a,0x8f]
32590x02,0x80,0x8a,0x8f
3260
3261# CHECK: s_lshr_b64 s[10:11], s[2:3], -1         ; encoding: [0x02,0xc1,0x8a,0x8f]
32620x02,0xc1,0x8a,0x8f
3263
3264# CHECK: s_lshr_b64 s[10:11], s[2:3], 0.5        ; encoding: [0x02,0xf0,0x8a,0x8f]
32650x02,0xf0,0x8a,0x8f
3266
3267# CHECK: s_lshr_b64 s[10:11], s[2:3], -4.0       ; encoding: [0x02,0xf7,0x8a,0x8f]
32680x02,0xf7,0x8a,0x8f
3269
3270# CHECK: s_lshr_b64 s[10:11], s[2:3], 0xaf123456 ; encoding: [0x02,0xff,0x8a,0x8f,0x56,0x34,0x12,0xaf]
32710x02,0xff,0x8a,0x8f,0x56,0x34,0x12,0xaf
3272
3273# CHECK: s_lshr_b64 s[10:11], s[2:3], 0x3f717273 ; encoding: [0x02,0xff,0x8a,0x8f,0x73,0x72,0x71,0x3f]
32740x02,0xff,0x8a,0x8f,0x73,0x72,0x71,0x3f
3275
3276# CHECK: s_ashr_i32 s5, s1, s2                   ; encoding: [0x01,0x02,0x05,0x90]
32770x01,0x02,0x05,0x90
3278
3279# CHECK: s_ashr_i32 s101, s1, s2                 ; encoding: [0x01,0x02,0x65,0x90]
32800x01,0x02,0x65,0x90
3281
3282# CHECK: s_ashr_i32 flat_scratch_lo, s1, s2      ; encoding: [0x01,0x02,0x66,0x90]
32830x01,0x02,0x66,0x90
3284
3285# CHECK: s_ashr_i32 flat_scratch_hi, s1, s2      ; encoding: [0x01,0x02,0x67,0x90]
32860x01,0x02,0x67,0x90
3287
3288# CHECK: s_ashr_i32 vcc_lo, s1, s2               ; encoding: [0x01,0x02,0x6a,0x90]
32890x01,0x02,0x6a,0x90
3290
3291# CHECK: s_ashr_i32 vcc_hi, s1, s2               ; encoding: [0x01,0x02,0x6b,0x90]
32920x01,0x02,0x6b,0x90
3293
3294# CHECK: s_ashr_i32 m0, s1, s2                   ; encoding: [0x01,0x02,0x7c,0x90]
32950x01,0x02,0x7c,0x90
3296
3297# CHECK: s_ashr_i32 exec_lo, s1, s2              ; encoding: [0x01,0x02,0x7e,0x90]
32980x01,0x02,0x7e,0x90
3299
3300# CHECK: s_ashr_i32 exec_hi, s1, s2              ; encoding: [0x01,0x02,0x7f,0x90]
33010x01,0x02,0x7f,0x90
3302
3303# CHECK: s_ashr_i32 s5, s101, s2                 ; encoding: [0x65,0x02,0x05,0x90]
33040x65,0x02,0x05,0x90
3305
3306# CHECK: s_ashr_i32 s5, flat_scratch_lo, s2      ; encoding: [0x66,0x02,0x05,0x90]
33070x66,0x02,0x05,0x90
3308
3309# CHECK: s_ashr_i32 s5, flat_scratch_hi, s2      ; encoding: [0x67,0x02,0x05,0x90]
33100x67,0x02,0x05,0x90
3311
3312# CHECK: s_ashr_i32 s5, vcc_lo, s2               ; encoding: [0x6a,0x02,0x05,0x90]
33130x6a,0x02,0x05,0x90
3314
3315# CHECK: s_ashr_i32 s5, vcc_hi, s2               ; encoding: [0x6b,0x02,0x05,0x90]
33160x6b,0x02,0x05,0x90
3317
3318# CHECK: s_ashr_i32 s5, m0, s2                   ; encoding: [0x7c,0x02,0x05,0x90]
33190x7c,0x02,0x05,0x90
3320
3321# CHECK: s_ashr_i32 s5, exec_lo, s2              ; encoding: [0x7e,0x02,0x05,0x90]
33220x7e,0x02,0x05,0x90
3323
3324# CHECK: s_ashr_i32 s5, exec_hi, s2              ; encoding: [0x7f,0x02,0x05,0x90]
33250x7f,0x02,0x05,0x90
3326
3327# CHECK: s_ashr_i32 s5, 0, s2                    ; encoding: [0x80,0x02,0x05,0x90]
33280x80,0x02,0x05,0x90
3329
3330# CHECK: s_ashr_i32 s5, -1, s2                   ; encoding: [0xc1,0x02,0x05,0x90]
33310xc1,0x02,0x05,0x90
3332
3333# CHECK: s_ashr_i32 s5, 0.5, s2                  ; encoding: [0xf0,0x02,0x05,0x90]
33340xf0,0x02,0x05,0x90
3335
3336# CHECK: s_ashr_i32 s5, -4.0, s2                 ; encoding: [0xf7,0x02,0x05,0x90]
33370xf7,0x02,0x05,0x90
3338
3339# CHECK: s_ashr_i32 s5, 0xaf123456, s2           ; encoding: [0xff,0x02,0x05,0x90,0x56,0x34,0x12,0xaf]
33400xff,0x02,0x05,0x90,0x56,0x34,0x12,0xaf
3341
3342# CHECK: s_ashr_i32 s5, 0x3f717273, s2           ; encoding: [0xff,0x02,0x05,0x90,0x73,0x72,0x71,0x3f]
33430xff,0x02,0x05,0x90,0x73,0x72,0x71,0x3f
3344
3345# CHECK: s_ashr_i32 s5, s1, s101                 ; encoding: [0x01,0x65,0x05,0x90]
33460x01,0x65,0x05,0x90
3347
3348# CHECK: s_ashr_i32 s5, s1, flat_scratch_lo      ; encoding: [0x01,0x66,0x05,0x90]
33490x01,0x66,0x05,0x90
3350
3351# CHECK: s_ashr_i32 s5, s1, flat_scratch_hi      ; encoding: [0x01,0x67,0x05,0x90]
33520x01,0x67,0x05,0x90
3353
3354# CHECK: s_ashr_i32 s5, s1, vcc_lo               ; encoding: [0x01,0x6a,0x05,0x90]
33550x01,0x6a,0x05,0x90
3356
3357# CHECK: s_ashr_i32 s5, s1, vcc_hi               ; encoding: [0x01,0x6b,0x05,0x90]
33580x01,0x6b,0x05,0x90
3359
3360# CHECK: s_ashr_i32 s5, s1, m0                   ; encoding: [0x01,0x7c,0x05,0x90]
33610x01,0x7c,0x05,0x90
3362
3363# CHECK: s_ashr_i32 s5, s1, exec_lo              ; encoding: [0x01,0x7e,0x05,0x90]
33640x01,0x7e,0x05,0x90
3365
3366# CHECK: s_ashr_i32 s5, s1, exec_hi              ; encoding: [0x01,0x7f,0x05,0x90]
33670x01,0x7f,0x05,0x90
3368
3369# CHECK: s_ashr_i32 s5, s1, 0                    ; encoding: [0x01,0x80,0x05,0x90]
33700x01,0x80,0x05,0x90
3371
3372# CHECK: s_ashr_i32 s5, s1, -1                   ; encoding: [0x01,0xc1,0x05,0x90]
33730x01,0xc1,0x05,0x90
3374
3375# CHECK: s_ashr_i32 s5, s1, 0.5                  ; encoding: [0x01,0xf0,0x05,0x90]
33760x01,0xf0,0x05,0x90
3377
3378# CHECK: s_ashr_i32 s5, s1, -4.0                 ; encoding: [0x01,0xf7,0x05,0x90]
33790x01,0xf7,0x05,0x90
3380
3381# CHECK: s_ashr_i32 s5, s1, 0xaf123456           ; encoding: [0x01,0xff,0x05,0x90,0x56,0x34,0x12,0xaf]
33820x01,0xff,0x05,0x90,0x56,0x34,0x12,0xaf
3383
3384# CHECK: s_ashr_i32 s5, s1, 0x3f717273           ; encoding: [0x01,0xff,0x05,0x90,0x73,0x72,0x71,0x3f]
33850x01,0xff,0x05,0x90,0x73,0x72,0x71,0x3f
3386
3387# CHECK: s_ashr_i64 s[10:11], s[2:3], s2         ; encoding: [0x02,0x02,0x8a,0x90]
33880x02,0x02,0x8a,0x90
3389
3390# CHECK: s_ashr_i64 s[12:13], s[2:3], s2         ; encoding: [0x02,0x02,0x8c,0x90]
33910x02,0x02,0x8c,0x90
3392
3393# CHECK: s_ashr_i64 s[100:101], s[2:3], s2       ; encoding: [0x02,0x02,0xe4,0x90]
33940x02,0x02,0xe4,0x90
3395
3396# CHECK: s_ashr_i64 flat_scratch, s[2:3], s2     ; encoding: [0x02,0x02,0xe6,0x90]
33970x02,0x02,0xe6,0x90
3398
3399# CHECK: s_ashr_i64 vcc, s[2:3], s2              ; encoding: [0x02,0x02,0xea,0x90]
34000x02,0x02,0xea,0x90
3401
3402# CHECK: s_ashr_i64 exec, s[2:3], s2             ; encoding: [0x02,0x02,0xfe,0x90]
34030x02,0x02,0xfe,0x90
3404
3405# CHECK: s_ashr_i64 s[10:11], s[4:5], s2         ; encoding: [0x04,0x02,0x8a,0x90]
34060x04,0x02,0x8a,0x90
3407
3408# CHECK: s_ashr_i64 s[10:11], s[100:101], s2     ; encoding: [0x64,0x02,0x8a,0x90]
34090x64,0x02,0x8a,0x90
3410
3411# CHECK: s_ashr_i64 s[10:11], flat_scratch, s2   ; encoding: [0x66,0x02,0x8a,0x90]
34120x66,0x02,0x8a,0x90
3413
3414# CHECK: s_ashr_i64 s[10:11], vcc, s2            ; encoding: [0x6a,0x02,0x8a,0x90]
34150x6a,0x02,0x8a,0x90
3416
3417# CHECK: s_ashr_i64 s[10:11], exec, s2           ; encoding: [0x7e,0x02,0x8a,0x90]
34180x7e,0x02,0x8a,0x90
3419
3420# CHECK: s_ashr_i64 s[10:11], 0, s2              ; encoding: [0x80,0x02,0x8a,0x90]
34210x80,0x02,0x8a,0x90
3422
3423# CHECK: s_ashr_i64 s[10:11], -1, s2             ; encoding: [0xc1,0x02,0x8a,0x90]
34240xc1,0x02,0x8a,0x90
3425
3426# CHECK: s_ashr_i64 s[10:11], 0.5, s2            ; encoding: [0xf0,0x02,0x8a,0x90]
34270xf0,0x02,0x8a,0x90
3428
3429# CHECK: s_ashr_i64 s[10:11], -4.0, s2           ; encoding: [0xf7,0x02,0x8a,0x90]
34300xf7,0x02,0x8a,0x90
3431
3432# CHECK: s_ashr_i64 s[10:11], 0xaf123456, s2     ; encoding: [0xff,0x02,0x8a,0x90,0x56,0x34,0x12,0xaf]
34330xff,0x02,0x8a,0x90,0x56,0x34,0x12,0xaf
3434
3435# CHECK: s_ashr_i64 s[10:11], 0x3f717273, s2     ; encoding: [0xff,0x02,0x8a,0x90,0x73,0x72,0x71,0x3f]
34360xff,0x02,0x8a,0x90,0x73,0x72,0x71,0x3f
3437
3438# CHECK: s_ashr_i64 s[10:11], s[2:3], s101       ; encoding: [0x02,0x65,0x8a,0x90]
34390x02,0x65,0x8a,0x90
3440
3441# CHECK: s_ashr_i64 s[10:11], s[2:3], flat_scratch_lo ; encoding: [0x02,0x66,0x8a,0x90]
34420x02,0x66,0x8a,0x90
3443
3444# CHECK: s_ashr_i64 s[10:11], s[2:3], flat_scratch_hi ; encoding: [0x02,0x67,0x8a,0x90]
34450x02,0x67,0x8a,0x90
3446
3447# CHECK: s_ashr_i64 s[10:11], s[2:3], vcc_lo     ; encoding: [0x02,0x6a,0x8a,0x90]
34480x02,0x6a,0x8a,0x90
3449
3450# CHECK: s_ashr_i64 s[10:11], s[2:3], vcc_hi     ; encoding: [0x02,0x6b,0x8a,0x90]
34510x02,0x6b,0x8a,0x90
3452
3453# CHECK: s_ashr_i64 s[10:11], s[2:3], m0         ; encoding: [0x02,0x7c,0x8a,0x90]
34540x02,0x7c,0x8a,0x90
3455
3456# CHECK: s_ashr_i64 s[10:11], s[2:3], exec_lo    ; encoding: [0x02,0x7e,0x8a,0x90]
34570x02,0x7e,0x8a,0x90
3458
3459# CHECK: s_ashr_i64 s[10:11], s[2:3], exec_hi    ; encoding: [0x02,0x7f,0x8a,0x90]
34600x02,0x7f,0x8a,0x90
3461
3462# CHECK: s_ashr_i64 s[10:11], s[2:3], 0          ; encoding: [0x02,0x80,0x8a,0x90]
34630x02,0x80,0x8a,0x90
3464
3465# CHECK: s_ashr_i64 s[10:11], s[2:3], -1         ; encoding: [0x02,0xc1,0x8a,0x90]
34660x02,0xc1,0x8a,0x90
3467
3468# CHECK: s_ashr_i64 s[10:11], s[2:3], 0.5        ; encoding: [0x02,0xf0,0x8a,0x90]
34690x02,0xf0,0x8a,0x90
3470
3471# CHECK: s_ashr_i64 s[10:11], s[2:3], -4.0       ; encoding: [0x02,0xf7,0x8a,0x90]
34720x02,0xf7,0x8a,0x90
3473
3474# CHECK: s_ashr_i64 s[10:11], s[2:3], 0xaf123456 ; encoding: [0x02,0xff,0x8a,0x90,0x56,0x34,0x12,0xaf]
34750x02,0xff,0x8a,0x90,0x56,0x34,0x12,0xaf
3476
3477# CHECK: s_ashr_i64 s[10:11], s[2:3], 0x3f717273 ; encoding: [0x02,0xff,0x8a,0x90,0x73,0x72,0x71,0x3f]
34780x02,0xff,0x8a,0x90,0x73,0x72,0x71,0x3f
3479
3480# CHECK: s_bfm_b32 s5, s1, s2                    ; encoding: [0x01,0x02,0x05,0x91]
34810x01,0x02,0x05,0x91
3482
3483# CHECK: s_bfm_b32 s101, s1, s2                  ; encoding: [0x01,0x02,0x65,0x91]
34840x01,0x02,0x65,0x91
3485
3486# CHECK: s_bfm_b32 flat_scratch_lo, s1, s2       ; encoding: [0x01,0x02,0x66,0x91]
34870x01,0x02,0x66,0x91
3488
3489# CHECK: s_bfm_b32 flat_scratch_hi, s1, s2       ; encoding: [0x01,0x02,0x67,0x91]
34900x01,0x02,0x67,0x91
3491
3492# CHECK: s_bfm_b32 vcc_lo, s1, s2                ; encoding: [0x01,0x02,0x6a,0x91]
34930x01,0x02,0x6a,0x91
3494
3495# CHECK: s_bfm_b32 vcc_hi, s1, s2                ; encoding: [0x01,0x02,0x6b,0x91]
34960x01,0x02,0x6b,0x91
3497
3498# CHECK: s_bfm_b32 m0, s1, s2                    ; encoding: [0x01,0x02,0x7c,0x91]
34990x01,0x02,0x7c,0x91
3500
3501# CHECK: s_bfm_b32 exec_lo, s1, s2               ; encoding: [0x01,0x02,0x7e,0x91]
35020x01,0x02,0x7e,0x91
3503
3504# CHECK: s_bfm_b32 exec_hi, s1, s2               ; encoding: [0x01,0x02,0x7f,0x91]
35050x01,0x02,0x7f,0x91
3506
3507# CHECK: s_bfm_b32 s5, s101, s2                  ; encoding: [0x65,0x02,0x05,0x91]
35080x65,0x02,0x05,0x91
3509
3510# CHECK: s_bfm_b32 s5, flat_scratch_lo, s2       ; encoding: [0x66,0x02,0x05,0x91]
35110x66,0x02,0x05,0x91
3512
3513# CHECK: s_bfm_b32 s5, flat_scratch_hi, s2       ; encoding: [0x67,0x02,0x05,0x91]
35140x67,0x02,0x05,0x91
3515
3516# CHECK: s_bfm_b32 s5, vcc_lo, s2                ; encoding: [0x6a,0x02,0x05,0x91]
35170x6a,0x02,0x05,0x91
3518
3519# CHECK: s_bfm_b32 s5, vcc_hi, s2                ; encoding: [0x6b,0x02,0x05,0x91]
35200x6b,0x02,0x05,0x91
3521
3522# CHECK: s_bfm_b32 s5, m0, s2                    ; encoding: [0x7c,0x02,0x05,0x91]
35230x7c,0x02,0x05,0x91
3524
3525# CHECK: s_bfm_b32 s5, exec_lo, s2               ; encoding: [0x7e,0x02,0x05,0x91]
35260x7e,0x02,0x05,0x91
3527
3528# CHECK: s_bfm_b32 s5, exec_hi, s2               ; encoding: [0x7f,0x02,0x05,0x91]
35290x7f,0x02,0x05,0x91
3530
3531# CHECK: s_bfm_b32 s5, 0, s2                     ; encoding: [0x80,0x02,0x05,0x91]
35320x80,0x02,0x05,0x91
3533
3534# CHECK: s_bfm_b32 s5, -1, s2                    ; encoding: [0xc1,0x02,0x05,0x91]
35350xc1,0x02,0x05,0x91
3536
3537# CHECK: s_bfm_b32 s5, 0.5, s2                   ; encoding: [0xf0,0x02,0x05,0x91]
35380xf0,0x02,0x05,0x91
3539
3540# CHECK: s_bfm_b32 s5, -4.0, s2                  ; encoding: [0xf7,0x02,0x05,0x91]
35410xf7,0x02,0x05,0x91
3542
3543# CHECK: s_bfm_b32 s5, 0xaf123456, s2            ; encoding: [0xff,0x02,0x05,0x91,0x56,0x34,0x12,0xaf]
35440xff,0x02,0x05,0x91,0x56,0x34,0x12,0xaf
3545
3546# CHECK: s_bfm_b32 s5, 0x3f717273, s2            ; encoding: [0xff,0x02,0x05,0x91,0x73,0x72,0x71,0x3f]
35470xff,0x02,0x05,0x91,0x73,0x72,0x71,0x3f
3548
3549# CHECK: s_bfm_b32 s5, s1, s101                  ; encoding: [0x01,0x65,0x05,0x91]
35500x01,0x65,0x05,0x91
3551
3552# CHECK: s_bfm_b32 s5, s1, flat_scratch_lo       ; encoding: [0x01,0x66,0x05,0x91]
35530x01,0x66,0x05,0x91
3554
3555# CHECK: s_bfm_b32 s5, s1, flat_scratch_hi       ; encoding: [0x01,0x67,0x05,0x91]
35560x01,0x67,0x05,0x91
3557
3558# CHECK: s_bfm_b32 s5, s1, vcc_lo                ; encoding: [0x01,0x6a,0x05,0x91]
35590x01,0x6a,0x05,0x91
3560
3561# CHECK: s_bfm_b32 s5, s1, vcc_hi                ; encoding: [0x01,0x6b,0x05,0x91]
35620x01,0x6b,0x05,0x91
3563
3564# CHECK: s_bfm_b32 s5, s1, m0                    ; encoding: [0x01,0x7c,0x05,0x91]
35650x01,0x7c,0x05,0x91
3566
3567# CHECK: s_bfm_b32 s5, s1, exec_lo               ; encoding: [0x01,0x7e,0x05,0x91]
35680x01,0x7e,0x05,0x91
3569
3570# CHECK: s_bfm_b32 s5, s1, exec_hi               ; encoding: [0x01,0x7f,0x05,0x91]
35710x01,0x7f,0x05,0x91
3572
3573# CHECK: s_bfm_b32 s5, s1, 0                     ; encoding: [0x01,0x80,0x05,0x91]
35740x01,0x80,0x05,0x91
3575
3576# CHECK: s_bfm_b32 s5, s1, -1                    ; encoding: [0x01,0xc1,0x05,0x91]
35770x01,0xc1,0x05,0x91
3578
3579# CHECK: s_bfm_b32 s5, s1, 0.5                   ; encoding: [0x01,0xf0,0x05,0x91]
35800x01,0xf0,0x05,0x91
3581
3582# CHECK: s_bfm_b32 s5, s1, -4.0                  ; encoding: [0x01,0xf7,0x05,0x91]
35830x01,0xf7,0x05,0x91
3584
3585# CHECK: s_bfm_b32 s5, s1, 0xaf123456            ; encoding: [0x01,0xff,0x05,0x91,0x56,0x34,0x12,0xaf]
35860x01,0xff,0x05,0x91,0x56,0x34,0x12,0xaf
3587
3588# CHECK: s_bfm_b32 s5, s1, 0x3f717273            ; encoding: [0x01,0xff,0x05,0x91,0x73,0x72,0x71,0x3f]
35890x01,0xff,0x05,0x91,0x73,0x72,0x71,0x3f
3590
3591# CHECK: s_bfm_b64 s[10:11], s1, s2              ; encoding: [0x01,0x02,0x8a,0x91]
35920x01,0x02,0x8a,0x91
3593
3594# CHECK: s_bfm_b64 s[12:13], s1, s2              ; encoding: [0x01,0x02,0x8c,0x91]
35950x01,0x02,0x8c,0x91
3596
3597# CHECK: s_bfm_b64 s[100:101], s1, s2            ; encoding: [0x01,0x02,0xe4,0x91]
35980x01,0x02,0xe4,0x91
3599
3600# CHECK: s_bfm_b64 flat_scratch, s1, s2          ; encoding: [0x01,0x02,0xe6,0x91]
36010x01,0x02,0xe6,0x91
3602
3603# CHECK: s_bfm_b64 vcc, s1, s2                   ; encoding: [0x01,0x02,0xea,0x91]
36040x01,0x02,0xea,0x91
3605
3606# CHECK: s_bfm_b64 exec, s1, s2                  ; encoding: [0x01,0x02,0xfe,0x91]
36070x01,0x02,0xfe,0x91
3608
3609# CHECK: s_bfm_b64 s[10:11], s101, s2            ; encoding: [0x65,0x02,0x8a,0x91]
36100x65,0x02,0x8a,0x91
3611
3612# CHECK: s_bfm_b64 s[10:11], flat_scratch_lo, s2 ; encoding: [0x66,0x02,0x8a,0x91]
36130x66,0x02,0x8a,0x91
3614
3615# CHECK: s_bfm_b64 s[10:11], flat_scratch_hi, s2 ; encoding: [0x67,0x02,0x8a,0x91]
36160x67,0x02,0x8a,0x91
3617
3618# CHECK: s_bfm_b64 s[10:11], vcc_lo, s2          ; encoding: [0x6a,0x02,0x8a,0x91]
36190x6a,0x02,0x8a,0x91
3620
3621# CHECK: s_bfm_b64 s[10:11], vcc_hi, s2          ; encoding: [0x6b,0x02,0x8a,0x91]
36220x6b,0x02,0x8a,0x91
3623
3624# CHECK: s_bfm_b64 s[10:11], m0, s2              ; encoding: [0x7c,0x02,0x8a,0x91]
36250x7c,0x02,0x8a,0x91
3626
3627# CHECK: s_bfm_b64 s[10:11], exec_lo, s2         ; encoding: [0x7e,0x02,0x8a,0x91]
36280x7e,0x02,0x8a,0x91
3629
3630# CHECK: s_bfm_b64 s[10:11], exec_hi, s2         ; encoding: [0x7f,0x02,0x8a,0x91]
36310x7f,0x02,0x8a,0x91
3632
3633# CHECK: s_bfm_b64 s[10:11], 0, s2               ; encoding: [0x80,0x02,0x8a,0x91]
36340x80,0x02,0x8a,0x91
3635
3636# CHECK: s_bfm_b64 s[10:11], -1, s2              ; encoding: [0xc1,0x02,0x8a,0x91]
36370xc1,0x02,0x8a,0x91
3638
3639# CHECK: s_bfm_b64 s[10:11], 0.5, s2             ; encoding: [0xf0,0x02,0x8a,0x91]
36400xf0,0x02,0x8a,0x91
3641
3642# CHECK: s_bfm_b64 s[10:11], -4.0, s2            ; encoding: [0xf7,0x02,0x8a,0x91]
36430xf7,0x02,0x8a,0x91
3644
3645# CHECK: s_bfm_b64 s[10:11], 0xaf123456, s2      ; encoding: [0xff,0x02,0x8a,0x91,0x56,0x34,0x12,0xaf]
36460xff,0x02,0x8a,0x91,0x56,0x34,0x12,0xaf
3647
3648# CHECK: s_bfm_b64 s[10:11], 0x3f717273, s2      ; encoding: [0xff,0x02,0x8a,0x91,0x73,0x72,0x71,0x3f]
36490xff,0x02,0x8a,0x91,0x73,0x72,0x71,0x3f
3650
3651# CHECK: s_bfm_b64 s[10:11], s1, s101            ; encoding: [0x01,0x65,0x8a,0x91]
36520x01,0x65,0x8a,0x91
3653
3654# CHECK: s_bfm_b64 s[10:11], s1, flat_scratch_lo ; encoding: [0x01,0x66,0x8a,0x91]
36550x01,0x66,0x8a,0x91
3656
3657# CHECK: s_bfm_b64 s[10:11], s1, flat_scratch_hi ; encoding: [0x01,0x67,0x8a,0x91]
36580x01,0x67,0x8a,0x91
3659
3660# CHECK: s_bfm_b64 s[10:11], s1, vcc_lo          ; encoding: [0x01,0x6a,0x8a,0x91]
36610x01,0x6a,0x8a,0x91
3662
3663# CHECK: s_bfm_b64 s[10:11], s1, vcc_hi          ; encoding: [0x01,0x6b,0x8a,0x91]
36640x01,0x6b,0x8a,0x91
3665
3666# CHECK: s_bfm_b64 s[10:11], s1, m0              ; encoding: [0x01,0x7c,0x8a,0x91]
36670x01,0x7c,0x8a,0x91
3668
3669# CHECK: s_bfm_b64 s[10:11], s1, exec_lo         ; encoding: [0x01,0x7e,0x8a,0x91]
36700x01,0x7e,0x8a,0x91
3671
3672# CHECK: s_bfm_b64 s[10:11], s1, exec_hi         ; encoding: [0x01,0x7f,0x8a,0x91]
36730x01,0x7f,0x8a,0x91
3674
3675# CHECK: s_bfm_b64 s[10:11], s1, 0               ; encoding: [0x01,0x80,0x8a,0x91]
36760x01,0x80,0x8a,0x91
3677
3678# CHECK: s_bfm_b64 s[10:11], s1, -1              ; encoding: [0x01,0xc1,0x8a,0x91]
36790x01,0xc1,0x8a,0x91
3680
3681# CHECK: s_bfm_b64 s[10:11], s1, 0.5             ; encoding: [0x01,0xf0,0x8a,0x91]
36820x01,0xf0,0x8a,0x91
3683
3684# CHECK: s_bfm_b64 s[10:11], s1, -4.0            ; encoding: [0x01,0xf7,0x8a,0x91]
36850x01,0xf7,0x8a,0x91
3686
3687# CHECK: s_bfm_b64 s[10:11], s1, 0xaf123456      ; encoding: [0x01,0xff,0x8a,0x91,0x56,0x34,0x12,0xaf]
36880x01,0xff,0x8a,0x91,0x56,0x34,0x12,0xaf
3689
3690# CHECK: s_bfm_b64 s[10:11], s1, 0x3f717273      ; encoding: [0x01,0xff,0x8a,0x91,0x73,0x72,0x71,0x3f]
36910x01,0xff,0x8a,0x91,0x73,0x72,0x71,0x3f
3692
3693# CHECK: s_mul_i32 s5, s1, s2                    ; encoding: [0x01,0x02,0x05,0x92]
36940x01,0x02,0x05,0x92
3695
3696# CHECK: s_mul_i32 s101, s1, s2                  ; encoding: [0x01,0x02,0x65,0x92]
36970x01,0x02,0x65,0x92
3698
3699# CHECK: s_mul_i32 flat_scratch_lo, s1, s2       ; encoding: [0x01,0x02,0x66,0x92]
37000x01,0x02,0x66,0x92
3701
3702# CHECK: s_mul_i32 flat_scratch_hi, s1, s2       ; encoding: [0x01,0x02,0x67,0x92]
37030x01,0x02,0x67,0x92
3704
3705# CHECK: s_mul_i32 vcc_lo, s1, s2                ; encoding: [0x01,0x02,0x6a,0x92]
37060x01,0x02,0x6a,0x92
3707
3708# CHECK: s_mul_i32 vcc_hi, s1, s2                ; encoding: [0x01,0x02,0x6b,0x92]
37090x01,0x02,0x6b,0x92
3710
3711# CHECK: s_mul_i32 m0, s1, s2                    ; encoding: [0x01,0x02,0x7c,0x92]
37120x01,0x02,0x7c,0x92
3713
3714# CHECK: s_mul_i32 exec_lo, s1, s2               ; encoding: [0x01,0x02,0x7e,0x92]
37150x01,0x02,0x7e,0x92
3716
3717# CHECK: s_mul_i32 exec_hi, s1, s2               ; encoding: [0x01,0x02,0x7f,0x92]
37180x01,0x02,0x7f,0x92
3719
3720# CHECK: s_mul_i32 s5, s101, s2                  ; encoding: [0x65,0x02,0x05,0x92]
37210x65,0x02,0x05,0x92
3722
3723# CHECK: s_mul_i32 s5, flat_scratch_lo, s2       ; encoding: [0x66,0x02,0x05,0x92]
37240x66,0x02,0x05,0x92
3725
3726# CHECK: s_mul_i32 s5, flat_scratch_hi, s2       ; encoding: [0x67,0x02,0x05,0x92]
37270x67,0x02,0x05,0x92
3728
3729# CHECK: s_mul_i32 s5, vcc_lo, s2                ; encoding: [0x6a,0x02,0x05,0x92]
37300x6a,0x02,0x05,0x92
3731
3732# CHECK: s_mul_i32 s5, vcc_hi, s2                ; encoding: [0x6b,0x02,0x05,0x92]
37330x6b,0x02,0x05,0x92
3734
3735# CHECK: s_mul_i32 s5, m0, s2                    ; encoding: [0x7c,0x02,0x05,0x92]
37360x7c,0x02,0x05,0x92
3737
3738# CHECK: s_mul_i32 s5, exec_lo, s2               ; encoding: [0x7e,0x02,0x05,0x92]
37390x7e,0x02,0x05,0x92
3740
3741# CHECK: s_mul_i32 s5, exec_hi, s2               ; encoding: [0x7f,0x02,0x05,0x92]
37420x7f,0x02,0x05,0x92
3743
3744# CHECK: s_mul_i32 s5, 0, s2                     ; encoding: [0x80,0x02,0x05,0x92]
37450x80,0x02,0x05,0x92
3746
3747# CHECK: s_mul_i32 s5, -1, s2                    ; encoding: [0xc1,0x02,0x05,0x92]
37480xc1,0x02,0x05,0x92
3749
3750# CHECK: s_mul_i32 s5, 0.5, s2                   ; encoding: [0xf0,0x02,0x05,0x92]
37510xf0,0x02,0x05,0x92
3752
3753# CHECK: s_mul_i32 s5, -4.0, s2                  ; encoding: [0xf7,0x02,0x05,0x92]
37540xf7,0x02,0x05,0x92
3755
3756# CHECK: s_mul_i32 s5, 0xaf123456, s2            ; encoding: [0xff,0x02,0x05,0x92,0x56,0x34,0x12,0xaf]
37570xff,0x02,0x05,0x92,0x56,0x34,0x12,0xaf
3758
3759# CHECK: s_mul_i32 s5, 0x3f717273, s2            ; encoding: [0xff,0x02,0x05,0x92,0x73,0x72,0x71,0x3f]
37600xff,0x02,0x05,0x92,0x73,0x72,0x71,0x3f
3761
3762# CHECK: s_mul_i32 s5, s1, s101                  ; encoding: [0x01,0x65,0x05,0x92]
37630x01,0x65,0x05,0x92
3764
3765# CHECK: s_mul_i32 s5, s1, flat_scratch_lo       ; encoding: [0x01,0x66,0x05,0x92]
37660x01,0x66,0x05,0x92
3767
3768# CHECK: s_mul_i32 s5, s1, flat_scratch_hi       ; encoding: [0x01,0x67,0x05,0x92]
37690x01,0x67,0x05,0x92
3770
3771# CHECK: s_mul_i32 s5, s1, vcc_lo                ; encoding: [0x01,0x6a,0x05,0x92]
37720x01,0x6a,0x05,0x92
3773
3774# CHECK: s_mul_i32 s5, s1, vcc_hi                ; encoding: [0x01,0x6b,0x05,0x92]
37750x01,0x6b,0x05,0x92
3776
3777# CHECK: s_mul_i32 s5, s1, m0                    ; encoding: [0x01,0x7c,0x05,0x92]
37780x01,0x7c,0x05,0x92
3779
3780# CHECK: s_mul_i32 s5, s1, exec_lo               ; encoding: [0x01,0x7e,0x05,0x92]
37810x01,0x7e,0x05,0x92
3782
3783# CHECK: s_mul_i32 s5, s1, exec_hi               ; encoding: [0x01,0x7f,0x05,0x92]
37840x01,0x7f,0x05,0x92
3785
3786# CHECK: s_mul_i32 s5, s1, 0                     ; encoding: [0x01,0x80,0x05,0x92]
37870x01,0x80,0x05,0x92
3788
3789# CHECK: s_mul_i32 s5, s1, -1                    ; encoding: [0x01,0xc1,0x05,0x92]
37900x01,0xc1,0x05,0x92
3791
3792# CHECK: s_mul_i32 s5, s1, 0.5                   ; encoding: [0x01,0xf0,0x05,0x92]
37930x01,0xf0,0x05,0x92
3794
3795# CHECK: s_mul_i32 s5, s1, -4.0                  ; encoding: [0x01,0xf7,0x05,0x92]
37960x01,0xf7,0x05,0x92
3797
3798# CHECK: s_mul_i32 s5, s1, 0xaf123456            ; encoding: [0x01,0xff,0x05,0x92,0x56,0x34,0x12,0xaf]
37990x01,0xff,0x05,0x92,0x56,0x34,0x12,0xaf
3800
3801# CHECK: s_mul_i32 s5, s1, 0x3f717273            ; encoding: [0x01,0xff,0x05,0x92,0x73,0x72,0x71,0x3f]
38020x01,0xff,0x05,0x92,0x73,0x72,0x71,0x3f
3803
3804# CHECK: s_bfe_u32 s5, s1, s2                    ; encoding: [0x01,0x02,0x85,0x92]
38050x01,0x02,0x85,0x92
3806
3807# CHECK: s_bfe_u32 s101, s1, s2                  ; encoding: [0x01,0x02,0xe5,0x92]
38080x01,0x02,0xe5,0x92
3809
3810# CHECK: s_bfe_u32 flat_scratch_lo, s1, s2       ; encoding: [0x01,0x02,0xe6,0x92]
38110x01,0x02,0xe6,0x92
3812
3813# CHECK: s_bfe_u32 flat_scratch_hi, s1, s2       ; encoding: [0x01,0x02,0xe7,0x92]
38140x01,0x02,0xe7,0x92
3815
3816# CHECK: s_bfe_u32 vcc_lo, s1, s2                ; encoding: [0x01,0x02,0xea,0x92]
38170x01,0x02,0xea,0x92
3818
3819# CHECK: s_bfe_u32 vcc_hi, s1, s2                ; encoding: [0x01,0x02,0xeb,0x92]
38200x01,0x02,0xeb,0x92
3821
3822# CHECK: s_bfe_u32 m0, s1, s2                    ; encoding: [0x01,0x02,0xfc,0x92]
38230x01,0x02,0xfc,0x92
3824
3825# CHECK: s_bfe_u32 exec_lo, s1, s2               ; encoding: [0x01,0x02,0xfe,0x92]
38260x01,0x02,0xfe,0x92
3827
3828# CHECK: s_bfe_u32 exec_hi, s1, s2               ; encoding: [0x01,0x02,0xff,0x92]
38290x01,0x02,0xff,0x92
3830
3831# CHECK: s_bfe_u32 s5, s101, s2                  ; encoding: [0x65,0x02,0x85,0x92]
38320x65,0x02,0x85,0x92
3833
3834# CHECK: s_bfe_u32 s5, flat_scratch_lo, s2       ; encoding: [0x66,0x02,0x85,0x92]
38350x66,0x02,0x85,0x92
3836
3837# CHECK: s_bfe_u32 s5, flat_scratch_hi, s2       ; encoding: [0x67,0x02,0x85,0x92]
38380x67,0x02,0x85,0x92
3839
3840# CHECK: s_bfe_u32 s5, vcc_lo, s2                ; encoding: [0x6a,0x02,0x85,0x92]
38410x6a,0x02,0x85,0x92
3842
3843# CHECK: s_bfe_u32 s5, vcc_hi, s2                ; encoding: [0x6b,0x02,0x85,0x92]
38440x6b,0x02,0x85,0x92
3845
3846# CHECK: s_bfe_u32 s5, m0, s2                    ; encoding: [0x7c,0x02,0x85,0x92]
38470x7c,0x02,0x85,0x92
3848
3849# CHECK: s_bfe_u32 s5, exec_lo, s2               ; encoding: [0x7e,0x02,0x85,0x92]
38500x7e,0x02,0x85,0x92
3851
3852# CHECK: s_bfe_u32 s5, exec_hi, s2               ; encoding: [0x7f,0x02,0x85,0x92]
38530x7f,0x02,0x85,0x92
3854
3855# CHECK: s_bfe_u32 s5, 0, s2                     ; encoding: [0x80,0x02,0x85,0x92]
38560x80,0x02,0x85,0x92
3857
3858# CHECK: s_bfe_u32 s5, -1, s2                    ; encoding: [0xc1,0x02,0x85,0x92]
38590xc1,0x02,0x85,0x92
3860
3861# CHECK: s_bfe_u32 s5, 0.5, s2                   ; encoding: [0xf0,0x02,0x85,0x92]
38620xf0,0x02,0x85,0x92
3863
3864# CHECK: s_bfe_u32 s5, -4.0, s2                  ; encoding: [0xf7,0x02,0x85,0x92]
38650xf7,0x02,0x85,0x92
3866
3867# CHECK: s_bfe_u32 s5, 0xaf123456, s2            ; encoding: [0xff,0x02,0x85,0x92,0x56,0x34,0x12,0xaf]
38680xff,0x02,0x85,0x92,0x56,0x34,0x12,0xaf
3869
3870# CHECK: s_bfe_u32 s5, 0x3f717273, s2            ; encoding: [0xff,0x02,0x85,0x92,0x73,0x72,0x71,0x3f]
38710xff,0x02,0x85,0x92,0x73,0x72,0x71,0x3f
3872
3873# CHECK: s_bfe_u32 s5, s1, s101                  ; encoding: [0x01,0x65,0x85,0x92]
38740x01,0x65,0x85,0x92
3875
3876# CHECK: s_bfe_u32 s5, s1, flat_scratch_lo       ; encoding: [0x01,0x66,0x85,0x92]
38770x01,0x66,0x85,0x92
3878
3879# CHECK: s_bfe_u32 s5, s1, flat_scratch_hi       ; encoding: [0x01,0x67,0x85,0x92]
38800x01,0x67,0x85,0x92
3881
3882# CHECK: s_bfe_u32 s5, s1, vcc_lo                ; encoding: [0x01,0x6a,0x85,0x92]
38830x01,0x6a,0x85,0x92
3884
3885# CHECK: s_bfe_u32 s5, s1, vcc_hi                ; encoding: [0x01,0x6b,0x85,0x92]
38860x01,0x6b,0x85,0x92
3887
3888# CHECK: s_bfe_u32 s5, s1, m0                    ; encoding: [0x01,0x7c,0x85,0x92]
38890x01,0x7c,0x85,0x92
3890
3891# CHECK: s_bfe_u32 s5, s1, exec_lo               ; encoding: [0x01,0x7e,0x85,0x92]
38920x01,0x7e,0x85,0x92
3893
3894# CHECK: s_bfe_u32 s5, s1, exec_hi               ; encoding: [0x01,0x7f,0x85,0x92]
38950x01,0x7f,0x85,0x92
3896
3897# CHECK: s_bfe_u32 s5, s1, 0                     ; encoding: [0x01,0x80,0x85,0x92]
38980x01,0x80,0x85,0x92
3899
3900# CHECK: s_bfe_u32 s5, s1, -1                    ; encoding: [0x01,0xc1,0x85,0x92]
39010x01,0xc1,0x85,0x92
3902
3903# CHECK: s_bfe_u32 s5, s1, 0.5                   ; encoding: [0x01,0xf0,0x85,0x92]
39040x01,0xf0,0x85,0x92
3905
3906# CHECK: s_bfe_u32 s5, s1, -4.0                  ; encoding: [0x01,0xf7,0x85,0x92]
39070x01,0xf7,0x85,0x92
3908
3909# CHECK: s_bfe_u32 s5, s1, 0xaf123456            ; encoding: [0x01,0xff,0x85,0x92,0x56,0x34,0x12,0xaf]
39100x01,0xff,0x85,0x92,0x56,0x34,0x12,0xaf
3911
3912# CHECK: s_bfe_u32 s5, s1, 0x3f717273            ; encoding: [0x01,0xff,0x85,0x92,0x73,0x72,0x71,0x3f]
39130x01,0xff,0x85,0x92,0x73,0x72,0x71,0x3f
3914
3915# CHECK: s_bfe_i32 s5, s1, s2                    ; encoding: [0x01,0x02,0x05,0x93]
39160x01,0x02,0x05,0x93
3917
3918# CHECK: s_bfe_i32 s101, s1, s2                  ; encoding: [0x01,0x02,0x65,0x93]
39190x01,0x02,0x65,0x93
3920
3921# CHECK: s_bfe_i32 flat_scratch_lo, s1, s2       ; encoding: [0x01,0x02,0x66,0x93]
39220x01,0x02,0x66,0x93
3923
3924# CHECK: s_bfe_i32 flat_scratch_hi, s1, s2       ; encoding: [0x01,0x02,0x67,0x93]
39250x01,0x02,0x67,0x93
3926
3927# CHECK: s_bfe_i32 vcc_lo, s1, s2                ; encoding: [0x01,0x02,0x6a,0x93]
39280x01,0x02,0x6a,0x93
3929
3930# CHECK: s_bfe_i32 vcc_hi, s1, s2                ; encoding: [0x01,0x02,0x6b,0x93]
39310x01,0x02,0x6b,0x93
3932
3933# CHECK: s_bfe_i32 m0, s1, s2                    ; encoding: [0x01,0x02,0x7c,0x93]
39340x01,0x02,0x7c,0x93
3935
3936# CHECK: s_bfe_i32 exec_lo, s1, s2               ; encoding: [0x01,0x02,0x7e,0x93]
39370x01,0x02,0x7e,0x93
3938
3939# CHECK: s_bfe_i32 exec_hi, s1, s2               ; encoding: [0x01,0x02,0x7f,0x93]
39400x01,0x02,0x7f,0x93
3941
3942# CHECK: s_bfe_i32 s5, s101, s2                  ; encoding: [0x65,0x02,0x05,0x93]
39430x65,0x02,0x05,0x93
3944
3945# CHECK: s_bfe_i32 s5, flat_scratch_lo, s2       ; encoding: [0x66,0x02,0x05,0x93]
39460x66,0x02,0x05,0x93
3947
3948# CHECK: s_bfe_i32 s5, flat_scratch_hi, s2       ; encoding: [0x67,0x02,0x05,0x93]
39490x67,0x02,0x05,0x93
3950
3951# CHECK: s_bfe_i32 s5, vcc_lo, s2                ; encoding: [0x6a,0x02,0x05,0x93]
39520x6a,0x02,0x05,0x93
3953
3954# CHECK: s_bfe_i32 s5, vcc_hi, s2                ; encoding: [0x6b,0x02,0x05,0x93]
39550x6b,0x02,0x05,0x93
3956
3957# CHECK: s_bfe_i32 s5, m0, s2                    ; encoding: [0x7c,0x02,0x05,0x93]
39580x7c,0x02,0x05,0x93
3959
3960# CHECK: s_bfe_i32 s5, exec_lo, s2               ; encoding: [0x7e,0x02,0x05,0x93]
39610x7e,0x02,0x05,0x93
3962
3963# CHECK: s_bfe_i32 s5, exec_hi, s2               ; encoding: [0x7f,0x02,0x05,0x93]
39640x7f,0x02,0x05,0x93
3965
3966# CHECK: s_bfe_i32 s5, 0, s2                     ; encoding: [0x80,0x02,0x05,0x93]
39670x80,0x02,0x05,0x93
3968
3969# CHECK: s_bfe_i32 s5, -1, s2                    ; encoding: [0xc1,0x02,0x05,0x93]
39700xc1,0x02,0x05,0x93
3971
3972# CHECK: s_bfe_i32 s5, 0.5, s2                   ; encoding: [0xf0,0x02,0x05,0x93]
39730xf0,0x02,0x05,0x93
3974
3975# CHECK: s_bfe_i32 s5, -4.0, s2                  ; encoding: [0xf7,0x02,0x05,0x93]
39760xf7,0x02,0x05,0x93
3977
3978# CHECK: s_bfe_i32 s5, 0xaf123456, s2            ; encoding: [0xff,0x02,0x05,0x93,0x56,0x34,0x12,0xaf]
39790xff,0x02,0x05,0x93,0x56,0x34,0x12,0xaf
3980
3981# CHECK: s_bfe_i32 s5, 0x3f717273, s2            ; encoding: [0xff,0x02,0x05,0x93,0x73,0x72,0x71,0x3f]
39820xff,0x02,0x05,0x93,0x73,0x72,0x71,0x3f
3983
3984# CHECK: s_bfe_i32 s5, s1, s101                  ; encoding: [0x01,0x65,0x05,0x93]
39850x01,0x65,0x05,0x93
3986
3987# CHECK: s_bfe_i32 s5, s1, flat_scratch_lo       ; encoding: [0x01,0x66,0x05,0x93]
39880x01,0x66,0x05,0x93
3989
3990# CHECK: s_bfe_i32 s5, s1, flat_scratch_hi       ; encoding: [0x01,0x67,0x05,0x93]
39910x01,0x67,0x05,0x93
3992
3993# CHECK: s_bfe_i32 s5, s1, vcc_lo                ; encoding: [0x01,0x6a,0x05,0x93]
39940x01,0x6a,0x05,0x93
3995
3996# CHECK: s_bfe_i32 s5, s1, vcc_hi                ; encoding: [0x01,0x6b,0x05,0x93]
39970x01,0x6b,0x05,0x93
3998
3999# CHECK: s_bfe_i32 s5, s1, m0                    ; encoding: [0x01,0x7c,0x05,0x93]
40000x01,0x7c,0x05,0x93
4001
4002# CHECK: s_bfe_i32 s5, s1, exec_lo               ; encoding: [0x01,0x7e,0x05,0x93]
40030x01,0x7e,0x05,0x93
4004
4005# CHECK: s_bfe_i32 s5, s1, exec_hi               ; encoding: [0x01,0x7f,0x05,0x93]
40060x01,0x7f,0x05,0x93
4007
4008# CHECK: s_bfe_i32 s5, s1, 0                     ; encoding: [0x01,0x80,0x05,0x93]
40090x01,0x80,0x05,0x93
4010
4011# CHECK: s_bfe_i32 s5, s1, -1                    ; encoding: [0x01,0xc1,0x05,0x93]
40120x01,0xc1,0x05,0x93
4013
4014# CHECK: s_bfe_i32 s5, s1, 0.5                   ; encoding: [0x01,0xf0,0x05,0x93]
40150x01,0xf0,0x05,0x93
4016
4017# CHECK: s_bfe_i32 s5, s1, -4.0                  ; encoding: [0x01,0xf7,0x05,0x93]
40180x01,0xf7,0x05,0x93
4019
4020# CHECK: s_bfe_i32 s5, s1, 0xaf123456            ; encoding: [0x01,0xff,0x05,0x93,0x56,0x34,0x12,0xaf]
40210x01,0xff,0x05,0x93,0x56,0x34,0x12,0xaf
4022
4023# CHECK: s_bfe_i32 s5, s1, 0x3f717273            ; encoding: [0x01,0xff,0x05,0x93,0x73,0x72,0x71,0x3f]
40240x01,0xff,0x05,0x93,0x73,0x72,0x71,0x3f
4025
4026# CHECK: s_bfe_u64 s[10:11], s[2:3], s2          ; encoding: [0x02,0x02,0x8a,0x93]
40270x02,0x02,0x8a,0x93
4028
4029# CHECK: s_bfe_u64 s[12:13], s[2:3], s2          ; encoding: [0x02,0x02,0x8c,0x93]
40300x02,0x02,0x8c,0x93
4031
4032# CHECK: s_bfe_u64 s[100:101], s[2:3], s2        ; encoding: [0x02,0x02,0xe4,0x93]
40330x02,0x02,0xe4,0x93
4034
4035# CHECK: s_bfe_u64 flat_scratch, s[2:3], s2      ; encoding: [0x02,0x02,0xe6,0x93]
40360x02,0x02,0xe6,0x93
4037
4038# CHECK: s_bfe_u64 vcc, s[2:3], s2               ; encoding: [0x02,0x02,0xea,0x93]
40390x02,0x02,0xea,0x93
4040
4041# CHECK: s_bfe_u64 exec, s[2:3], s2              ; encoding: [0x02,0x02,0xfe,0x93]
40420x02,0x02,0xfe,0x93
4043
4044# CHECK: s_bfe_u64 s[10:11], s[4:5], s2          ; encoding: [0x04,0x02,0x8a,0x93]
40450x04,0x02,0x8a,0x93
4046
4047# CHECK: s_bfe_u64 s[10:11], s[100:101], s2      ; encoding: [0x64,0x02,0x8a,0x93]
40480x64,0x02,0x8a,0x93
4049
4050# CHECK: s_bfe_u64 s[10:11], flat_scratch, s2    ; encoding: [0x66,0x02,0x8a,0x93]
40510x66,0x02,0x8a,0x93
4052
4053# CHECK: s_bfe_u64 s[10:11], vcc, s2             ; encoding: [0x6a,0x02,0x8a,0x93]
40540x6a,0x02,0x8a,0x93
4055
4056# CHECK: s_bfe_u64 s[10:11], exec, s2            ; encoding: [0x7e,0x02,0x8a,0x93]
40570x7e,0x02,0x8a,0x93
4058
4059# CHECK: s_bfe_u64 s[10:11], 0, s2               ; encoding: [0x80,0x02,0x8a,0x93]
40600x80,0x02,0x8a,0x93
4061
4062# CHECK: s_bfe_u64 s[10:11], -1, s2              ; encoding: [0xc1,0x02,0x8a,0x93]
40630xc1,0x02,0x8a,0x93
4064
4065# CHECK: s_bfe_u64 s[10:11], 0.5, s2             ; encoding: [0xf0,0x02,0x8a,0x93]
40660xf0,0x02,0x8a,0x93
4067
4068# CHECK: s_bfe_u64 s[10:11], -4.0, s2            ; encoding: [0xf7,0x02,0x8a,0x93]
40690xf7,0x02,0x8a,0x93
4070
4071# CHECK: s_bfe_u64 s[10:11], 0xaf123456, s2      ; encoding: [0xff,0x02,0x8a,0x93,0x56,0x34,0x12,0xaf]
40720xff,0x02,0x8a,0x93,0x56,0x34,0x12,0xaf
4073
4074# CHECK: s_bfe_u64 s[10:11], 0x3f717273, s2      ; encoding: [0xff,0x02,0x8a,0x93,0x73,0x72,0x71,0x3f]
40750xff,0x02,0x8a,0x93,0x73,0x72,0x71,0x3f
4076
4077# CHECK: s_bfe_u64 s[10:11], s[2:3], s101        ; encoding: [0x02,0x65,0x8a,0x93]
40780x02,0x65,0x8a,0x93
4079
4080# CHECK: s_bfe_u64 s[10:11], s[2:3], flat_scratch_lo ; encoding: [0x02,0x66,0x8a,0x93]
40810x02,0x66,0x8a,0x93
4082
4083# CHECK: s_bfe_u64 s[10:11], s[2:3], flat_scratch_hi ; encoding: [0x02,0x67,0x8a,0x93]
40840x02,0x67,0x8a,0x93
4085
4086# CHECK: s_bfe_u64 s[10:11], s[2:3], vcc_lo      ; encoding: [0x02,0x6a,0x8a,0x93]
40870x02,0x6a,0x8a,0x93
4088
4089# CHECK: s_bfe_u64 s[10:11], s[2:3], vcc_hi      ; encoding: [0x02,0x6b,0x8a,0x93]
40900x02,0x6b,0x8a,0x93
4091
4092# CHECK: s_bfe_u64 s[10:11], s[2:3], m0          ; encoding: [0x02,0x7c,0x8a,0x93]
40930x02,0x7c,0x8a,0x93
4094
4095# CHECK: s_bfe_u64 s[10:11], s[2:3], exec_lo     ; encoding: [0x02,0x7e,0x8a,0x93]
40960x02,0x7e,0x8a,0x93
4097
4098# CHECK: s_bfe_u64 s[10:11], s[2:3], exec_hi     ; encoding: [0x02,0x7f,0x8a,0x93]
40990x02,0x7f,0x8a,0x93
4100
4101# CHECK: s_bfe_u64 s[10:11], s[2:3], 0           ; encoding: [0x02,0x80,0x8a,0x93]
41020x02,0x80,0x8a,0x93
4103
4104# CHECK: s_bfe_u64 s[10:11], s[2:3], -1          ; encoding: [0x02,0xc1,0x8a,0x93]
41050x02,0xc1,0x8a,0x93
4106
4107# CHECK: s_bfe_u64 s[10:11], s[2:3], 0.5         ; encoding: [0x02,0xf0,0x8a,0x93]
41080x02,0xf0,0x8a,0x93
4109
4110# CHECK: s_bfe_u64 s[10:11], s[2:3], -4.0        ; encoding: [0x02,0xf7,0x8a,0x93]
41110x02,0xf7,0x8a,0x93
4112
4113# CHECK: s_bfe_u64 s[10:11], s[2:3], 0xaf123456  ; encoding: [0x02,0xff,0x8a,0x93,0x56,0x34,0x12,0xaf]
41140x02,0xff,0x8a,0x93,0x56,0x34,0x12,0xaf
4115
4116# CHECK: s_bfe_u64 s[10:11], s[2:3], 0x3f717273  ; encoding: [0x02,0xff,0x8a,0x93,0x73,0x72,0x71,0x3f]
41170x02,0xff,0x8a,0x93,0x73,0x72,0x71,0x3f
4118
4119# CHECK: s_bfe_i64 s[10:11], s[2:3], s2          ; encoding: [0x02,0x02,0x0a,0x94]
41200x02,0x02,0x0a,0x94
4121
4122# CHECK: s_bfe_i64 s[12:13], s[2:3], s2          ; encoding: [0x02,0x02,0x0c,0x94]
41230x02,0x02,0x0c,0x94
4124
4125# CHECK: s_bfe_i64 s[100:101], s[2:3], s2        ; encoding: [0x02,0x02,0x64,0x94]
41260x02,0x02,0x64,0x94
4127
4128# CHECK: s_bfe_i64 flat_scratch, s[2:3], s2      ; encoding: [0x02,0x02,0x66,0x94]
41290x02,0x02,0x66,0x94
4130
4131# CHECK: s_bfe_i64 vcc, s[2:3], s2               ; encoding: [0x02,0x02,0x6a,0x94]
41320x02,0x02,0x6a,0x94
4133
4134# CHECK: s_bfe_i64 exec, s[2:3], s2              ; encoding: [0x02,0x02,0x7e,0x94]
41350x02,0x02,0x7e,0x94
4136
4137# CHECK: s_bfe_i64 s[10:11], s[4:5], s2          ; encoding: [0x04,0x02,0x0a,0x94]
41380x04,0x02,0x0a,0x94
4139
4140# CHECK: s_bfe_i64 s[10:11], s[100:101], s2      ; encoding: [0x64,0x02,0x0a,0x94]
41410x64,0x02,0x0a,0x94
4142
4143# CHECK: s_bfe_i64 s[10:11], flat_scratch, s2    ; encoding: [0x66,0x02,0x0a,0x94]
41440x66,0x02,0x0a,0x94
4145
4146# CHECK: s_bfe_i64 s[10:11], vcc, s2             ; encoding: [0x6a,0x02,0x0a,0x94]
41470x6a,0x02,0x0a,0x94
4148
4149# CHECK: s_bfe_i64 s[10:11], exec, s2            ; encoding: [0x7e,0x02,0x0a,0x94]
41500x7e,0x02,0x0a,0x94
4151
4152# CHECK: s_bfe_i64 s[10:11], 0, s2               ; encoding: [0x80,0x02,0x0a,0x94]
41530x80,0x02,0x0a,0x94
4154
4155# CHECK: s_bfe_i64 s[10:11], -1, s2              ; encoding: [0xc1,0x02,0x0a,0x94]
41560xc1,0x02,0x0a,0x94
4157
4158# CHECK: s_bfe_i64 s[10:11], 0.5, s2             ; encoding: [0xf0,0x02,0x0a,0x94]
41590xf0,0x02,0x0a,0x94
4160
4161# CHECK: s_bfe_i64 s[10:11], -4.0, s2            ; encoding: [0xf7,0x02,0x0a,0x94]
41620xf7,0x02,0x0a,0x94
4163
4164# CHECK: s_bfe_i64 s[10:11], 0xaf123456, s2      ; encoding: [0xff,0x02,0x0a,0x94,0x56,0x34,0x12,0xaf]
41650xff,0x02,0x0a,0x94,0x56,0x34,0x12,0xaf
4166
4167# CHECK: s_bfe_i64 s[10:11], 0x3f717273, s2      ; encoding: [0xff,0x02,0x0a,0x94,0x73,0x72,0x71,0x3f]
41680xff,0x02,0x0a,0x94,0x73,0x72,0x71,0x3f
4169
4170# CHECK: s_bfe_i64 s[10:11], s[2:3], s101        ; encoding: [0x02,0x65,0x0a,0x94]
41710x02,0x65,0x0a,0x94
4172
4173# CHECK: s_bfe_i64 s[10:11], s[2:3], flat_scratch_lo ; encoding: [0x02,0x66,0x0a,0x94]
41740x02,0x66,0x0a,0x94
4175
4176# CHECK: s_bfe_i64 s[10:11], s[2:3], flat_scratch_hi ; encoding: [0x02,0x67,0x0a,0x94]
41770x02,0x67,0x0a,0x94
4178
4179# CHECK: s_bfe_i64 s[10:11], s[2:3], vcc_lo      ; encoding: [0x02,0x6a,0x0a,0x94]
41800x02,0x6a,0x0a,0x94
4181
4182# CHECK: s_bfe_i64 s[10:11], s[2:3], vcc_hi      ; encoding: [0x02,0x6b,0x0a,0x94]
41830x02,0x6b,0x0a,0x94
4184
4185# CHECK: s_bfe_i64 s[10:11], s[2:3], m0          ; encoding: [0x02,0x7c,0x0a,0x94]
41860x02,0x7c,0x0a,0x94
4187
4188# CHECK: s_bfe_i64 s[10:11], s[2:3], exec_lo     ; encoding: [0x02,0x7e,0x0a,0x94]
41890x02,0x7e,0x0a,0x94
4190
4191# CHECK: s_bfe_i64 s[10:11], s[2:3], exec_hi     ; encoding: [0x02,0x7f,0x0a,0x94]
41920x02,0x7f,0x0a,0x94
4193
4194# CHECK: s_bfe_i64 s[10:11], s[2:3], 0           ; encoding: [0x02,0x80,0x0a,0x94]
41950x02,0x80,0x0a,0x94
4196
4197# CHECK: s_bfe_i64 s[10:11], s[2:3], -1          ; encoding: [0x02,0xc1,0x0a,0x94]
41980x02,0xc1,0x0a,0x94
4199
4200# CHECK: s_bfe_i64 s[10:11], s[2:3], 0.5         ; encoding: [0x02,0xf0,0x0a,0x94]
42010x02,0xf0,0x0a,0x94
4202
4203# CHECK: s_bfe_i64 s[10:11], s[2:3], -4.0        ; encoding: [0x02,0xf7,0x0a,0x94]
42040x02,0xf7,0x0a,0x94
4205
4206# CHECK: s_bfe_i64 s[10:11], s[2:3], 0xaf123456  ; encoding: [0x02,0xff,0x0a,0x94,0x56,0x34,0x12,0xaf]
42070x02,0xff,0x0a,0x94,0x56,0x34,0x12,0xaf
4208
4209# CHECK: s_bfe_i64 s[10:11], s[2:3], 0x3f717273  ; encoding: [0x02,0xff,0x0a,0x94,0x73,0x72,0x71,0x3f]
42100x02,0xff,0x0a,0x94,0x73,0x72,0x71,0x3f
4211
4212# CHECK: s_cbranch_g_fork s[2:3], s[4:5]         ; encoding: [0x02,0x04,0x80,0x94]
42130x02,0x04,0x80,0x94
4214
4215# CHECK: s_cbranch_g_fork s[4:5], s[4:5]         ; encoding: [0x04,0x04,0x80,0x94]
42160x04,0x04,0x80,0x94
4217
4218# CHECK: s_cbranch_g_fork s[100:101], s[4:5]     ; encoding: [0x64,0x04,0x80,0x94]
42190x64,0x04,0x80,0x94
4220
4221# CHECK: s_cbranch_g_fork flat_scratch, s[4:5]   ; encoding: [0x66,0x04,0x80,0x94]
42220x66,0x04,0x80,0x94
4223
4224# CHECK: s_cbranch_g_fork vcc, s[4:5]            ; encoding: [0x6a,0x04,0x80,0x94]
42250x6a,0x04,0x80,0x94
4226
4227# CHECK: s_cbranch_g_fork exec, s[4:5]           ; encoding: [0x7e,0x04,0x80,0x94]
42280x7e,0x04,0x80,0x94
4229
4230# CHECK: s_cbranch_g_fork 0, s[4:5]              ; encoding: [0x80,0x04,0x80,0x94]
42310x80,0x04,0x80,0x94
4232
4233# CHECK: s_cbranch_g_fork -1, s[4:5]             ; encoding: [0xc1,0x04,0x80,0x94]
42340xc1,0x04,0x80,0x94
4235
4236# CHECK: s_cbranch_g_fork 0.5, s[4:5]            ; encoding: [0xf0,0x04,0x80,0x94]
42370xf0,0x04,0x80,0x94
4238
4239# CHECK: s_cbranch_g_fork -4.0, s[4:5]           ; encoding: [0xf7,0x04,0x80,0x94]
42400xf7,0x04,0x80,0x94
4241
4242# CHECK: s_cbranch_g_fork s[2:3], s[6:7]         ; encoding: [0x02,0x06,0x80,0x94]
42430x02,0x06,0x80,0x94
4244
4245# CHECK: s_cbranch_g_fork s[2:3], s[100:101]     ; encoding: [0x02,0x64,0x80,0x94]
42460x02,0x64,0x80,0x94
4247
4248# CHECK: s_cbranch_g_fork s[2:3], flat_scratch   ; encoding: [0x02,0x66,0x80,0x94]
42490x02,0x66,0x80,0x94
4250
4251# CHECK: s_cbranch_g_fork s[2:3], vcc            ; encoding: [0x02,0x6a,0x80,0x94]
42520x02,0x6a,0x80,0x94
4253
4254# CHECK: s_cbranch_g_fork s[2:3], exec           ; encoding: [0x02,0x7e,0x80,0x94]
42550x02,0x7e,0x80,0x94
4256
4257# CHECK: s_cbranch_g_fork s[2:3], 0              ; encoding: [0x02,0x80,0x80,0x94]
42580x02,0x80,0x80,0x94
4259
4260# CHECK: s_cbranch_g_fork s[2:3], -1             ; encoding: [0x02,0xc1,0x80,0x94]
42610x02,0xc1,0x80,0x94
4262
4263# CHECK: s_cbranch_g_fork s[2:3], 0.5            ; encoding: [0x02,0xf0,0x80,0x94]
42640x02,0xf0,0x80,0x94
4265
4266# CHECK: s_cbranch_g_fork s[2:3], -4.0           ; encoding: [0x02,0xf7,0x80,0x94]
42670x02,0xf7,0x80,0x94
4268
4269# CHECK: s_absdiff_i32 s5, s1, s2                ; encoding: [0x01,0x02,0x05,0x95]
42700x01,0x02,0x05,0x95
4271
4272# CHECK: s_absdiff_i32 s101, s1, s2              ; encoding: [0x01,0x02,0x65,0x95]
42730x01,0x02,0x65,0x95
4274
4275# CHECK: s_absdiff_i32 flat_scratch_lo, s1, s2   ; encoding: [0x01,0x02,0x66,0x95]
42760x01,0x02,0x66,0x95
4277
4278# CHECK: s_absdiff_i32 flat_scratch_hi, s1, s2   ; encoding: [0x01,0x02,0x67,0x95]
42790x01,0x02,0x67,0x95
4280
4281# CHECK: s_absdiff_i32 vcc_lo, s1, s2            ; encoding: [0x01,0x02,0x6a,0x95]
42820x01,0x02,0x6a,0x95
4283
4284# CHECK: s_absdiff_i32 vcc_hi, s1, s2            ; encoding: [0x01,0x02,0x6b,0x95]
42850x01,0x02,0x6b,0x95
4286
4287# CHECK: s_absdiff_i32 m0, s1, s2                ; encoding: [0x01,0x02,0x7c,0x95]
42880x01,0x02,0x7c,0x95
4289
4290# CHECK: s_absdiff_i32 exec_lo, s1, s2           ; encoding: [0x01,0x02,0x7e,0x95]
42910x01,0x02,0x7e,0x95
4292
4293# CHECK: s_absdiff_i32 exec_hi, s1, s2           ; encoding: [0x01,0x02,0x7f,0x95]
42940x01,0x02,0x7f,0x95
4295
4296# CHECK: s_absdiff_i32 s5, s101, s2              ; encoding: [0x65,0x02,0x05,0x95]
42970x65,0x02,0x05,0x95
4298
4299# CHECK: s_absdiff_i32 s5, flat_scratch_lo, s2   ; encoding: [0x66,0x02,0x05,0x95]
43000x66,0x02,0x05,0x95
4301
4302# CHECK: s_absdiff_i32 s5, flat_scratch_hi, s2   ; encoding: [0x67,0x02,0x05,0x95]
43030x67,0x02,0x05,0x95
4304
4305# CHECK: s_absdiff_i32 s5, vcc_lo, s2            ; encoding: [0x6a,0x02,0x05,0x95]
43060x6a,0x02,0x05,0x95
4307
4308# CHECK: s_absdiff_i32 s5, vcc_hi, s2            ; encoding: [0x6b,0x02,0x05,0x95]
43090x6b,0x02,0x05,0x95
4310
4311# CHECK: s_absdiff_i32 s5, m0, s2                ; encoding: [0x7c,0x02,0x05,0x95]
43120x7c,0x02,0x05,0x95
4313
4314# CHECK: s_absdiff_i32 s5, exec_lo, s2           ; encoding: [0x7e,0x02,0x05,0x95]
43150x7e,0x02,0x05,0x95
4316
4317# CHECK: s_absdiff_i32 s5, exec_hi, s2           ; encoding: [0x7f,0x02,0x05,0x95]
43180x7f,0x02,0x05,0x95
4319
4320# CHECK: s_absdiff_i32 s5, 0, s2                 ; encoding: [0x80,0x02,0x05,0x95]
43210x80,0x02,0x05,0x95
4322
4323# CHECK: s_absdiff_i32 s5, -1, s2                ; encoding: [0xc1,0x02,0x05,0x95]
43240xc1,0x02,0x05,0x95
4325
4326# CHECK: s_absdiff_i32 s5, 0.5, s2               ; encoding: [0xf0,0x02,0x05,0x95]
43270xf0,0x02,0x05,0x95
4328
4329# CHECK: s_absdiff_i32 s5, -4.0, s2              ; encoding: [0xf7,0x02,0x05,0x95]
43300xf7,0x02,0x05,0x95
4331
4332# CHECK: s_absdiff_i32 s5, 0xaf123456, s2        ; encoding: [0xff,0x02,0x05,0x95,0x56,0x34,0x12,0xaf]
43330xff,0x02,0x05,0x95,0x56,0x34,0x12,0xaf
4334
4335# CHECK: s_absdiff_i32 s5, 0x3f717273, s2        ; encoding: [0xff,0x02,0x05,0x95,0x73,0x72,0x71,0x3f]
43360xff,0x02,0x05,0x95,0x73,0x72,0x71,0x3f
4337
4338# CHECK: s_absdiff_i32 s5, s1, s101              ; encoding: [0x01,0x65,0x05,0x95]
43390x01,0x65,0x05,0x95
4340
4341# CHECK: s_absdiff_i32 s5, s1, flat_scratch_lo   ; encoding: [0x01,0x66,0x05,0x95]
43420x01,0x66,0x05,0x95
4343
4344# CHECK: s_absdiff_i32 s5, s1, flat_scratch_hi   ; encoding: [0x01,0x67,0x05,0x95]
43450x01,0x67,0x05,0x95
4346
4347# CHECK: s_absdiff_i32 s5, s1, vcc_lo            ; encoding: [0x01,0x6a,0x05,0x95]
43480x01,0x6a,0x05,0x95
4349
4350# CHECK: s_absdiff_i32 s5, s1, vcc_hi            ; encoding: [0x01,0x6b,0x05,0x95]
43510x01,0x6b,0x05,0x95
4352
4353# CHECK: s_absdiff_i32 s5, s1, m0                ; encoding: [0x01,0x7c,0x05,0x95]
43540x01,0x7c,0x05,0x95
4355
4356# CHECK: s_absdiff_i32 s5, s1, exec_lo           ; encoding: [0x01,0x7e,0x05,0x95]
43570x01,0x7e,0x05,0x95
4358
4359# CHECK: s_absdiff_i32 s5, s1, exec_hi           ; encoding: [0x01,0x7f,0x05,0x95]
43600x01,0x7f,0x05,0x95
4361
4362# CHECK: s_absdiff_i32 s5, s1, 0                 ; encoding: [0x01,0x80,0x05,0x95]
43630x01,0x80,0x05,0x95
4364
4365# CHECK: s_absdiff_i32 s5, s1, -1                ; encoding: [0x01,0xc1,0x05,0x95]
43660x01,0xc1,0x05,0x95
4367
4368# CHECK: s_absdiff_i32 s5, s1, 0.5               ; encoding: [0x01,0xf0,0x05,0x95]
43690x01,0xf0,0x05,0x95
4370
4371# CHECK: s_absdiff_i32 s5, s1, -4.0              ; encoding: [0x01,0xf7,0x05,0x95]
43720x01,0xf7,0x05,0x95
4373
4374# CHECK: s_absdiff_i32 s5, s1, 0xaf123456        ; encoding: [0x01,0xff,0x05,0x95,0x56,0x34,0x12,0xaf]
43750x01,0xff,0x05,0x95,0x56,0x34,0x12,0xaf
4376
4377# CHECK: s_absdiff_i32 s5, s1, 0x3f717273        ; encoding: [0x01,0xff,0x05,0x95,0x73,0x72,0x71,0x3f]
43780x01,0xff,0x05,0x95,0x73,0x72,0x71,0x3f
4379
4380# CHECK: s_rfe_restore_b64 s[2:3], s2            ; encoding: [0x02,0x02,0x80,0x95]
43810x02,0x02,0x80,0x95
4382
4383# CHECK: s_rfe_restore_b64 s[4:5], s2            ; encoding: [0x04,0x02,0x80,0x95]
43840x04,0x02,0x80,0x95
4385
4386# CHECK: s_rfe_restore_b64 s[100:101], s2        ; encoding: [0x64,0x02,0x80,0x95]
43870x64,0x02,0x80,0x95
4388
4389# CHECK: s_rfe_restore_b64 flat_scratch, s2      ; encoding: [0x66,0x02,0x80,0x95]
43900x66,0x02,0x80,0x95
4391
4392# CHECK: s_rfe_restore_b64 vcc, s2               ; encoding: [0x6a,0x02,0x80,0x95]
43930x6a,0x02,0x80,0x95
4394
4395# CHECK: s_rfe_restore_b64 exec, s2              ; encoding: [0x7e,0x02,0x80,0x95]
43960x7e,0x02,0x80,0x95
4397
4398# CHECK: s_rfe_restore_b64 0, s2                 ; encoding: [0x80,0x02,0x80,0x95]
43990x80,0x02,0x80,0x95
4400
4401# CHECK: s_rfe_restore_b64 -1, s2                ; encoding: [0xc1,0x02,0x80,0x95]
44020xc1,0x02,0x80,0x95
4403
4404# CHECK: s_rfe_restore_b64 0.5, s2               ; encoding: [0xf0,0x02,0x80,0x95]
44050xf0,0x02,0x80,0x95
4406
4407# CHECK: s_rfe_restore_b64 -4.0, s2              ; encoding: [0xf7,0x02,0x80,0x95]
44080xf7,0x02,0x80,0x95
4409
4410# CHECK: s_rfe_restore_b64 0xaf123456, s2        ; encoding: [0xff,0x02,0x80,0x95,0x56,0x34,0x12,0xaf]
44110xff,0x02,0x80,0x95,0x56,0x34,0x12,0xaf
4412
4413# CHECK: s_rfe_restore_b64 0x3f717273, s2        ; encoding: [0xff,0x02,0x80,0x95,0x73,0x72,0x71,0x3f]
44140xff,0x02,0x80,0x95,0x73,0x72,0x71,0x3f
4415
4416# CHECK: s_rfe_restore_b64 s[2:3], s101          ; encoding: [0x02,0x65,0x80,0x95]
44170x02,0x65,0x80,0x95
4418
4419# CHECK: s_rfe_restore_b64 s[2:3], flat_scratch_lo ; encoding: [0x02,0x66,0x80,0x95]
44200x02,0x66,0x80,0x95
4421
4422# CHECK: s_rfe_restore_b64 s[2:3], flat_scratch_hi ; encoding: [0x02,0x67,0x80,0x95]
44230x02,0x67,0x80,0x95
4424
4425# CHECK: s_rfe_restore_b64 s[2:3], vcc_lo        ; encoding: [0x02,0x6a,0x80,0x95]
44260x02,0x6a,0x80,0x95
4427
4428# CHECK: s_rfe_restore_b64 s[2:3], vcc_hi        ; encoding: [0x02,0x6b,0x80,0x95]
44290x02,0x6b,0x80,0x95
4430
4431# CHECK: s_rfe_restore_b64 s[2:3], m0            ; encoding: [0x02,0x7c,0x80,0x95]
44320x02,0x7c,0x80,0x95
4433
4434# CHECK: s_rfe_restore_b64 s[2:3], exec_lo       ; encoding: [0x02,0x7e,0x80,0x95]
44350x02,0x7e,0x80,0x95
4436
4437# CHECK: s_rfe_restore_b64 s[2:3], exec_hi       ; encoding: [0x02,0x7f,0x80,0x95]
44380x02,0x7f,0x80,0x95
4439
4440# CHECK: s_rfe_restore_b64 s[2:3], 0             ; encoding: [0x02,0x80,0x80,0x95]
44410x02,0x80,0x80,0x95
4442
4443# CHECK: s_rfe_restore_b64 s[2:3], -1            ; encoding: [0x02,0xc1,0x80,0x95]
44440x02,0xc1,0x80,0x95
4445
4446# CHECK: s_rfe_restore_b64 s[2:3], 0.5           ; encoding: [0x02,0xf0,0x80,0x95]
44470x02,0xf0,0x80,0x95
4448
4449# CHECK: s_rfe_restore_b64 s[2:3], -4.0          ; encoding: [0x02,0xf7,0x80,0x95]
44500x02,0xf7,0x80,0x95
4451
4452# CHECK: s_rfe_restore_b64 s[2:3], 0xaf123456    ; encoding: [0x02,0xff,0x80,0x95,0x56,0x34,0x12,0xaf]
44530x02,0xff,0x80,0x95,0x56,0x34,0x12,0xaf
4454
4455# CHECK: s_rfe_restore_b64 s[2:3], 0x3f717273    ; encoding: [0x02,0xff,0x80,0x95,0x73,0x72,0x71,0x3f]
44560x02,0xff,0x80,0x95,0x73,0x72,0x71,0x3f
4457
4458# CHECK: s_pack_ll_b32_b16 s5, s1, s2            ; encoding: [0x01,0x02,0x05,0x99]
44590x01,0x02,0x05,0x99
4460
4461# CHECK: s_pack_ll_b32_b16 s101, s1, s2          ; encoding: [0x01,0x02,0x65,0x99]
44620x01,0x02,0x65,0x99
4463
4464# CHECK: s_pack_ll_b32_b16 flat_scratch_lo, s1, s2 ; encoding: [0x01,0x02,0x66,0x99]
44650x01,0x02,0x66,0x99
4466
4467# CHECK: s_pack_ll_b32_b16 flat_scratch_hi, s1, s2 ; encoding: [0x01,0x02,0x67,0x99]
44680x01,0x02,0x67,0x99
4469
4470# CHECK: s_pack_ll_b32_b16 vcc_lo, s1, s2        ; encoding: [0x01,0x02,0x6a,0x99]
44710x01,0x02,0x6a,0x99
4472
4473# CHECK: s_pack_ll_b32_b16 vcc_hi, s1, s2        ; encoding: [0x01,0x02,0x6b,0x99]
44740x01,0x02,0x6b,0x99
4475
4476# CHECK: s_pack_ll_b32_b16 m0, s1, s2            ; encoding: [0x01,0x02,0x7c,0x99]
44770x01,0x02,0x7c,0x99
4478
4479# CHECK: s_pack_ll_b32_b16 exec_lo, s1, s2       ; encoding: [0x01,0x02,0x7e,0x99]
44800x01,0x02,0x7e,0x99
4481
4482# CHECK: s_pack_ll_b32_b16 exec_hi, s1, s2       ; encoding: [0x01,0x02,0x7f,0x99]
44830x01,0x02,0x7f,0x99
4484
4485# CHECK: s_pack_ll_b32_b16 s5, s101, s2          ; encoding: [0x65,0x02,0x05,0x99]
44860x65,0x02,0x05,0x99
4487
4488# CHECK: s_pack_ll_b32_b16 s5, flat_scratch_lo, s2 ; encoding: [0x66,0x02,0x05,0x99]
44890x66,0x02,0x05,0x99
4490
4491# CHECK: s_pack_ll_b32_b16 s5, flat_scratch_hi, s2 ; encoding: [0x67,0x02,0x05,0x99]
44920x67,0x02,0x05,0x99
4493
4494# CHECK: s_pack_ll_b32_b16 s5, vcc_lo, s2        ; encoding: [0x6a,0x02,0x05,0x99]
44950x6a,0x02,0x05,0x99
4496
4497# CHECK: s_pack_ll_b32_b16 s5, vcc_hi, s2        ; encoding: [0x6b,0x02,0x05,0x99]
44980x6b,0x02,0x05,0x99
4499
4500# CHECK: s_pack_ll_b32_b16 s5, m0, s2            ; encoding: [0x7c,0x02,0x05,0x99]
45010x7c,0x02,0x05,0x99
4502
4503# CHECK: s_pack_ll_b32_b16 s5, exec_lo, s2       ; encoding: [0x7e,0x02,0x05,0x99]
45040x7e,0x02,0x05,0x99
4505
4506# CHECK: s_pack_ll_b32_b16 s5, exec_hi, s2       ; encoding: [0x7f,0x02,0x05,0x99]
45070x7f,0x02,0x05,0x99
4508
4509# CHECK: s_pack_ll_b32_b16 s5, 0, s2             ; encoding: [0x80,0x02,0x05,0x99]
45100x80,0x02,0x05,0x99
4511
4512# CHECK: s_pack_ll_b32_b16 s5, -1, s2            ; encoding: [0xc1,0x02,0x05,0x99]
45130xc1,0x02,0x05,0x99
4514
4515# CHECK: s_pack_ll_b32_b16 s5, 0.5, s2           ; encoding: [0xf0,0x02,0x05,0x99]
45160xf0,0x02,0x05,0x99
4517
4518# CHECK: s_pack_ll_b32_b16 s5, -4.0, s2          ; encoding: [0xf7,0x02,0x05,0x99]
45190xf7,0x02,0x05,0x99
4520
4521# CHECK: s_pack_ll_b32_b16 s5, 0xfe0b, s2        ; encoding: [0xff,0x02,0x05,0x99,0x0b,0xfe,0x00,0x00]
45220xff,0x02,0x05,0x99,0x0b,0xfe,0x00,0x00
4523
4524# CHECK: s_pack_ll_b32_b16 s5, 0x3456, s2        ; encoding: [0xff,0x02,0x05,0x99,0x56,0x34,0x00,0x00]
45250xff,0x02,0x05,0x99,0x56,0x34,0x00,0x00
4526
4527# CHECK: s_pack_ll_b32_b16 s5, s1, s101          ; encoding: [0x01,0x65,0x05,0x99]
45280x01,0x65,0x05,0x99
4529
4530# CHECK: s_pack_ll_b32_b16 s5, s1, flat_scratch_lo ; encoding: [0x01,0x66,0x05,0x99]
45310x01,0x66,0x05,0x99
4532
4533# CHECK: s_pack_ll_b32_b16 s5, s1, flat_scratch_hi ; encoding: [0x01,0x67,0x05,0x99]
45340x01,0x67,0x05,0x99
4535
4536# CHECK: s_pack_ll_b32_b16 s5, s1, vcc_lo        ; encoding: [0x01,0x6a,0x05,0x99]
45370x01,0x6a,0x05,0x99
4538
4539# CHECK: s_pack_ll_b32_b16 s5, s1, vcc_hi        ; encoding: [0x01,0x6b,0x05,0x99]
45400x01,0x6b,0x05,0x99
4541
4542# CHECK: s_pack_ll_b32_b16 s5, s1, m0            ; encoding: [0x01,0x7c,0x05,0x99]
45430x01,0x7c,0x05,0x99
4544
4545# CHECK: s_pack_ll_b32_b16 s5, s1, exec_lo       ; encoding: [0x01,0x7e,0x05,0x99]
45460x01,0x7e,0x05,0x99
4547
4548# CHECK: s_pack_ll_b32_b16 s5, s1, exec_hi       ; encoding: [0x01,0x7f,0x05,0x99]
45490x01,0x7f,0x05,0x99
4550
4551# CHECK: s_pack_ll_b32_b16 s5, s1, 0             ; encoding: [0x01,0x80,0x05,0x99]
45520x01,0x80,0x05,0x99
4553
4554# CHECK: s_pack_ll_b32_b16 s5, s1, -1            ; encoding: [0x01,0xc1,0x05,0x99]
45550x01,0xc1,0x05,0x99
4556
4557# CHECK: s_pack_ll_b32_b16 s5, s1, 0.5           ; encoding: [0x01,0xf0,0x05,0x99]
45580x01,0xf0,0x05,0x99
4559
4560# CHECK: s_pack_ll_b32_b16 s5, s1, -4.0          ; encoding: [0x01,0xf7,0x05,0x99]
45610x01,0xf7,0x05,0x99
4562
4563# CHECK: s_pack_ll_b32_b16 s5, s1, 0xfe0b        ; encoding: [0x01,0xff,0x05,0x99,0x0b,0xfe,0x00,0x00]
45640x01,0xff,0x05,0x99,0x0b,0xfe,0x00,0x00
4565
4566# CHECK: s_pack_ll_b32_b16 s5, s1, 0x3456        ; encoding: [0x01,0xff,0x05,0x99,0x56,0x34,0x00,0x00]
45670x01,0xff,0x05,0x99,0x56,0x34,0x00,0x00
4568
4569# CHECK: s_pack_lh_b32_b16 s5, s1, s2            ; encoding: [0x01,0x02,0x85,0x99]
45700x01,0x02,0x85,0x99
4571
4572# CHECK: s_pack_lh_b32_b16 s101, s1, s2          ; encoding: [0x01,0x02,0xe5,0x99]
45730x01,0x02,0xe5,0x99
4574
4575# CHECK: s_pack_lh_b32_b16 flat_scratch_lo, s1, s2 ; encoding: [0x01,0x02,0xe6,0x99]
45760x01,0x02,0xe6,0x99
4577
4578# CHECK: s_pack_lh_b32_b16 flat_scratch_hi, s1, s2 ; encoding: [0x01,0x02,0xe7,0x99]
45790x01,0x02,0xe7,0x99
4580
4581# CHECK: s_pack_lh_b32_b16 vcc_lo, s1, s2        ; encoding: [0x01,0x02,0xea,0x99]
45820x01,0x02,0xea,0x99
4583
4584# CHECK: s_pack_lh_b32_b16 vcc_hi, s1, s2        ; encoding: [0x01,0x02,0xeb,0x99]
45850x01,0x02,0xeb,0x99
4586
4587# CHECK: s_pack_lh_b32_b16 m0, s1, s2            ; encoding: [0x01,0x02,0xfc,0x99]
45880x01,0x02,0xfc,0x99
4589
4590# CHECK: s_pack_lh_b32_b16 exec_lo, s1, s2       ; encoding: [0x01,0x02,0xfe,0x99]
45910x01,0x02,0xfe,0x99
4592
4593# CHECK: s_pack_lh_b32_b16 exec_hi, s1, s2       ; encoding: [0x01,0x02,0xff,0x99]
45940x01,0x02,0xff,0x99
4595
4596# CHECK: s_pack_lh_b32_b16 s5, s101, s2          ; encoding: [0x65,0x02,0x85,0x99]
45970x65,0x02,0x85,0x99
4598
4599# CHECK: s_pack_lh_b32_b16 s5, flat_scratch_lo, s2 ; encoding: [0x66,0x02,0x85,0x99]
46000x66,0x02,0x85,0x99
4601
4602# CHECK: s_pack_lh_b32_b16 s5, flat_scratch_hi, s2 ; encoding: [0x67,0x02,0x85,0x99]
46030x67,0x02,0x85,0x99
4604
4605# CHECK: s_pack_lh_b32_b16 s5, vcc_lo, s2        ; encoding: [0x6a,0x02,0x85,0x99]
46060x6a,0x02,0x85,0x99
4607
4608# CHECK: s_pack_lh_b32_b16 s5, vcc_hi, s2        ; encoding: [0x6b,0x02,0x85,0x99]
46090x6b,0x02,0x85,0x99
4610
4611# CHECK: s_pack_lh_b32_b16 s5, m0, s2            ; encoding: [0x7c,0x02,0x85,0x99]
46120x7c,0x02,0x85,0x99
4613
4614# CHECK: s_pack_lh_b32_b16 s5, exec_lo, s2       ; encoding: [0x7e,0x02,0x85,0x99]
46150x7e,0x02,0x85,0x99
4616
4617# CHECK: s_pack_lh_b32_b16 s5, exec_hi, s2       ; encoding: [0x7f,0x02,0x85,0x99]
46180x7f,0x02,0x85,0x99
4619
4620# CHECK: s_pack_lh_b32_b16 s5, 0, s2             ; encoding: [0x80,0x02,0x85,0x99]
46210x80,0x02,0x85,0x99
4622
4623# CHECK: s_pack_lh_b32_b16 s5, -1, s2            ; encoding: [0xc1,0x02,0x85,0x99]
46240xc1,0x02,0x85,0x99
4625
4626# CHECK: s_pack_lh_b32_b16 s5, 0.5, s2           ; encoding: [0xf0,0x02,0x85,0x99]
46270xf0,0x02,0x85,0x99
4628
4629# CHECK: s_pack_lh_b32_b16 s5, -4.0, s2          ; encoding: [0xf7,0x02,0x85,0x99]
46300xf7,0x02,0x85,0x99
4631
4632# CHECK: s_pack_lh_b32_b16 s5, 0xfe0b, s2        ; encoding: [0xff,0x02,0x85,0x99,0x0b,0xfe,0x00,0x00]
46330xff,0x02,0x85,0x99,0x0b,0xfe,0x00,0x00
4634
4635# CHECK: s_pack_lh_b32_b16 s5, 0x3456, s2        ; encoding: [0xff,0x02,0x85,0x99,0x56,0x34,0x00,0x00]
46360xff,0x02,0x85,0x99,0x56,0x34,0x00,0x00
4637
4638# CHECK: s_pack_lh_b32_b16 s5, s1, s101          ; encoding: [0x01,0x65,0x85,0x99]
46390x01,0x65,0x85,0x99
4640
4641# CHECK: s_pack_lh_b32_b16 s5, s1, flat_scratch_lo ; encoding: [0x01,0x66,0x85,0x99]
46420x01,0x66,0x85,0x99
4643
4644# CHECK: s_pack_lh_b32_b16 s5, s1, flat_scratch_hi ; encoding: [0x01,0x67,0x85,0x99]
46450x01,0x67,0x85,0x99
4646
4647# CHECK: s_pack_lh_b32_b16 s5, s1, vcc_lo        ; encoding: [0x01,0x6a,0x85,0x99]
46480x01,0x6a,0x85,0x99
4649
4650# CHECK: s_pack_lh_b32_b16 s5, s1, vcc_hi        ; encoding: [0x01,0x6b,0x85,0x99]
46510x01,0x6b,0x85,0x99
4652
4653# CHECK: s_pack_lh_b32_b16 s5, s1, m0            ; encoding: [0x01,0x7c,0x85,0x99]
46540x01,0x7c,0x85,0x99
4655
4656# CHECK: s_pack_lh_b32_b16 s5, s1, exec_lo       ; encoding: [0x01,0x7e,0x85,0x99]
46570x01,0x7e,0x85,0x99
4658
4659# CHECK: s_pack_lh_b32_b16 s5, s1, exec_hi       ; encoding: [0x01,0x7f,0x85,0x99]
46600x01,0x7f,0x85,0x99
4661
4662# CHECK: s_pack_lh_b32_b16 s5, s1, 0             ; encoding: [0x01,0x80,0x85,0x99]
46630x01,0x80,0x85,0x99
4664
4665# CHECK: s_pack_lh_b32_b16 s5, s1, -1            ; encoding: [0x01,0xc1,0x85,0x99]
46660x01,0xc1,0x85,0x99
4667
4668# CHECK: s_pack_lh_b32_b16 s5, s1, 0.5           ; encoding: [0x01,0xf0,0x85,0x99]
46690x01,0xf0,0x85,0x99
4670
4671# CHECK: s_pack_lh_b32_b16 s5, s1, -4.0          ; encoding: [0x01,0xf7,0x85,0x99]
46720x01,0xf7,0x85,0x99
4673
4674# CHECK: s_pack_lh_b32_b16 s5, s1, 0xaf123456    ; encoding: [0x01,0xff,0x85,0x99,0x56,0x34,0x12,0xaf]
46750x01,0xff,0x85,0x99,0x56,0x34,0x12,0xaf
4676
4677# CHECK: s_pack_lh_b32_b16 s5, s1, 0x3f717273    ; encoding: [0x01,0xff,0x85,0x99,0x73,0x72,0x71,0x3f]
46780x01,0xff,0x85,0x99,0x73,0x72,0x71,0x3f
4679
4680# CHECK: s_pack_hh_b32_b16 s5, s1, s2            ; encoding: [0x01,0x02,0x05,0x9a]
46810x01,0x02,0x05,0x9a
4682
4683# CHECK: s_pack_hh_b32_b16 s101, s1, s2          ; encoding: [0x01,0x02,0x65,0x9a]
46840x01,0x02,0x65,0x9a
4685
4686# CHECK: s_pack_hh_b32_b16 flat_scratch_lo, s1, s2 ; encoding: [0x01,0x02,0x66,0x9a]
46870x01,0x02,0x66,0x9a
4688
4689# CHECK: s_pack_hh_b32_b16 flat_scratch_hi, s1, s2 ; encoding: [0x01,0x02,0x67,0x9a]
46900x01,0x02,0x67,0x9a
4691
4692# CHECK: s_pack_hh_b32_b16 vcc_lo, s1, s2        ; encoding: [0x01,0x02,0x6a,0x9a]
46930x01,0x02,0x6a,0x9a
4694
4695# CHECK: s_pack_hh_b32_b16 vcc_hi, s1, s2        ; encoding: [0x01,0x02,0x6b,0x9a]
46960x01,0x02,0x6b,0x9a
4697
4698# CHECK: s_pack_hh_b32_b16 m0, s1, s2            ; encoding: [0x01,0x02,0x7c,0x9a]
46990x01,0x02,0x7c,0x9a
4700
4701# CHECK: s_pack_hh_b32_b16 exec_lo, s1, s2       ; encoding: [0x01,0x02,0x7e,0x9a]
47020x01,0x02,0x7e,0x9a
4703
4704# CHECK: s_pack_hh_b32_b16 exec_hi, s1, s2       ; encoding: [0x01,0x02,0x7f,0x9a]
47050x01,0x02,0x7f,0x9a
4706
4707# CHECK: s_pack_hh_b32_b16 s5, s101, s2          ; encoding: [0x65,0x02,0x05,0x9a]
47080x65,0x02,0x05,0x9a
4709
4710# CHECK: s_pack_hh_b32_b16 s5, flat_scratch_lo, s2 ; encoding: [0x66,0x02,0x05,0x9a]
47110x66,0x02,0x05,0x9a
4712
4713# CHECK: s_pack_hh_b32_b16 s5, flat_scratch_hi, s2 ; encoding: [0x67,0x02,0x05,0x9a]
47140x67,0x02,0x05,0x9a
4715
4716# CHECK: s_pack_hh_b32_b16 s5, vcc_lo, s2        ; encoding: [0x6a,0x02,0x05,0x9a]
47170x6a,0x02,0x05,0x9a
4718
4719# CHECK: s_pack_hh_b32_b16 s5, vcc_hi, s2        ; encoding: [0x6b,0x02,0x05,0x9a]
47200x6b,0x02,0x05,0x9a
4721
4722# CHECK: s_pack_hh_b32_b16 s5, m0, s2            ; encoding: [0x7c,0x02,0x05,0x9a]
47230x7c,0x02,0x05,0x9a
4724
4725# CHECK: s_pack_hh_b32_b16 s5, exec_lo, s2       ; encoding: [0x7e,0x02,0x05,0x9a]
47260x7e,0x02,0x05,0x9a
4727
4728# CHECK: s_pack_hh_b32_b16 s5, exec_hi, s2       ; encoding: [0x7f,0x02,0x05,0x9a]
47290x7f,0x02,0x05,0x9a
4730
4731# CHECK: s_pack_hh_b32_b16 s5, 0, s2             ; encoding: [0x80,0x02,0x05,0x9a]
47320x80,0x02,0x05,0x9a
4733
4734# CHECK: s_pack_hh_b32_b16 s5, -1, s2            ; encoding: [0xc1,0x02,0x05,0x9a]
47350xc1,0x02,0x05,0x9a
4736
4737# CHECK: s_pack_hh_b32_b16 s5, 0.5, s2           ; encoding: [0xf0,0x02,0x05,0x9a]
47380xf0,0x02,0x05,0x9a
4739
4740# CHECK: s_pack_hh_b32_b16 s5, -4.0, s2          ; encoding: [0xf7,0x02,0x05,0x9a]
47410xf7,0x02,0x05,0x9a
4742
4743# CHECK: s_pack_hh_b32_b16 s5, 0xaf123456, s2    ; encoding: [0xff,0x02,0x05,0x9a,0x56,0x34,0x12,0xaf]
47440xff,0x02,0x05,0x9a,0x56,0x34,0x12,0xaf
4745
4746# CHECK: s_pack_hh_b32_b16 s5, 0x3f717273, s2    ; encoding: [0xff,0x02,0x05,0x9a,0x73,0x72,0x71,0x3f]
47470xff,0x02,0x05,0x9a,0x73,0x72,0x71,0x3f
4748
4749# CHECK: s_pack_hh_b32_b16 s5, s1, s101          ; encoding: [0x01,0x65,0x05,0x9a]
47500x01,0x65,0x05,0x9a
4751
4752# CHECK: s_pack_hh_b32_b16 s5, s1, flat_scratch_lo ; encoding: [0x01,0x66,0x05,0x9a]
47530x01,0x66,0x05,0x9a
4754
4755# CHECK: s_pack_hh_b32_b16 s5, s1, flat_scratch_hi ; encoding: [0x01,0x67,0x05,0x9a]
47560x01,0x67,0x05,0x9a
4757
4758# CHECK: s_pack_hh_b32_b16 s5, s1, vcc_lo        ; encoding: [0x01,0x6a,0x05,0x9a]
47590x01,0x6a,0x05,0x9a
4760
4761# CHECK: s_pack_hh_b32_b16 s5, s1, vcc_hi        ; encoding: [0x01,0x6b,0x05,0x9a]
47620x01,0x6b,0x05,0x9a
4763
4764# CHECK: s_pack_hh_b32_b16 s5, s1, m0            ; encoding: [0x01,0x7c,0x05,0x9a]
47650x01,0x7c,0x05,0x9a
4766
4767# CHECK: s_pack_hh_b32_b16 s5, s1, exec_lo       ; encoding: [0x01,0x7e,0x05,0x9a]
47680x01,0x7e,0x05,0x9a
4769
4770# CHECK: s_pack_hh_b32_b16 s5, s1, exec_hi       ; encoding: [0x01,0x7f,0x05,0x9a]
47710x01,0x7f,0x05,0x9a
4772
4773# CHECK: s_pack_hh_b32_b16 s5, s1, 0             ; encoding: [0x01,0x80,0x05,0x9a]
47740x01,0x80,0x05,0x9a
4775
4776# CHECK: s_pack_hh_b32_b16 s5, s1, -1            ; encoding: [0x01,0xc1,0x05,0x9a]
47770x01,0xc1,0x05,0x9a
4778
4779# CHECK: s_pack_hh_b32_b16 s5, s1, 0.5           ; encoding: [0x01,0xf0,0x05,0x9a]
47800x01,0xf0,0x05,0x9a
4781
4782# CHECK: s_pack_hh_b32_b16 s5, s1, -4.0          ; encoding: [0x01,0xf7,0x05,0x9a]
47830x01,0xf7,0x05,0x9a
4784
4785# CHECK: s_pack_hh_b32_b16 s5, s1, 0xaf123456    ; encoding: [0x01,0xff,0x05,0x9a,0x56,0x34,0x12,0xaf]
47860x01,0xff,0x05,0x9a,0x56,0x34,0x12,0xaf
4787
4788# CHECK: s_pack_hh_b32_b16 s5, s1, 0x3f717273    ; encoding: [0x01,0xff,0x05,0x9a,0x73,0x72,0x71,0x3f]
47890x01,0xff,0x05,0x9a,0x73,0x72,0x71,0x3f
4790
4791# CHECK: s_lshl1_add_u32 s5, 0, s2               ; encoding: [0x80,0x02,0x05,0x97]
47920x80,0x02,0x05,0x97
4793
4794# CHECK: s_lshl2_add_u32 s5, 0xaf123456, s2      ; encoding: [0xff,0x02,0x85,0x97,0x56,0x34,0x12,0xaf]
47950xff,0x02,0x85,0x97,0x56,0x34,0x12,0xaf
4796
4797# CHECK: s_lshl3_add_u32 s5, s1, -1              ; encoding: [0x01,0xc1,0x05,0x98]
47980x01,0xc1,0x05,0x98
4799
4800# CHECK: s_lshl4_add_u32 s5, s1, 0xaf123456      ; encoding: [0x01,0xff,0x85,0x98,0x56,0x34,0x12,0xaf]
48010x01,0xff,0x85,0x98,0x56,0x34,0x12,0xaf
4802
4803# CHECK: s_mul_hi_i32 s5, s101, s2               ; encoding: [0x65,0x02,0x85,0x96]
48040x65,0x02,0x85,0x96
4805
4806# CHECK: s_mul_hi_i32 s5, 0, s2                  ; encoding: [0x80,0x02,0x85,0x96]
48070x80,0x02,0x85,0x96
4808
4809# CHECK: s_mul_hi_i32 s5, 0xaf123456, s2         ; encoding: [0xff,0x02,0x85,0x96,0x56,0x34,0x12,0xaf]
48100xff,0x02,0x85,0x96,0x56,0x34,0x12,0xaf
4811
4812# CHECK: s_mul_hi_u32 s5, s1, -1                 ; encoding: [0x01,0xc1,0x05,0x96]
48130x01,0xc1,0x05,0x96
4814
4815# CHECK: s_mul_hi_u32 s5, s1, 0xaf123456         ; encoding: [0x01,0xff,0x05,0x96,0x56,0x34,0x12,0xaf]
48160x01,0xff,0x05,0x96,0x56,0x34,0x12,0xaf
4817