xref: /llvm-project/llvm/test/MC/Disassembler/AMDGPU/gfx8_smem.txt (revision 252c42354eca54274ed7b10c32c73c6937478e8b)
1# RUN: llvm-mc -triple=amdgcn -mcpu=tonga -disassemble -show-encoding < %s | FileCheck -strict-whitespace %s
2
3# CHECK: s_load_dword s5, s[2:3], s2             ; encoding: [0x41,0x01,0x00,0xc0,0x02,0x00,0x00,0x00]
40x41,0x01,0x00,0xc0,0x02,0x00,0x00,0x00
5
6# CHECK: s_load_dword s101, s[2:3], s2           ; encoding: [0x41,0x19,0x00,0xc0,0x02,0x00,0x00,0x00]
70x41,0x19,0x00,0xc0,0x02,0x00,0x00,0x00
8
9# CHECK: s_load_dword flat_scratch_lo, s[2:3], s2 ; encoding: [0x81,0x19,0x00,0xc0,0x02,0x00,0x00,0x00]
100x81,0x19,0x00,0xc0,0x02,0x00,0x00,0x00
11
12# CHECK: s_load_dword flat_scratch_hi, s[2:3], s2 ; encoding: [0xc1,0x19,0x00,0xc0,0x02,0x00,0x00,0x00]
130xc1,0x19,0x00,0xc0,0x02,0x00,0x00,0x00
14
15# CHECK: s_load_dword vcc_lo, s[2:3], s2         ; encoding: [0x81,0x1a,0x00,0xc0,0x02,0x00,0x00,0x00]
160x81,0x1a,0x00,0xc0,0x02,0x00,0x00,0x00
17
18# CHECK: s_load_dword vcc_hi, s[2:3], s2         ; encoding: [0xc1,0x1a,0x00,0xc0,0x02,0x00,0x00,0x00]
190xc1,0x1a,0x00,0xc0,0x02,0x00,0x00,0x00
20
21# CHECK: s_load_dword tba_lo, s[2:3], s2         ; encoding: [0x01,0x1b,0x00,0xc0,0x02,0x00,0x00,0x00]
220x01,0x1b,0x00,0xc0,0x02,0x00,0x00,0x00
23
24# CHECK: s_load_dword tba_hi, s[2:3], s2         ; encoding: [0x41,0x1b,0x00,0xc0,0x02,0x00,0x00,0x00]
250x41,0x1b,0x00,0xc0,0x02,0x00,0x00,0x00
26
27# CHECK: s_load_dword tma_lo, s[2:3], s2         ; encoding: [0x81,0x1b,0x00,0xc0,0x02,0x00,0x00,0x00]
280x81,0x1b,0x00,0xc0,0x02,0x00,0x00,0x00
29
30# CHECK: s_load_dword tma_hi, s[2:3], s2         ; encoding: [0xc1,0x1b,0x00,0xc0,0x02,0x00,0x00,0x00]
310xc1,0x1b,0x00,0xc0,0x02,0x00,0x00,0x00
32
33# CHECK: s_load_dword ttmp11, s[2:3], s2         ; encoding: [0xc1,0x1e,0x00,0xc0,0x02,0x00,0x00,0x00]
340xc1,0x1e,0x00,0xc0,0x02,0x00,0x00,0x00
35
36# CHECK: s_load_dword s5, s[4:5], s2             ; encoding: [0x42,0x01,0x00,0xc0,0x02,0x00,0x00,0x00]
370x42,0x01,0x00,0xc0,0x02,0x00,0x00,0x00
38
39# CHECK: s_load_dword s5, s[100:101], s2         ; encoding: [0x72,0x01,0x00,0xc0,0x02,0x00,0x00,0x00]
400x72,0x01,0x00,0xc0,0x02,0x00,0x00,0x00
41
42# CHECK: s_load_dword s5, flat_scratch, s2       ; encoding: [0x73,0x01,0x00,0xc0,0x02,0x00,0x00,0x00]
430x73,0x01,0x00,0xc0,0x02,0x00,0x00,0x00
44
45# CHECK: s_load_dword s5, vcc, s2                ; encoding: [0x75,0x01,0x00,0xc0,0x02,0x00,0x00,0x00]
460x75,0x01,0x00,0xc0,0x02,0x00,0x00,0x00
47
48# CHECK: s_load_dword s5, tba, s2                ; encoding: [0x76,0x01,0x00,0xc0,0x02,0x00,0x00,0x00]
490x76,0x01,0x00,0xc0,0x02,0x00,0x00,0x00
50
51# CHECK: s_load_dword s5, tma, s2                ; encoding: [0x77,0x01,0x00,0xc0,0x02,0x00,0x00,0x00]
520x77,0x01,0x00,0xc0,0x02,0x00,0x00,0x00
53
54# CHECK: s_load_dword s5, ttmp[10:11], s2        ; encoding: [0x7d,0x01,0x00,0xc0,0x02,0x00,0x00,0x00]
550x7d,0x01,0x00,0xc0,0x02,0x00,0x00,0x00
56
57# CHECK: s_load_dword s5, s[2:3], s101           ; encoding: [0x41,0x01,0x00,0xc0,0x65,0x00,0x00,0x00]
580x41,0x01,0x00,0xc0,0x65,0x00,0x00,0x00
59
60# Make sure that raising the GFX9 soffset_en bit doesn't affect GFX8
61# decoding.
62# CHECK: s_load_dword s5, s[2:3], s101           ; encoding: [0x41,0x01,0x00,0xc0,0x65,0x00,0x00,0x00]
630x41,0x41,0x00,0xc0,0x65,0x00,0x00,0x00
64
65# CHECK: s_load_dword s5, s[2:3], flat_scratch_lo ; encoding: [0x41,0x01,0x00,0xc0,0x66,0x00,0x00,0x00]
660x41,0x01,0x00,0xc0,0x66,0x00,0x00,0x00
67
68# CHECK: s_load_dword s5, s[2:3], flat_scratch_hi ; encoding: [0x41,0x01,0x00,0xc0,0x67,0x00,0x00,0x00]
690x41,0x01,0x00,0xc0,0x67,0x00,0x00,0x00
70
71# CHECK: s_load_dword s5, s[2:3], vcc_lo         ; encoding: [0x41,0x01,0x00,0xc0,0x6a,0x00,0x00,0x00]
720x41,0x01,0x00,0xc0,0x6a,0x00,0x00,0x00
73
74# CHECK: s_load_dword s5, s[2:3], vcc_hi         ; encoding: [0x41,0x01,0x00,0xc0,0x6b,0x00,0x00,0x00]
750x41,0x01,0x00,0xc0,0x6b,0x00,0x00,0x00
76
77# CHECK: s_load_dword s5, s[2:3], tba_lo         ; encoding: [0x41,0x01,0x00,0xc0,0x6c,0x00,0x00,0x00]
780x41,0x01,0x00,0xc0,0x6c,0x00,0x00,0x00
79
80# CHECK: s_load_dword s5, s[2:3], tba_hi         ; encoding: [0x41,0x01,0x00,0xc0,0x6d,0x00,0x00,0x00]
810x41,0x01,0x00,0xc0,0x6d,0x00,0x00,0x00
82
83# CHECK: s_load_dword s5, s[2:3], tma_lo         ; encoding: [0x41,0x01,0x00,0xc0,0x6e,0x00,0x00,0x00]
840x41,0x01,0x00,0xc0,0x6e,0x00,0x00,0x00
85
86# CHECK: s_load_dword s5, s[2:3], tma_hi         ; encoding: [0x41,0x01,0x00,0xc0,0x6f,0x00,0x00,0x00]
870x41,0x01,0x00,0xc0,0x6f,0x00,0x00,0x00
88
89# CHECK: s_load_dword s5, s[2:3], ttmp11         ; encoding: [0x41,0x01,0x00,0xc0,0x7b,0x00,0x00,0x00]
900x41,0x01,0x00,0xc0,0x7b,0x00,0x00,0x00
91
92# CHECK: s_load_dword s5, s[2:3], m0             ; encoding: [0x41,0x01,0x00,0xc0,0x7c,0x00,0x00,0x00]
930x41,0x01,0x00,0xc0,0x7c,0x00,0x00,0x00
94
95# CHECK: s_load_dword s5, s[2:3], 0x7ffff        ; encoding: [0x41,0x01,0x02,0xc0,0xff,0xff,0x07,0x00]
960x41,0x01,0x02,0xc0,0xff,0xff,0x07,0x00
97
98# Make sure that raising the GFX9 soffset_en bit doesn't affect GFX8
99# decoding.
100# CHECK: s_load_dword s5, s[2:3], 0x7ffff        ; encoding: [0x41,0x01,0x02,0xc0,0xff,0xff,0x07,0x00]
1010x41,0x41,0x02,0xc0,0xff,0xff,0x07,0x00
102
103# CHECK: s_load_dword s5, s[2:3], s2 glc         ; encoding: [0x41,0x01,0x01,0xc0,0x02,0x00,0x00,0x00]
1040x41,0x01,0x01,0xc0,0x02,0x00,0x00,0x00
105
106# CHECK: s_load_dwordx2 s[10:11], s[2:3], s2     ; encoding: [0x81,0x02,0x04,0xc0,0x02,0x00,0x00,0x00]
1070x81,0x02,0x04,0xc0,0x02,0x00,0x00,0x00
108
109# CHECK: s_load_dwordx2 s[12:13], s[2:3], s2     ; encoding: [0x01,0x03,0x04,0xc0,0x02,0x00,0x00,0x00]
1100x01,0x03,0x04,0xc0,0x02,0x00,0x00,0x00
111
112# CHECK: s_load_dwordx2 s[100:101], s[2:3], s2   ; encoding: [0x01,0x19,0x04,0xc0,0x02,0x00,0x00,0x00]
1130x01,0x19,0x04,0xc0,0x02,0x00,0x00,0x00
114
115# CHECK: s_load_dwordx2 flat_scratch, s[2:3], s2 ; encoding: [0x81,0x19,0x04,0xc0,0x02,0x00,0x00,0x00]
1160x81,0x19,0x04,0xc0,0x02,0x00,0x00,0x00
117
118# CHECK: s_load_dwordx2 vcc, s[2:3], s2          ; encoding: [0x81,0x1a,0x04,0xc0,0x02,0x00,0x00,0x00]
1190x81,0x1a,0x04,0xc0,0x02,0x00,0x00,0x00
120
121# CHECK: s_load_dwordx2 tba, s[2:3], s2          ; encoding: [0x01,0x1b,0x04,0xc0,0x02,0x00,0x00,0x00]
1220x01,0x1b,0x04,0xc0,0x02,0x00,0x00,0x00
123
124# CHECK: s_load_dwordx2 tma, s[2:3], s2          ; encoding: [0x81,0x1b,0x04,0xc0,0x02,0x00,0x00,0x00]
1250x81,0x1b,0x04,0xc0,0x02,0x00,0x00,0x00
126
127# CHECK: s_load_dwordx2 ttmp[10:11], s[2:3], s2  ; encoding: [0x81,0x1e,0x04,0xc0,0x02,0x00,0x00,0x00]
1280x81,0x1e,0x04,0xc0,0x02,0x00,0x00,0x00
129
130# CHECK: s_load_dwordx2 s[10:11], s[4:5], s2     ; encoding: [0x82,0x02,0x04,0xc0,0x02,0x00,0x00,0x00]
1310x82,0x02,0x04,0xc0,0x02,0x00,0x00,0x00
132
133# CHECK: s_load_dwordx2 s[10:11], s[100:101], s2 ; encoding: [0xb2,0x02,0x04,0xc0,0x02,0x00,0x00,0x00]
1340xb2,0x02,0x04,0xc0,0x02,0x00,0x00,0x00
135
136# CHECK: s_load_dwordx2 s[10:11], flat_scratch, s2 ; encoding: [0xb3,0x02,0x04,0xc0,0x02,0x00,0x00,0x00]
1370xb3,0x02,0x04,0xc0,0x02,0x00,0x00,0x00
138
139# CHECK: s_load_dwordx2 s[10:11], vcc, s2        ; encoding: [0xb5,0x02,0x04,0xc0,0x02,0x00,0x00,0x00]
1400xb5,0x02,0x04,0xc0,0x02,0x00,0x00,0x00
141
142# CHECK: s_load_dwordx2 s[10:11], tba, s2        ; encoding: [0xb6,0x02,0x04,0xc0,0x02,0x00,0x00,0x00]
1430xb6,0x02,0x04,0xc0,0x02,0x00,0x00,0x00
144
145# CHECK: s_load_dwordx2 s[10:11], tma, s2        ; encoding: [0xb7,0x02,0x04,0xc0,0x02,0x00,0x00,0x00]
1460xb7,0x02,0x04,0xc0,0x02,0x00,0x00,0x00
147
148# CHECK: s_load_dwordx2 s[10:11], ttmp[10:11], s2 ; encoding: [0xbd,0x02,0x04,0xc0,0x02,0x00,0x00,0x00]
1490xbd,0x02,0x04,0xc0,0x02,0x00,0x00,0x00
150
151# CHECK: s_load_dwordx2 s[10:11], s[2:3], s101   ; encoding: [0x81,0x02,0x04,0xc0,0x65,0x00,0x00,0x00]
1520x81,0x02,0x04,0xc0,0x65,0x00,0x00,0x00
153
154# CHECK: s_load_dwordx2 s[10:11], s[2:3], flat_scratch_lo ; encoding: [0x81,0x02,0x04,0xc0,0x66,0x00,0x00,0x00]
1550x81,0x02,0x04,0xc0,0x66,0x00,0x00,0x00
156
157# CHECK: s_load_dwordx2 s[10:11], s[2:3], flat_scratch_hi ; encoding: [0x81,0x02,0x04,0xc0,0x67,0x00,0x00,0x00]
1580x81,0x02,0x04,0xc0,0x67,0x00,0x00,0x00
159
160# CHECK: s_load_dwordx2 s[10:11], s[2:3], vcc_lo ; encoding: [0x81,0x02,0x04,0xc0,0x6a,0x00,0x00,0x00]
1610x81,0x02,0x04,0xc0,0x6a,0x00,0x00,0x00
162
163# CHECK: s_load_dwordx2 s[10:11], s[2:3], vcc_hi ; encoding: [0x81,0x02,0x04,0xc0,0x6b,0x00,0x00,0x00]
1640x81,0x02,0x04,0xc0,0x6b,0x00,0x00,0x00
165
166# CHECK: s_load_dwordx2 s[10:11], s[2:3], tba_lo ; encoding: [0x81,0x02,0x04,0xc0,0x6c,0x00,0x00,0x00]
1670x81,0x02,0x04,0xc0,0x6c,0x00,0x00,0x00
168
169# CHECK: s_load_dwordx2 s[10:11], s[2:3], tba_hi ; encoding: [0x81,0x02,0x04,0xc0,0x6d,0x00,0x00,0x00]
1700x81,0x02,0x04,0xc0,0x6d,0x00,0x00,0x00
171
172# CHECK: s_load_dwordx2 s[10:11], s[2:3], tma_lo ; encoding: [0x81,0x02,0x04,0xc0,0x6e,0x00,0x00,0x00]
1730x81,0x02,0x04,0xc0,0x6e,0x00,0x00,0x00
174
175# CHECK: s_load_dwordx2 s[10:11], s[2:3], tma_hi ; encoding: [0x81,0x02,0x04,0xc0,0x6f,0x00,0x00,0x00]
1760x81,0x02,0x04,0xc0,0x6f,0x00,0x00,0x00
177
178# CHECK: s_load_dwordx2 s[10:11], s[2:3], ttmp11 ; encoding: [0x81,0x02,0x04,0xc0,0x7b,0x00,0x00,0x00]
1790x81,0x02,0x04,0xc0,0x7b,0x00,0x00,0x00
180
181# CHECK: s_load_dwordx2 s[10:11], s[2:3], m0     ; encoding: [0x81,0x02,0x04,0xc0,0x7c,0x00,0x00,0x00]
1820x81,0x02,0x04,0xc0,0x7c,0x00,0x00,0x00
183
184# CHECK: s_load_dwordx2 s[10:11], s[2:3], 0x7ffff ; encoding: [0x81,0x02,0x06,0xc0,0xff,0xff,0x07,0x00]
1850x81,0x02,0x06,0xc0,0xff,0xff,0x07,0x00
186
187# CHECK: s_load_dwordx2 s[10:11], s[2:3], s2 glc ; encoding: [0x81,0x02,0x05,0xc0,0x02,0x00,0x00,0x00]
1880x81,0x02,0x05,0xc0,0x02,0x00,0x00,0x00
189
190# CHECK: s_load_dwordx4 s[20:23], s[2:3], s2     ; encoding: [0x01,0x05,0x08,0xc0,0x02,0x00,0x00,0x00]
1910x01,0x05,0x08,0xc0,0x02,0x00,0x00,0x00
192
193# CHECK: s_load_dwordx4 s[24:27], s[2:3], s2     ; encoding: [0x01,0x06,0x08,0xc0,0x02,0x00,0x00,0x00]
1940x01,0x06,0x08,0xc0,0x02,0x00,0x00,0x00
195
196# CHECK: s_load_dwordx4 s[96:99], s[2:3], s2     ; encoding: [0x01,0x18,0x08,0xc0,0x02,0x00,0x00,0x00]
1970x01,0x18,0x08,0xc0,0x02,0x00,0x00,0x00
198
199# CHECK: s_load_dwordx4 ttmp[8:11], s[2:3], s2   ; encoding: [0x01,0x1e,0x08,0xc0,0x02,0x00,0x00,0x00]
2000x01,0x1e,0x08,0xc0,0x02,0x00,0x00,0x00
201
202# CHECK: s_load_dwordx4 s[20:23], s[4:5], s2     ; encoding: [0x02,0x05,0x08,0xc0,0x02,0x00,0x00,0x00]
2030x02,0x05,0x08,0xc0,0x02,0x00,0x00,0x00
204
205# CHECK: s_load_dwordx4 s[20:23], s[100:101], s2 ; encoding: [0x32,0x05,0x08,0xc0,0x02,0x00,0x00,0x00]
2060x32,0x05,0x08,0xc0,0x02,0x00,0x00,0x00
207
208# CHECK: s_load_dwordx4 s[20:23], flat_scratch, s2 ; encoding: [0x33,0x05,0x08,0xc0,0x02,0x00,0x00,0x00]
2090x33,0x05,0x08,0xc0,0x02,0x00,0x00,0x00
210
211# CHECK: s_load_dwordx4 s[20:23], vcc, s2        ; encoding: [0x35,0x05,0x08,0xc0,0x02,0x00,0x00,0x00]
2120x35,0x05,0x08,0xc0,0x02,0x00,0x00,0x00
213
214# CHECK: s_load_dwordx4 s[20:23], tba, s2        ; encoding: [0x36,0x05,0x08,0xc0,0x02,0x00,0x00,0x00]
2150x36,0x05,0x08,0xc0,0x02,0x00,0x00,0x00
216
217# CHECK: s_load_dwordx4 s[20:23], tma, s2        ; encoding: [0x37,0x05,0x08,0xc0,0x02,0x00,0x00,0x00]
2180x37,0x05,0x08,0xc0,0x02,0x00,0x00,0x00
219
220# CHECK: s_load_dwordx4 s[20:23], ttmp[10:11], s2 ; encoding: [0x3d,0x05,0x08,0xc0,0x02,0x00,0x00,0x00]
2210x3d,0x05,0x08,0xc0,0x02,0x00,0x00,0x00
222
223# CHECK: s_load_dwordx4 s[20:23], s[2:3], s101   ; encoding: [0x01,0x05,0x08,0xc0,0x65,0x00,0x00,0x00]
2240x01,0x05,0x08,0xc0,0x65,0x00,0x00,0x00
225
226# CHECK: s_load_dwordx4 s[20:23], s[2:3], flat_scratch_lo ; encoding: [0x01,0x05,0x08,0xc0,0x66,0x00,0x00,0x00]
2270x01,0x05,0x08,0xc0,0x66,0x00,0x00,0x00
228
229# CHECK: s_load_dwordx4 s[20:23], s[2:3], flat_scratch_hi ; encoding: [0x01,0x05,0x08,0xc0,0x67,0x00,0x00,0x00]
2300x01,0x05,0x08,0xc0,0x67,0x00,0x00,0x00
231
232# CHECK: s_load_dwordx4 s[20:23], s[2:3], vcc_lo ; encoding: [0x01,0x05,0x08,0xc0,0x6a,0x00,0x00,0x00]
2330x01,0x05,0x08,0xc0,0x6a,0x00,0x00,0x00
234
235# CHECK: s_load_dwordx4 s[20:23], s[2:3], vcc_hi ; encoding: [0x01,0x05,0x08,0xc0,0x6b,0x00,0x00,0x00]
2360x01,0x05,0x08,0xc0,0x6b,0x00,0x00,0x00
237
238# CHECK: s_load_dwordx4 s[20:23], s[2:3], tba_lo ; encoding: [0x01,0x05,0x08,0xc0,0x6c,0x00,0x00,0x00]
2390x01,0x05,0x08,0xc0,0x6c,0x00,0x00,0x00
240
241# CHECK: s_load_dwordx4 s[20:23], s[2:3], tba_hi ; encoding: [0x01,0x05,0x08,0xc0,0x6d,0x00,0x00,0x00]
2420x01,0x05,0x08,0xc0,0x6d,0x00,0x00,0x00
243
244# CHECK: s_load_dwordx4 s[20:23], s[2:3], tma_lo ; encoding: [0x01,0x05,0x08,0xc0,0x6e,0x00,0x00,0x00]
2450x01,0x05,0x08,0xc0,0x6e,0x00,0x00,0x00
246
247# CHECK: s_load_dwordx4 s[20:23], s[2:3], tma_hi ; encoding: [0x01,0x05,0x08,0xc0,0x6f,0x00,0x00,0x00]
2480x01,0x05,0x08,0xc0,0x6f,0x00,0x00,0x00
249
250# CHECK: s_load_dwordx4 s[20:23], s[2:3], ttmp11 ; encoding: [0x01,0x05,0x08,0xc0,0x7b,0x00,0x00,0x00]
2510x01,0x05,0x08,0xc0,0x7b,0x00,0x00,0x00
252
253# CHECK: s_load_dwordx4 s[20:23], s[2:3], m0     ; encoding: [0x01,0x05,0x08,0xc0,0x7c,0x00,0x00,0x00]
2540x01,0x05,0x08,0xc0,0x7c,0x00,0x00,0x00
255
256# CHECK: s_load_dwordx4 s[20:23], s[2:3], 0x7ffff ; encoding: [0x01,0x05,0x0a,0xc0,0xff,0xff,0x07,0x00]
2570x01,0x05,0x0a,0xc0,0xff,0xff,0x07,0x00
258
259# CHECK: s_load_dwordx4 s[20:23], s[2:3], s2 glc ; encoding: [0x01,0x05,0x09,0xc0,0x02,0x00,0x00,0x00]
2600x01,0x05,0x09,0xc0,0x02,0x00,0x00,0x00
261
262# CHECK: s_load_dwordx8 s[20:27], s[2:3], s2     ; encoding: [0x01,0x05,0x0c,0xc0,0x02,0x00,0x00,0x00]
2630x01,0x05,0x0c,0xc0,0x02,0x00,0x00,0x00
264
265# CHECK: s_load_dwordx8 s[24:31], s[2:3], s2     ; encoding: [0x01,0x06,0x0c,0xc0,0x02,0x00,0x00,0x00]
2660x01,0x06,0x0c,0xc0,0x02,0x00,0x00,0x00
267
268# CHECK: s_load_dwordx8 s[92:99], s[2:3], s2     ; encoding: [0x01,0x17,0x0c,0xc0,0x02,0x00,0x00,0x00]
2690x01,0x17,0x0c,0xc0,0x02,0x00,0x00,0x00
270
271# CHECK: s_load_dwordx8 ttmp[4:11], s[2:3], s2   ; encoding: [0x01,0x1d,0x0c,0xc0,0x02,0x00,0x00,0x00]
2720x01,0x1d,0x0c,0xc0,0x02,0x00,0x00,0x00
273
274# CHECK: s_load_dwordx8 s[20:27], s[4:5], s2     ; encoding: [0x02,0x05,0x0c,0xc0,0x02,0x00,0x00,0x00]
2750x02,0x05,0x0c,0xc0,0x02,0x00,0x00,0x00
276
277# CHECK: s_load_dwordx8 s[20:27], s[100:101], s2 ; encoding: [0x32,0x05,0x0c,0xc0,0x02,0x00,0x00,0x00]
2780x32,0x05,0x0c,0xc0,0x02,0x00,0x00,0x00
279
280# CHECK: s_load_dwordx8 s[20:27], flat_scratch, s2 ; encoding: [0x33,0x05,0x0c,0xc0,0x02,0x00,0x00,0x00]
2810x33,0x05,0x0c,0xc0,0x02,0x00,0x00,0x00
282
283# CHECK: s_load_dwordx8 s[20:27], vcc, s2        ; encoding: [0x35,0x05,0x0c,0xc0,0x02,0x00,0x00,0x00]
2840x35,0x05,0x0c,0xc0,0x02,0x00,0x00,0x00
285
286# CHECK: s_load_dwordx8 s[20:27], tba, s2        ; encoding: [0x36,0x05,0x0c,0xc0,0x02,0x00,0x00,0x00]
2870x36,0x05,0x0c,0xc0,0x02,0x00,0x00,0x00
288
289# CHECK: s_load_dwordx8 s[20:27], tma, s2        ; encoding: [0x37,0x05,0x0c,0xc0,0x02,0x00,0x00,0x00]
2900x37,0x05,0x0c,0xc0,0x02,0x00,0x00,0x00
291
292# CHECK: s_load_dwordx8 s[20:27], ttmp[10:11], s2 ; encoding: [0x3d,0x05,0x0c,0xc0,0x02,0x00,0x00,0x00]
2930x3d,0x05,0x0c,0xc0,0x02,0x00,0x00,0x00
294
295# CHECK: s_load_dwordx8 s[20:27], s[2:3], s101   ; encoding: [0x01,0x05,0x0c,0xc0,0x65,0x00,0x00,0x00]
2960x01,0x05,0x0c,0xc0,0x65,0x00,0x00,0x00
297
298# CHECK: s_load_dwordx8 s[20:27], s[2:3], flat_scratch_lo ; encoding: [0x01,0x05,0x0c,0xc0,0x66,0x00,0x00,0x00]
2990x01,0x05,0x0c,0xc0,0x66,0x00,0x00,0x00
300
301# CHECK: s_load_dwordx8 s[20:27], s[2:3], flat_scratch_hi ; encoding: [0x01,0x05,0x0c,0xc0,0x67,0x00,0x00,0x00]
3020x01,0x05,0x0c,0xc0,0x67,0x00,0x00,0x00
303
304# CHECK: s_load_dwordx8 s[20:27], s[2:3], vcc_lo ; encoding: [0x01,0x05,0x0c,0xc0,0x6a,0x00,0x00,0x00]
3050x01,0x05,0x0c,0xc0,0x6a,0x00,0x00,0x00
306
307# CHECK: s_load_dwordx8 s[20:27], s[2:3], vcc_hi ; encoding: [0x01,0x05,0x0c,0xc0,0x6b,0x00,0x00,0x00]
3080x01,0x05,0x0c,0xc0,0x6b,0x00,0x00,0x00
309
310# CHECK: s_load_dwordx8 s[20:27], s[2:3], tba_lo ; encoding: [0x01,0x05,0x0c,0xc0,0x6c,0x00,0x00,0x00]
3110x01,0x05,0x0c,0xc0,0x6c,0x00,0x00,0x00
312
313# CHECK: s_load_dwordx8 s[20:27], s[2:3], tba_hi ; encoding: [0x01,0x05,0x0c,0xc0,0x6d,0x00,0x00,0x00]
3140x01,0x05,0x0c,0xc0,0x6d,0x00,0x00,0x00
315
316# CHECK: s_load_dwordx8 s[20:27], s[2:3], tma_lo ; encoding: [0x01,0x05,0x0c,0xc0,0x6e,0x00,0x00,0x00]
3170x01,0x05,0x0c,0xc0,0x6e,0x00,0x00,0x00
318
319# CHECK: s_load_dwordx8 s[20:27], s[2:3], tma_hi ; encoding: [0x01,0x05,0x0c,0xc0,0x6f,0x00,0x00,0x00]
3200x01,0x05,0x0c,0xc0,0x6f,0x00,0x00,0x00
321
322# CHECK: s_load_dwordx8 s[20:27], s[2:3], ttmp11 ; encoding: [0x01,0x05,0x0c,0xc0,0x7b,0x00,0x00,0x00]
3230x01,0x05,0x0c,0xc0,0x7b,0x00,0x00,0x00
324
325# CHECK: s_load_dwordx8 s[20:27], s[2:3], m0     ; encoding: [0x01,0x05,0x0c,0xc0,0x7c,0x00,0x00,0x00]
3260x01,0x05,0x0c,0xc0,0x7c,0x00,0x00,0x00
327
328# CHECK: s_load_dwordx8 s[20:27], s[2:3], 0x7ffff ; encoding: [0x01,0x05,0x0e,0xc0,0xff,0xff,0x07,0x00]
3290x01,0x05,0x0e,0xc0,0xff,0xff,0x07,0x00
330
331# CHECK: s_load_dwordx8 s[20:27], s[2:3], s2 glc ; encoding: [0x01,0x05,0x0d,0xc0,0x02,0x00,0x00,0x00]
3320x01,0x05,0x0d,0xc0,0x02,0x00,0x00,0x00
333
334# CHECK: s_load_dwordx16 s[20:35], s[2:3], s2    ; encoding: [0x01,0x05,0x10,0xc0,0x02,0x00,0x00,0x00]
3350x01,0x05,0x10,0xc0,0x02,0x00,0x00,0x00
336
337# CHECK: s_load_dwordx16 s[24:39], s[2:3], s2    ; encoding: [0x01,0x06,0x10,0xc0,0x02,0x00,0x00,0x00]
3380x01,0x06,0x10,0xc0,0x02,0x00,0x00,0x00
339
340# CHECK: s_load_dwordx16 s[84:99], s[2:3], s2    ; encoding: [0x01,0x15,0x10,0xc0,0x02,0x00,0x00,0x00]
3410x01,0x15,0x10,0xc0,0x02,0x00,0x00,0x00
342
343# CHECK: s_load_dwordx16 s[20:35], s[4:5], s2    ; encoding: [0x02,0x05,0x10,0xc0,0x02,0x00,0x00,0x00]
3440x02,0x05,0x10,0xc0,0x02,0x00,0x00,0x00
345
346# CHECK: s_load_dwordx16 s[20:35], s[100:101], s2 ; encoding: [0x32,0x05,0x10,0xc0,0x02,0x00,0x00,0x00]
3470x32,0x05,0x10,0xc0,0x02,0x00,0x00,0x00
348
349# CHECK: s_load_dwordx16 s[20:35], flat_scratch, s2 ; encoding: [0x33,0x05,0x10,0xc0,0x02,0x00,0x00,0x00]
3500x33,0x05,0x10,0xc0,0x02,0x00,0x00,0x00
351
352# CHECK: s_load_dwordx16 s[20:35], vcc, s2       ; encoding: [0x35,0x05,0x10,0xc0,0x02,0x00,0x00,0x00]
3530x35,0x05,0x10,0xc0,0x02,0x00,0x00,0x00
354
355# CHECK: s_load_dwordx16 s[20:35], tba, s2       ; encoding: [0x36,0x05,0x10,0xc0,0x02,0x00,0x00,0x00]
3560x36,0x05,0x10,0xc0,0x02,0x00,0x00,0x00
357
358# CHECK: s_load_dwordx16 s[20:35], tma, s2       ; encoding: [0x37,0x05,0x10,0xc0,0x02,0x00,0x00,0x00]
3590x37,0x05,0x10,0xc0,0x02,0x00,0x00,0x00
360
361# CHECK: s_load_dwordx16 s[20:35], ttmp[10:11], s2 ; encoding: [0x3d,0x05,0x10,0xc0,0x02,0x00,0x00,0x00]
3620x3d,0x05,0x10,0xc0,0x02,0x00,0x00,0x00
363
364# CHECK: s_load_dwordx16 s[20:35], s[2:3], s101  ; encoding: [0x01,0x05,0x10,0xc0,0x65,0x00,0x00,0x00]
3650x01,0x05,0x10,0xc0,0x65,0x00,0x00,0x00
366
367# CHECK: s_load_dwordx16 s[20:35], s[2:3], flat_scratch_lo ; encoding: [0x01,0x05,0x10,0xc0,0x66,0x00,0x00,0x00]
3680x01,0x05,0x10,0xc0,0x66,0x00,0x00,0x00
369
370# CHECK: s_load_dwordx16 s[20:35], s[2:3], flat_scratch_hi ; encoding: [0x01,0x05,0x10,0xc0,0x67,0x00,0x00,0x00]
3710x01,0x05,0x10,0xc0,0x67,0x00,0x00,0x00
372
373# CHECK: s_load_dwordx16 s[20:35], s[2:3], vcc_lo ; encoding: [0x01,0x05,0x10,0xc0,0x6a,0x00,0x00,0x00]
3740x01,0x05,0x10,0xc0,0x6a,0x00,0x00,0x00
375
376# CHECK: s_load_dwordx16 s[20:35], s[2:3], vcc_hi ; encoding: [0x01,0x05,0x10,0xc0,0x6b,0x00,0x00,0x00]
3770x01,0x05,0x10,0xc0,0x6b,0x00,0x00,0x00
378
379# CHECK: s_load_dwordx16 s[20:35], s[2:3], tba_lo ; encoding: [0x01,0x05,0x10,0xc0,0x6c,0x00,0x00,0x00]
3800x01,0x05,0x10,0xc0,0x6c,0x00,0x00,0x00
381
382# CHECK: s_load_dwordx16 s[20:35], s[2:3], tba_hi ; encoding: [0x01,0x05,0x10,0xc0,0x6d,0x00,0x00,0x00]
3830x01,0x05,0x10,0xc0,0x6d,0x00,0x00,0x00
384
385# CHECK: s_load_dwordx16 s[20:35], s[2:3], tma_lo ; encoding: [0x01,0x05,0x10,0xc0,0x6e,0x00,0x00,0x00]
3860x01,0x05,0x10,0xc0,0x6e,0x00,0x00,0x00
387
388# CHECK: s_load_dwordx16 s[20:35], s[2:3], tma_hi ; encoding: [0x01,0x05,0x10,0xc0,0x6f,0x00,0x00,0x00]
3890x01,0x05,0x10,0xc0,0x6f,0x00,0x00,0x00
390
391# CHECK: s_load_dwordx16 s[20:35], s[2:3], ttmp11 ; encoding: [0x01,0x05,0x10,0xc0,0x7b,0x00,0x00,0x00]
3920x01,0x05,0x10,0xc0,0x7b,0x00,0x00,0x00
393
394# CHECK: s_load_dwordx16 s[20:35], s[2:3], m0    ; encoding: [0x01,0x05,0x10,0xc0,0x7c,0x00,0x00,0x00]
3950x01,0x05,0x10,0xc0,0x7c,0x00,0x00,0x00
396
397# CHECK: s_load_dwordx16 s[20:35], s[2:3], 0x7ffff ; encoding: [0x01,0x05,0x12,0xc0,0xff,0xff,0x07,0x00]
3980x01,0x05,0x12,0xc0,0xff,0xff,0x07,0x00
399
400# CHECK: s_load_dwordx16 s[20:35], s[2:3], s2 glc ; encoding: [0x01,0x05,0x11,0xc0,0x02,0x00,0x00,0x00]
4010x01,0x05,0x11,0xc0,0x02,0x00,0x00,0x00
402
403# CHECK: s_buffer_load_dword s5, s[4:7], s2      ; encoding: [0x42,0x01,0x20,0xc0,0x02,0x00,0x00,0x00]
4040x42,0x01,0x20,0xc0,0x02,0x00,0x00,0x00
405
406# CHECK: s_buffer_load_dword s101, s[4:7], s2    ; encoding: [0x42,0x19,0x20,0xc0,0x02,0x00,0x00,0x00]
4070x42,0x19,0x20,0xc0,0x02,0x00,0x00,0x00
408
409# CHECK: s_buffer_load_dword flat_scratch_lo, s[4:7], s2 ; encoding: [0x82,0x19,0x20,0xc0,0x02,0x00,0x00,0x00]
4100x82,0x19,0x20,0xc0,0x02,0x00,0x00,0x00
411
412# CHECK: s_buffer_load_dword flat_scratch_hi, s[4:7], s2 ; encoding: [0xc2,0x19,0x20,0xc0,0x02,0x00,0x00,0x00]
4130xc2,0x19,0x20,0xc0,0x02,0x00,0x00,0x00
414
415# CHECK: s_buffer_load_dword vcc_lo, s[4:7], s2  ; encoding: [0x82,0x1a,0x20,0xc0,0x02,0x00,0x00,0x00]
4160x82,0x1a,0x20,0xc0,0x02,0x00,0x00,0x00
417
418# CHECK: s_buffer_load_dword vcc_hi, s[4:7], s2  ; encoding: [0xc2,0x1a,0x20,0xc0,0x02,0x00,0x00,0x00]
4190xc2,0x1a,0x20,0xc0,0x02,0x00,0x00,0x00
420
421# CHECK: s_buffer_load_dword tba_lo, s[4:7], s2  ; encoding: [0x02,0x1b,0x20,0xc0,0x02,0x00,0x00,0x00]
4220x02,0x1b,0x20,0xc0,0x02,0x00,0x00,0x00
423
424# CHECK: s_buffer_load_dword tba_hi, s[4:7], s2  ; encoding: [0x42,0x1b,0x20,0xc0,0x02,0x00,0x00,0x00]
4250x42,0x1b,0x20,0xc0,0x02,0x00,0x00,0x00
426
427# CHECK: s_buffer_load_dword tma_lo, s[4:7], s2  ; encoding: [0x82,0x1b,0x20,0xc0,0x02,0x00,0x00,0x00]
4280x82,0x1b,0x20,0xc0,0x02,0x00,0x00,0x00
429
430# CHECK: s_buffer_load_dword tma_hi, s[4:7], s2  ; encoding: [0xc2,0x1b,0x20,0xc0,0x02,0x00,0x00,0x00]
4310xc2,0x1b,0x20,0xc0,0x02,0x00,0x00,0x00
432
433# CHECK: s_buffer_load_dword ttmp11, s[4:7], s2  ; encoding: [0xc2,0x1e,0x20,0xc0,0x02,0x00,0x00,0x00]
4340xc2,0x1e,0x20,0xc0,0x02,0x00,0x00,0x00
435
436# CHECK: s_buffer_load_dword s5, s[8:11], s2     ; encoding: [0x44,0x01,0x20,0xc0,0x02,0x00,0x00,0x00]
4370x44,0x01,0x20,0xc0,0x02,0x00,0x00,0x00
438
439# CHECK: s_buffer_load_dword s5, s[96:99], s2    ; encoding: [0x70,0x01,0x20,0xc0,0x02,0x00,0x00,0x00]
4400x70,0x01,0x20,0xc0,0x02,0x00,0x00,0x00
441
442# CHECK: s_buffer_load_dword s5, ttmp[8:11], s2  ; encoding: [0x7c,0x01,0x20,0xc0,0x02,0x00,0x00,0x00]
4430x7c,0x01,0x20,0xc0,0x02,0x00,0x00,0x00
444
445# CHECK: s_buffer_load_dword s5, s[4:7], s101    ; encoding: [0x42,0x01,0x20,0xc0,0x65,0x00,0x00,0x00]
4460x42,0x01,0x20,0xc0,0x65,0x00,0x00,0x00
447
448# CHECK: s_buffer_load_dword s5, s[4:7], flat_scratch_lo ; encoding: [0x42,0x01,0x20,0xc0,0x66,0x00,0x00,0x00]
4490x42,0x01,0x20,0xc0,0x66,0x00,0x00,0x00
450
451# CHECK: s_buffer_load_dword s5, s[4:7], flat_scratch_hi ; encoding: [0x42,0x01,0x20,0xc0,0x67,0x00,0x00,0x00]
4520x42,0x01,0x20,0xc0,0x67,0x00,0x00,0x00
453
454# CHECK: s_buffer_load_dword s5, s[4:7], vcc_lo  ; encoding: [0x42,0x01,0x20,0xc0,0x6a,0x00,0x00,0x00]
4550x42,0x01,0x20,0xc0,0x6a,0x00,0x00,0x00
456
457# CHECK: s_buffer_load_dword s5, s[4:7], vcc_hi  ; encoding: [0x42,0x01,0x20,0xc0,0x6b,0x00,0x00,0x00]
4580x42,0x01,0x20,0xc0,0x6b,0x00,0x00,0x00
459
460# CHECK: s_buffer_load_dword s5, s[4:7], tba_lo  ; encoding: [0x42,0x01,0x20,0xc0,0x6c,0x00,0x00,0x00]
4610x42,0x01,0x20,0xc0,0x6c,0x00,0x00,0x00
462
463# CHECK: s_buffer_load_dword s5, s[4:7], tba_hi  ; encoding: [0x42,0x01,0x20,0xc0,0x6d,0x00,0x00,0x00]
4640x42,0x01,0x20,0xc0,0x6d,0x00,0x00,0x00
465
466# CHECK: s_buffer_load_dword s5, s[4:7], tma_lo  ; encoding: [0x42,0x01,0x20,0xc0,0x6e,0x00,0x00,0x00]
4670x42,0x01,0x20,0xc0,0x6e,0x00,0x00,0x00
468
469# CHECK: s_buffer_load_dword s5, s[4:7], tma_hi  ; encoding: [0x42,0x01,0x20,0xc0,0x6f,0x00,0x00,0x00]
4700x42,0x01,0x20,0xc0,0x6f,0x00,0x00,0x00
471
472# CHECK: s_buffer_load_dword s5, s[4:7], ttmp11  ; encoding: [0x42,0x01,0x20,0xc0,0x7b,0x00,0x00,0x00]
4730x42,0x01,0x20,0xc0,0x7b,0x00,0x00,0x00
474
475# CHECK: s_buffer_load_dword s5, s[4:7], m0      ; encoding: [0x42,0x01,0x20,0xc0,0x7c,0x00,0x00,0x00]
4760x42,0x01,0x20,0xc0,0x7c,0x00,0x00,0x00
477
478# CHECK: s_buffer_load_dword s5, s[4:7], 0x7ffff ; encoding: [0x42,0x01,0x22,0xc0,0xff,0xff,0x07,0x00]
4790x42,0x01,0x22,0xc0,0xff,0xff,0x07,0x00
480
481# CHECK: s_buffer_load_dword s5, s[4:7], s2 glc  ; encoding: [0x42,0x01,0x21,0xc0,0x02,0x00,0x00,0x00]
4820x42,0x01,0x21,0xc0,0x02,0x00,0x00,0x00
483
484# CHECK: s_buffer_load_dwordx2 s[10:11], s[4:7], s2 ; encoding: [0x82,0x02,0x24,0xc0,0x02,0x00,0x00,0x00]
4850x82,0x02,0x24,0xc0,0x02,0x00,0x00,0x00
486
487# CHECK: s_buffer_load_dwordx2 s[12:13], s[4:7], s2 ; encoding: [0x02,0x03,0x24,0xc0,0x02,0x00,0x00,0x00]
4880x02,0x03,0x24,0xc0,0x02,0x00,0x00,0x00
489
490# CHECK: s_buffer_load_dwordx2 s[100:101], s[4:7], s2 ; encoding: [0x02,0x19,0x24,0xc0,0x02,0x00,0x00,0x00]
4910x02,0x19,0x24,0xc0,0x02,0x00,0x00,0x00
492
493# CHECK: s_buffer_load_dwordx2 flat_scratch, s[4:7], s2 ; encoding: [0x82,0x19,0x24,0xc0,0x02,0x00,0x00,0x00]
4940x82,0x19,0x24,0xc0,0x02,0x00,0x00,0x00
495
496# CHECK: s_buffer_load_dwordx2 vcc, s[4:7], s2   ; encoding: [0x82,0x1a,0x24,0xc0,0x02,0x00,0x00,0x00]
4970x82,0x1a,0x24,0xc0,0x02,0x00,0x00,0x00
498
499# CHECK: s_buffer_load_dwordx2 tba, s[4:7], s2   ; encoding: [0x02,0x1b,0x24,0xc0,0x02,0x00,0x00,0x00]
5000x02,0x1b,0x24,0xc0,0x02,0x00,0x00,0x00
501
502# CHECK: s_buffer_load_dwordx2 tma, s[4:7], s2   ; encoding: [0x82,0x1b,0x24,0xc0,0x02,0x00,0x00,0x00]
5030x82,0x1b,0x24,0xc0,0x02,0x00,0x00,0x00
504
505# CHECK: s_buffer_load_dwordx2 ttmp[10:11], s[4:7], s2 ; encoding: [0x82,0x1e,0x24,0xc0,0x02,0x00,0x00,0x00]
5060x82,0x1e,0x24,0xc0,0x02,0x00,0x00,0x00
507
508# CHECK: s_buffer_load_dwordx2 s[10:11], s[8:11], s2 ; encoding: [0x84,0x02,0x24,0xc0,0x02,0x00,0x00,0x00]
5090x84,0x02,0x24,0xc0,0x02,0x00,0x00,0x00
510
511# CHECK: s_buffer_load_dwordx2 s[10:11], s[96:99], s2 ; encoding: [0xb0,0x02,0x24,0xc0,0x02,0x00,0x00,0x00]
5120xb0,0x02,0x24,0xc0,0x02,0x00,0x00,0x00
513
514# CHECK: s_buffer_load_dwordx2 s[10:11], ttmp[8:11], s2 ; encoding: [0xbc,0x02,0x24,0xc0,0x02,0x00,0x00,0x00]
5150xbc,0x02,0x24,0xc0,0x02,0x00,0x00,0x00
516
517# CHECK: s_buffer_load_dwordx2 s[10:11], s[4:7], s101 ; encoding: [0x82,0x02,0x24,0xc0,0x65,0x00,0x00,0x00]
5180x82,0x02,0x24,0xc0,0x65,0x00,0x00,0x00
519
520# CHECK: s_buffer_load_dwordx2 s[10:11], s[4:7], flat_scratch_lo ; encoding: [0x82,0x02,0x24,0xc0,0x66,0x00,0x00,0x00]
5210x82,0x02,0x24,0xc0,0x66,0x00,0x00,0x00
522
523# CHECK: s_buffer_load_dwordx2 s[10:11], s[4:7], flat_scratch_hi ; encoding: [0x82,0x02,0x24,0xc0,0x67,0x00,0x00,0x00]
5240x82,0x02,0x24,0xc0,0x67,0x00,0x00,0x00
525
526# CHECK: s_buffer_load_dwordx2 s[10:11], s[4:7], vcc_lo ; encoding: [0x82,0x02,0x24,0xc0,0x6a,0x00,0x00,0x00]
5270x82,0x02,0x24,0xc0,0x6a,0x00,0x00,0x00
528
529# CHECK: s_buffer_load_dwordx2 s[10:11], s[4:7], vcc_hi ; encoding: [0x82,0x02,0x24,0xc0,0x6b,0x00,0x00,0x00]
5300x82,0x02,0x24,0xc0,0x6b,0x00,0x00,0x00
531
532# CHECK: s_buffer_load_dwordx2 s[10:11], s[4:7], tba_lo ; encoding: [0x82,0x02,0x24,0xc0,0x6c,0x00,0x00,0x00]
5330x82,0x02,0x24,0xc0,0x6c,0x00,0x00,0x00
534
535# CHECK: s_buffer_load_dwordx2 s[10:11], s[4:7], tba_hi ; encoding: [0x82,0x02,0x24,0xc0,0x6d,0x00,0x00,0x00]
5360x82,0x02,0x24,0xc0,0x6d,0x00,0x00,0x00
537
538# CHECK: s_buffer_load_dwordx2 s[10:11], s[4:7], tma_lo ; encoding: [0x82,0x02,0x24,0xc0,0x6e,0x00,0x00,0x00]
5390x82,0x02,0x24,0xc0,0x6e,0x00,0x00,0x00
540
541# CHECK: s_buffer_load_dwordx2 s[10:11], s[4:7], tma_hi ; encoding: [0x82,0x02,0x24,0xc0,0x6f,0x00,0x00,0x00]
5420x82,0x02,0x24,0xc0,0x6f,0x00,0x00,0x00
543
544# CHECK: s_buffer_load_dwordx2 s[10:11], s[4:7], ttmp11 ; encoding: [0x82,0x02,0x24,0xc0,0x7b,0x00,0x00,0x00]
5450x82,0x02,0x24,0xc0,0x7b,0x00,0x00,0x00
546
547# CHECK: s_buffer_load_dwordx2 s[10:11], s[4:7], m0 ; encoding: [0x82,0x02,0x24,0xc0,0x7c,0x00,0x00,0x00]
5480x82,0x02,0x24,0xc0,0x7c,0x00,0x00,0x00
549
550# CHECK: s_buffer_load_dwordx2 s[10:11], s[4:7], 0x7ffff ; encoding: [0x82,0x02,0x26,0xc0,0xff,0xff,0x07,0x00]
5510x82,0x02,0x26,0xc0,0xff,0xff,0x07,0x00
552
553# CHECK: s_buffer_load_dwordx2 s[10:11], s[4:7], s2 glc ; encoding: [0x82,0x02,0x25,0xc0,0x02,0x00,0x00,0x00]
5540x82,0x02,0x25,0xc0,0x02,0x00,0x00,0x00
555
556# CHECK: s_buffer_load_dwordx4 s[20:23], s[4:7], s2 ; encoding: [0x02,0x05,0x28,0xc0,0x02,0x00,0x00,0x00]
5570x02,0x05,0x28,0xc0,0x02,0x00,0x00,0x00
558
559# CHECK: s_buffer_load_dwordx4 s[24:27], s[4:7], s2 ; encoding: [0x02,0x06,0x28,0xc0,0x02,0x00,0x00,0x00]
5600x02,0x06,0x28,0xc0,0x02,0x00,0x00,0x00
561
562# CHECK: s_buffer_load_dwordx4 s[96:99], s[4:7], s2 ; encoding: [0x02,0x18,0x28,0xc0,0x02,0x00,0x00,0x00]
5630x02,0x18,0x28,0xc0,0x02,0x00,0x00,0x00
564
565# CHECK: s_buffer_load_dwordx4 ttmp[8:11], s[4:7], s2 ; encoding: [0x02,0x1e,0x28,0xc0,0x02,0x00,0x00,0x00]
5660x02,0x1e,0x28,0xc0,0x02,0x00,0x00,0x00
567
568# CHECK: s_buffer_load_dwordx4 s[20:23], s[8:11], s2 ; encoding: [0x04,0x05,0x28,0xc0,0x02,0x00,0x00,0x00]
5690x04,0x05,0x28,0xc0,0x02,0x00,0x00,0x00
570
571# CHECK: s_buffer_load_dwordx4 s[20:23], s[96:99], s2 ; encoding: [0x30,0x05,0x28,0xc0,0x02,0x00,0x00,0x00]
5720x30,0x05,0x28,0xc0,0x02,0x00,0x00,0x00
573
574# CHECK: s_buffer_load_dwordx4 s[20:23], ttmp[8:11], s2 ; encoding: [0x3c,0x05,0x28,0xc0,0x02,0x00,0x00,0x00]
5750x3c,0x05,0x28,0xc0,0x02,0x00,0x00,0x00
576
577# CHECK: s_buffer_load_dwordx4 s[20:23], s[4:7], s101 ; encoding: [0x02,0x05,0x28,0xc0,0x65,0x00,0x00,0x00]
5780x02,0x05,0x28,0xc0,0x65,0x00,0x00,0x00
579
580# CHECK: s_buffer_load_dwordx4 s[20:23], s[4:7], flat_scratch_lo ; encoding: [0x02,0x05,0x28,0xc0,0x66,0x00,0x00,0x00]
5810x02,0x05,0x28,0xc0,0x66,0x00,0x00,0x00
582
583# CHECK: s_buffer_load_dwordx4 s[20:23], s[4:7], flat_scratch_hi ; encoding: [0x02,0x05,0x28,0xc0,0x67,0x00,0x00,0x00]
5840x02,0x05,0x28,0xc0,0x67,0x00,0x00,0x00
585
586# CHECK: s_buffer_load_dwordx4 s[20:23], s[4:7], vcc_lo ; encoding: [0x02,0x05,0x28,0xc0,0x6a,0x00,0x00,0x00]
5870x02,0x05,0x28,0xc0,0x6a,0x00,0x00,0x00
588
589# CHECK: s_buffer_load_dwordx4 s[20:23], s[4:7], vcc_hi ; encoding: [0x02,0x05,0x28,0xc0,0x6b,0x00,0x00,0x00]
5900x02,0x05,0x28,0xc0,0x6b,0x00,0x00,0x00
591
592# CHECK: s_buffer_load_dwordx4 s[20:23], s[4:7], tba_lo ; encoding: [0x02,0x05,0x28,0xc0,0x6c,0x00,0x00,0x00]
5930x02,0x05,0x28,0xc0,0x6c,0x00,0x00,0x00
594
595# CHECK: s_buffer_load_dwordx4 s[20:23], s[4:7], tba_hi ; encoding: [0x02,0x05,0x28,0xc0,0x6d,0x00,0x00,0x00]
5960x02,0x05,0x28,0xc0,0x6d,0x00,0x00,0x00
597
598# CHECK: s_buffer_load_dwordx4 s[20:23], s[4:7], tma_lo ; encoding: [0x02,0x05,0x28,0xc0,0x6e,0x00,0x00,0x00]
5990x02,0x05,0x28,0xc0,0x6e,0x00,0x00,0x00
600
601# CHECK: s_buffer_load_dwordx4 s[20:23], s[4:7], tma_hi ; encoding: [0x02,0x05,0x28,0xc0,0x6f,0x00,0x00,0x00]
6020x02,0x05,0x28,0xc0,0x6f,0x00,0x00,0x00
603
604# CHECK: s_buffer_load_dwordx4 s[20:23], s[4:7], ttmp11 ; encoding: [0x02,0x05,0x28,0xc0,0x7b,0x00,0x00,0x00]
6050x02,0x05,0x28,0xc0,0x7b,0x00,0x00,0x00
606
607# CHECK: s_buffer_load_dwordx4 s[20:23], s[4:7], m0 ; encoding: [0x02,0x05,0x28,0xc0,0x7c,0x00,0x00,0x00]
6080x02,0x05,0x28,0xc0,0x7c,0x00,0x00,0x00
609
610# CHECK: s_buffer_load_dwordx4 s[20:23], s[4:7], 0x7ffff ; encoding: [0x02,0x05,0x2a,0xc0,0xff,0xff,0x07,0x00]
6110x02,0x05,0x2a,0xc0,0xff,0xff,0x07,0x00
612
613# CHECK: s_buffer_load_dwordx4 s[20:23], s[4:7], s2 glc ; encoding: [0x02,0x05,0x29,0xc0,0x02,0x00,0x00,0x00]
6140x02,0x05,0x29,0xc0,0x02,0x00,0x00,0x00
615
616# CHECK: s_buffer_load_dwordx8 s[20:27], s[4:7], s2 ; encoding: [0x02,0x05,0x2c,0xc0,0x02,0x00,0x00,0x00]
6170x02,0x05,0x2c,0xc0,0x02,0x00,0x00,0x00
618
619# CHECK: s_buffer_load_dwordx8 s[24:31], s[4:7], s2 ; encoding: [0x02,0x06,0x2c,0xc0,0x02,0x00,0x00,0x00]
6200x02,0x06,0x2c,0xc0,0x02,0x00,0x00,0x00
621
622# CHECK: s_buffer_load_dwordx8 s[92:99], s[4:7], s2 ; encoding: [0x02,0x17,0x2c,0xc0,0x02,0x00,0x00,0x00]
6230x02,0x17,0x2c,0xc0,0x02,0x00,0x00,0x00
624
625# CHECK: s_buffer_load_dwordx8 ttmp[4:11], s[4:7], s2 ; encoding: [0x02,0x1d,0x2c,0xc0,0x02,0x00,0x00,0x00]
6260x02,0x1d,0x2c,0xc0,0x02,0x00,0x00,0x00
627
628# CHECK: s_buffer_load_dwordx8 s[20:27], s[8:11], s2 ; encoding: [0x04,0x05,0x2c,0xc0,0x02,0x00,0x00,0x00]
6290x04,0x05,0x2c,0xc0,0x02,0x00,0x00,0x00
630
631# CHECK: s_buffer_load_dwordx8 s[20:27], s[96:99], s2 ; encoding: [0x30,0x05,0x2c,0xc0,0x02,0x00,0x00,0x00]
6320x30,0x05,0x2c,0xc0,0x02,0x00,0x00,0x00
633
634# CHECK: s_buffer_load_dwordx8 s[20:27], ttmp[8:11], s2 ; encoding: [0x3c,0x05,0x2c,0xc0,0x02,0x00,0x00,0x00]
6350x3c,0x05,0x2c,0xc0,0x02,0x00,0x00,0x00
636
637# CHECK: s_buffer_load_dwordx8 s[20:27], s[4:7], s101 ; encoding: [0x02,0x05,0x2c,0xc0,0x65,0x00,0x00,0x00]
6380x02,0x05,0x2c,0xc0,0x65,0x00,0x00,0x00
639
640# CHECK: s_buffer_load_dwordx8 s[20:27], s[4:7], flat_scratch_lo ; encoding: [0x02,0x05,0x2c,0xc0,0x66,0x00,0x00,0x00]
6410x02,0x05,0x2c,0xc0,0x66,0x00,0x00,0x00
642
643# CHECK: s_buffer_load_dwordx8 s[20:27], s[4:7], flat_scratch_hi ; encoding: [0x02,0x05,0x2c,0xc0,0x67,0x00,0x00,0x00]
6440x02,0x05,0x2c,0xc0,0x67,0x00,0x00,0x00
645
646# CHECK: s_buffer_load_dwordx8 s[20:27], s[4:7], vcc_lo ; encoding: [0x02,0x05,0x2c,0xc0,0x6a,0x00,0x00,0x00]
6470x02,0x05,0x2c,0xc0,0x6a,0x00,0x00,0x00
648
649# CHECK: s_buffer_load_dwordx8 s[20:27], s[4:7], vcc_hi ; encoding: [0x02,0x05,0x2c,0xc0,0x6b,0x00,0x00,0x00]
6500x02,0x05,0x2c,0xc0,0x6b,0x00,0x00,0x00
651
652# CHECK: s_buffer_load_dwordx8 s[20:27], s[4:7], tba_lo ; encoding: [0x02,0x05,0x2c,0xc0,0x6c,0x00,0x00,0x00]
6530x02,0x05,0x2c,0xc0,0x6c,0x00,0x00,0x00
654
655# CHECK: s_buffer_load_dwordx8 s[20:27], s[4:7], tba_hi ; encoding: [0x02,0x05,0x2c,0xc0,0x6d,0x00,0x00,0x00]
6560x02,0x05,0x2c,0xc0,0x6d,0x00,0x00,0x00
657
658# CHECK: s_buffer_load_dwordx8 s[20:27], s[4:7], tma_lo ; encoding: [0x02,0x05,0x2c,0xc0,0x6e,0x00,0x00,0x00]
6590x02,0x05,0x2c,0xc0,0x6e,0x00,0x00,0x00
660
661# CHECK: s_buffer_load_dwordx8 s[20:27], s[4:7], tma_hi ; encoding: [0x02,0x05,0x2c,0xc0,0x6f,0x00,0x00,0x00]
6620x02,0x05,0x2c,0xc0,0x6f,0x00,0x00,0x00
663
664# CHECK: s_buffer_load_dwordx8 s[20:27], s[4:7], ttmp11 ; encoding: [0x02,0x05,0x2c,0xc0,0x7b,0x00,0x00,0x00]
6650x02,0x05,0x2c,0xc0,0x7b,0x00,0x00,0x00
666
667# CHECK: s_buffer_load_dwordx8 s[20:27], s[4:7], m0 ; encoding: [0x02,0x05,0x2c,0xc0,0x7c,0x00,0x00,0x00]
6680x02,0x05,0x2c,0xc0,0x7c,0x00,0x00,0x00
669
670# CHECK: s_buffer_load_dwordx8 s[20:27], s[4:7], 0x7ffff ; encoding: [0x02,0x05,0x2e,0xc0,0xff,0xff,0x07,0x00]
6710x02,0x05,0x2e,0xc0,0xff,0xff,0x07,0x00
672
673# CHECK: s_buffer_load_dwordx8 s[20:27], s[4:7], s2 glc ; encoding: [0x02,0x05,0x2d,0xc0,0x02,0x00,0x00,0x00]
6740x02,0x05,0x2d,0xc0,0x02,0x00,0x00,0x00
675
676# CHECK: s_buffer_load_dwordx16 s[20:35], s[4:7], s2 ; encoding: [0x02,0x05,0x30,0xc0,0x02,0x00,0x00,0x00]
6770x02,0x05,0x30,0xc0,0x02,0x00,0x00,0x00
678
679# CHECK: s_buffer_load_dwordx16 s[24:39], s[4:7], s2 ; encoding: [0x02,0x06,0x30,0xc0,0x02,0x00,0x00,0x00]
6800x02,0x06,0x30,0xc0,0x02,0x00,0x00,0x00
681
682# CHECK: s_buffer_load_dwordx16 s[84:99], s[4:7], s2 ; encoding: [0x02,0x15,0x30,0xc0,0x02,0x00,0x00,0x00]
6830x02,0x15,0x30,0xc0,0x02,0x00,0x00,0x00
684
685# CHECK: s_buffer_load_dwordx16 s[20:35], s[8:11], s2 ; encoding: [0x04,0x05,0x30,0xc0,0x02,0x00,0x00,0x00]
6860x04,0x05,0x30,0xc0,0x02,0x00,0x00,0x00
687
688# CHECK: s_buffer_load_dwordx16 s[20:35], s[96:99], s2 ; encoding: [0x30,0x05,0x30,0xc0,0x02,0x00,0x00,0x00]
6890x30,0x05,0x30,0xc0,0x02,0x00,0x00,0x00
690
691# CHECK: s_buffer_load_dwordx16 s[20:35], ttmp[8:11], s2 ; encoding: [0x3c,0x05,0x30,0xc0,0x02,0x00,0x00,0x00]
6920x3c,0x05,0x30,0xc0,0x02,0x00,0x00,0x00
693
694# CHECK: s_buffer_load_dwordx16 s[20:35], s[4:7], s101 ; encoding: [0x02,0x05,0x30,0xc0,0x65,0x00,0x00,0x00]
6950x02,0x05,0x30,0xc0,0x65,0x00,0x00,0x00
696
697# CHECK: s_buffer_load_dwordx16 s[20:35], s[4:7], flat_scratch_lo ; encoding: [0x02,0x05,0x30,0xc0,0x66,0x00,0x00,0x00]
6980x02,0x05,0x30,0xc0,0x66,0x00,0x00,0x00
699
700# CHECK: s_buffer_load_dwordx16 s[20:35], s[4:7], flat_scratch_hi ; encoding: [0x02,0x05,0x30,0xc0,0x67,0x00,0x00,0x00]
7010x02,0x05,0x30,0xc0,0x67,0x00,0x00,0x00
702
703# CHECK: s_buffer_load_dwordx16 s[20:35], s[4:7], vcc_lo ; encoding: [0x02,0x05,0x30,0xc0,0x6a,0x00,0x00,0x00]
7040x02,0x05,0x30,0xc0,0x6a,0x00,0x00,0x00
705
706# CHECK: s_buffer_load_dwordx16 s[20:35], s[4:7], vcc_hi ; encoding: [0x02,0x05,0x30,0xc0,0x6b,0x00,0x00,0x00]
7070x02,0x05,0x30,0xc0,0x6b,0x00,0x00,0x00
708
709# CHECK: s_buffer_load_dwordx16 s[20:35], s[4:7], tba_lo ; encoding: [0x02,0x05,0x30,0xc0,0x6c,0x00,0x00,0x00]
7100x02,0x05,0x30,0xc0,0x6c,0x00,0x00,0x00
711
712# CHECK: s_buffer_load_dwordx16 s[20:35], s[4:7], tba_hi ; encoding: [0x02,0x05,0x30,0xc0,0x6d,0x00,0x00,0x00]
7130x02,0x05,0x30,0xc0,0x6d,0x00,0x00,0x00
714
715# CHECK: s_buffer_load_dwordx16 s[20:35], s[4:7], tma_lo ; encoding: [0x02,0x05,0x30,0xc0,0x6e,0x00,0x00,0x00]
7160x02,0x05,0x30,0xc0,0x6e,0x00,0x00,0x00
717
718# CHECK: s_buffer_load_dwordx16 s[20:35], s[4:7], tma_hi ; encoding: [0x02,0x05,0x30,0xc0,0x6f,0x00,0x00,0x00]
7190x02,0x05,0x30,0xc0,0x6f,0x00,0x00,0x00
720
721# CHECK: s_buffer_load_dwordx16 s[20:35], s[4:7], ttmp11 ; encoding: [0x02,0x05,0x30,0xc0,0x7b,0x00,0x00,0x00]
7220x02,0x05,0x30,0xc0,0x7b,0x00,0x00,0x00
723
724# CHECK: s_buffer_load_dwordx16 s[20:35], s[4:7], m0 ; encoding: [0x02,0x05,0x30,0xc0,0x7c,0x00,0x00,0x00]
7250x02,0x05,0x30,0xc0,0x7c,0x00,0x00,0x00
726
727# CHECK: s_buffer_load_dwordx16 s[20:35], s[4:7], 0x7ffff ; encoding: [0x02,0x05,0x32,0xc0,0xff,0xff,0x07,0x00]
7280x02,0x05,0x32,0xc0,0xff,0xff,0x07,0x00
729
730# CHECK: s_buffer_load_dwordx16 s[20:35], s[4:7], s2 glc ; encoding: [0x02,0x05,0x31,0xc0,0x02,0x00,0x00,0x00]
7310x02,0x05,0x31,0xc0,0x02,0x00,0x00,0x00
732
733# CHECK: s_store_dword s1, s[4:5], m0            ; encoding: [0x42,0x00,0x40,0xc0,0x7c,0x00,0x00,0x00]
7340x42,0x00,0x40,0xc0,0x7c,0x00,0x00,0x00
735
736# Make sure that raising the GFX9 soffset_en bit doesn't affect GFX8
737# decoding.
738# CHECK: s_store_dword s1, s[4:5], m0            ; encoding: [0x42,0x00,0x40,0xc0,0x7c,0x00,0x00,0x00]
7390x42,0x40,0x40,0xc0,0x7c,0x00,0x00,0x00
740
741# CHECK: s_store_dword s101, s[4:5], m0          ; encoding: [0x42,0x19,0x40,0xc0,0x7c,0x00,0x00,0x00]
7420x42,0x19,0x40,0xc0,0x7c,0x00,0x00,0x00
743
744# CHECK: s_store_dword flat_scratch_lo, s[4:5], m0 ; encoding: [0x82,0x19,0x40,0xc0,0x7c,0x00,0x00,0x00]
7450x82,0x19,0x40,0xc0,0x7c,0x00,0x00,0x00
746
747# CHECK: s_store_dword flat_scratch_hi, s[4:5], m0 ; encoding: [0xc2,0x19,0x40,0xc0,0x7c,0x00,0x00,0x00]
7480xc2,0x19,0x40,0xc0,0x7c,0x00,0x00,0x00
749
750# CHECK: s_store_dword vcc_lo, s[4:5], m0        ; encoding: [0x82,0x1a,0x40,0xc0,0x7c,0x00,0x00,0x00]
7510x82,0x1a,0x40,0xc0,0x7c,0x00,0x00,0x00
752
753# CHECK: s_store_dword vcc_hi, s[4:5], m0        ; encoding: [0xc2,0x1a,0x40,0xc0,0x7c,0x00,0x00,0x00]
7540xc2,0x1a,0x40,0xc0,0x7c,0x00,0x00,0x00
755
756# CHECK: s_store_dword tba_lo, s[4:5], m0        ; encoding: [0x02,0x1b,0x40,0xc0,0x7c,0x00,0x00,0x00]
7570x02,0x1b,0x40,0xc0,0x7c,0x00,0x00,0x00
758
759# CHECK: s_store_dword tba_hi, s[4:5], m0        ; encoding: [0x42,0x1b,0x40,0xc0,0x7c,0x00,0x00,0x00]
7600x42,0x1b,0x40,0xc0,0x7c,0x00,0x00,0x00
761
762# CHECK: s_store_dword tma_lo, s[4:5], m0        ; encoding: [0x82,0x1b,0x40,0xc0,0x7c,0x00,0x00,0x00]
7630x82,0x1b,0x40,0xc0,0x7c,0x00,0x00,0x00
764
765# CHECK: s_store_dword tma_hi, s[4:5], m0        ; encoding: [0xc2,0x1b,0x40,0xc0,0x7c,0x00,0x00,0x00]
7660xc2,0x1b,0x40,0xc0,0x7c,0x00,0x00,0x00
767
768# CHECK: s_store_dword ttmp11, s[4:5], m0        ; encoding: [0xc2,0x1e,0x40,0xc0,0x7c,0x00,0x00,0x00]
7690xc2,0x1e,0x40,0xc0,0x7c,0x00,0x00,0x00
770
771# CHECK: s_store_dword s1, s[6:7], m0            ; encoding: [0x43,0x00,0x40,0xc0,0x7c,0x00,0x00,0x00]
7720x43,0x00,0x40,0xc0,0x7c,0x00,0x00,0x00
773
774# CHECK: s_store_dword s1, s[100:101], m0        ; encoding: [0x72,0x00,0x40,0xc0,0x7c,0x00,0x00,0x00]
7750x72,0x00,0x40,0xc0,0x7c,0x00,0x00,0x00
776
777# CHECK: s_store_dword s1, flat_scratch, m0      ; encoding: [0x73,0x00,0x40,0xc0,0x7c,0x00,0x00,0x00]
7780x73,0x00,0x40,0xc0,0x7c,0x00,0x00,0x00
779
780# CHECK: s_store_dword s1, vcc, m0               ; encoding: [0x75,0x00,0x40,0xc0,0x7c,0x00,0x00,0x00]
7810x75,0x00,0x40,0xc0,0x7c,0x00,0x00,0x00
782
783# CHECK: s_store_dword s1, tba, m0               ; encoding: [0x76,0x00,0x40,0xc0,0x7c,0x00,0x00,0x00]
7840x76,0x00,0x40,0xc0,0x7c,0x00,0x00,0x00
785
786# CHECK: s_store_dword s1, tma, m0               ; encoding: [0x77,0x00,0x40,0xc0,0x7c,0x00,0x00,0x00]
7870x77,0x00,0x40,0xc0,0x7c,0x00,0x00,0x00
788
789# CHECK: s_store_dword s1, ttmp[10:11], m0       ; encoding: [0x7d,0x00,0x40,0xc0,0x7c,0x00,0x00,0x00]
7900x7d,0x00,0x40,0xc0,0x7c,0x00,0x00,0x00
791
792# CHECK: s_store_dword s1, s[4:5], 0x7ffff       ; encoding: [0x42,0x00,0x42,0xc0,0xff,0xff,0x07,0x00]
7930x42,0x00,0x42,0xc0,0xff,0xff,0x07,0x00
794
795# Make sure that raising the GFX9 soffset_en bit doesn't affect GFX8
796# decoding.
797# CHECK: s_store_dword s1, s[4:5], 0x7ffff       ; encoding: [0x42,0x00,0x42,0xc0,0xff,0xff,0x07,0x00]
7980x42,0x40,0x42,0xc0,0xff,0xff,0x07,0x00
799
800# CHECK: s_store_dword s1, s[4:5], m0 glc        ; encoding: [0x42,0x00,0x41,0xc0,0x7c,0x00,0x00,0x00]
8010x42,0x00,0x41,0xc0,0x7c,0x00,0x00,0x00
802
803# CHECK: s_store_dwordx2 s[2:3], s[4:5], m0      ; encoding: [0x82,0x00,0x44,0xc0,0x7c,0x00,0x00,0x00]
8040x82,0x00,0x44,0xc0,0x7c,0x00,0x00,0x00
805
806# CHECK: s_store_dwordx2 s[4:5], s[4:5], m0      ; encoding: [0x02,0x01,0x44,0xc0,0x7c,0x00,0x00,0x00]
8070x02,0x01,0x44,0xc0,0x7c,0x00,0x00,0x00
808
809# CHECK: s_store_dwordx2 s[100:101], s[4:5], m0  ; encoding: [0x02,0x19,0x44,0xc0,0x7c,0x00,0x00,0x00]
8100x02,0x19,0x44,0xc0,0x7c,0x00,0x00,0x00
811
812# CHECK: s_store_dwordx2 flat_scratch, s[4:5], m0 ; encoding: [0x82,0x19,0x44,0xc0,0x7c,0x00,0x00,0x00]
8130x82,0x19,0x44,0xc0,0x7c,0x00,0x00,0x00
814
815# CHECK: s_store_dwordx2 vcc, s[4:5], m0         ; encoding: [0x82,0x1a,0x44,0xc0,0x7c,0x00,0x00,0x00]
8160x82,0x1a,0x44,0xc0,0x7c,0x00,0x00,0x00
817
818# CHECK: s_store_dwordx2 tba, s[4:5], m0         ; encoding: [0x02,0x1b,0x44,0xc0,0x7c,0x00,0x00,0x00]
8190x02,0x1b,0x44,0xc0,0x7c,0x00,0x00,0x00
820
821# CHECK: s_store_dwordx2 tma, s[4:5], m0         ; encoding: [0x82,0x1b,0x44,0xc0,0x7c,0x00,0x00,0x00]
8220x82,0x1b,0x44,0xc0,0x7c,0x00,0x00,0x00
823
824# CHECK: s_store_dwordx2 ttmp[10:11], s[4:5], m0 ; encoding: [0x82,0x1e,0x44,0xc0,0x7c,0x00,0x00,0x00]
8250x82,0x1e,0x44,0xc0,0x7c,0x00,0x00,0x00
826
827# CHECK: s_store_dwordx2 s[2:3], s[6:7], m0      ; encoding: [0x83,0x00,0x44,0xc0,0x7c,0x00,0x00,0x00]
8280x83,0x00,0x44,0xc0,0x7c,0x00,0x00,0x00
829
830# CHECK: s_store_dwordx2 s[2:3], s[100:101], m0  ; encoding: [0xb2,0x00,0x44,0xc0,0x7c,0x00,0x00,0x00]
8310xb2,0x00,0x44,0xc0,0x7c,0x00,0x00,0x00
832
833# CHECK: s_store_dwordx2 s[2:3], flat_scratch, m0 ; encoding: [0xb3,0x00,0x44,0xc0,0x7c,0x00,0x00,0x00]
8340xb3,0x00,0x44,0xc0,0x7c,0x00,0x00,0x00
835
836# CHECK: s_store_dwordx2 s[2:3], vcc, m0         ; encoding: [0xb5,0x00,0x44,0xc0,0x7c,0x00,0x00,0x00]
8370xb5,0x00,0x44,0xc0,0x7c,0x00,0x00,0x00
838
839# CHECK: s_store_dwordx2 s[2:3], tba, m0         ; encoding: [0xb6,0x00,0x44,0xc0,0x7c,0x00,0x00,0x00]
8400xb6,0x00,0x44,0xc0,0x7c,0x00,0x00,0x00
841
842# CHECK: s_store_dwordx2 s[2:3], tma, m0         ; encoding: [0xb7,0x00,0x44,0xc0,0x7c,0x00,0x00,0x00]
8430xb7,0x00,0x44,0xc0,0x7c,0x00,0x00,0x00
844
845# CHECK: s_store_dwordx2 s[2:3], ttmp[10:11], m0 ; encoding: [0xbd,0x00,0x44,0xc0,0x7c,0x00,0x00,0x00]
8460xbd,0x00,0x44,0xc0,0x7c,0x00,0x00,0x00
847
848# CHECK: s_store_dwordx2 s[2:3], s[4:5], 0x7ffff ; encoding: [0x82,0x00,0x46,0xc0,0xff,0xff,0x07,0x00]
8490x82,0x00,0x46,0xc0,0xff,0xff,0x07,0x00
850
851# CHECK: s_store_dwordx2 s[2:3], s[4:5], m0 glc  ; encoding: [0x82,0x00,0x45,0xc0,0x7c,0x00,0x00,0x00]
8520x82,0x00,0x45,0xc0,0x7c,0x00,0x00,0x00
853
854# CHECK: s_store_dwordx4 s[4:7], s[4:5], m0      ; encoding: [0x02,0x01,0x48,0xc0,0x7c,0x00,0x00,0x00]
8550x02,0x01,0x48,0xc0,0x7c,0x00,0x00,0x00
856
857# CHECK: s_store_dwordx4 s[8:11], s[4:5], m0     ; encoding: [0x02,0x02,0x48,0xc0,0x7c,0x00,0x00,0x00]
8580x02,0x02,0x48,0xc0,0x7c,0x00,0x00,0x00
859
860# CHECK: s_store_dwordx4 s[96:99], s[4:5], m0    ; encoding: [0x02,0x18,0x48,0xc0,0x7c,0x00,0x00,0x00]
8610x02,0x18,0x48,0xc0,0x7c,0x00,0x00,0x00
862
863# CHECK: s_store_dwordx4 ttmp[8:11], s[4:5], m0  ; encoding: [0x02,0x1e,0x48,0xc0,0x7c,0x00,0x00,0x00]
8640x02,0x1e,0x48,0xc0,0x7c,0x00,0x00,0x00
865
866# CHECK: s_store_dwordx4 s[4:7], s[6:7], m0      ; encoding: [0x03,0x01,0x48,0xc0,0x7c,0x00,0x00,0x00]
8670x03,0x01,0x48,0xc0,0x7c,0x00,0x00,0x00
868
869# CHECK: s_store_dwordx4 s[4:7], s[100:101], m0  ; encoding: [0x32,0x01,0x48,0xc0,0x7c,0x00,0x00,0x00]
8700x32,0x01,0x48,0xc0,0x7c,0x00,0x00,0x00
871
872# CHECK: s_store_dwordx4 s[4:7], flat_scratch, m0 ; encoding: [0x33,0x01,0x48,0xc0,0x7c,0x00,0x00,0x00]
8730x33,0x01,0x48,0xc0,0x7c,0x00,0x00,0x00
874
875# CHECK: s_store_dwordx4 s[4:7], vcc, m0         ; encoding: [0x35,0x01,0x48,0xc0,0x7c,0x00,0x00,0x00]
8760x35,0x01,0x48,0xc0,0x7c,0x00,0x00,0x00
877
878# CHECK: s_store_dwordx4 s[4:7], tba, m0         ; encoding: [0x36,0x01,0x48,0xc0,0x7c,0x00,0x00,0x00]
8790x36,0x01,0x48,0xc0,0x7c,0x00,0x00,0x00
880
881# CHECK: s_store_dwordx4 s[4:7], tma, m0         ; encoding: [0x37,0x01,0x48,0xc0,0x7c,0x00,0x00,0x00]
8820x37,0x01,0x48,0xc0,0x7c,0x00,0x00,0x00
883
884# CHECK: s_store_dwordx4 s[4:7], ttmp[10:11], m0 ; encoding: [0x3d,0x01,0x48,0xc0,0x7c,0x00,0x00,0x00]
8850x3d,0x01,0x48,0xc0,0x7c,0x00,0x00,0x00
886
887# CHECK: s_store_dwordx4 s[4:7], s[4:5], 0x7ffff ; encoding: [0x02,0x01,0x4a,0xc0,0xff,0xff,0x07,0x00]
8880x02,0x01,0x4a,0xc0,0xff,0xff,0x07,0x00
889
890# CHECK: s_store_dwordx4 s[4:7], s[4:5], m0 glc  ; encoding: [0x02,0x01,0x49,0xc0,0x7c,0x00,0x00,0x00]
8910x02,0x01,0x49,0xc0,0x7c,0x00,0x00,0x00
892
893# CHECK: s_buffer_store_dword s1, s[8:11], m0    ; encoding: [0x44,0x00,0x60,0xc0,0x7c,0x00,0x00,0x00]
8940x44,0x00,0x60,0xc0,0x7c,0x00,0x00,0x00
895
896# CHECK: s_buffer_store_dword s101, s[8:11], m0  ; encoding: [0x44,0x19,0x60,0xc0,0x7c,0x00,0x00,0x00]
8970x44,0x19,0x60,0xc0,0x7c,0x00,0x00,0x00
898
899# CHECK: s_buffer_store_dword flat_scratch_lo, s[8:11], m0 ; encoding: [0x84,0x19,0x60,0xc0,0x7c,0x00,0x00,0x00]
9000x84,0x19,0x60,0xc0,0x7c,0x00,0x00,0x00
901
902# CHECK: s_buffer_store_dword flat_scratch_hi, s[8:11], m0 ; encoding: [0xc4,0x19,0x60,0xc0,0x7c,0x00,0x00,0x00]
9030xc4,0x19,0x60,0xc0,0x7c,0x00,0x00,0x00
904
905# CHECK: s_buffer_store_dword vcc_lo, s[8:11], m0 ; encoding: [0x84,0x1a,0x60,0xc0,0x7c,0x00,0x00,0x00]
9060x84,0x1a,0x60,0xc0,0x7c,0x00,0x00,0x00
907
908# CHECK: s_buffer_store_dword vcc_hi, s[8:11], m0 ; encoding: [0xc4,0x1a,0x60,0xc0,0x7c,0x00,0x00,0x00]
9090xc4,0x1a,0x60,0xc0,0x7c,0x00,0x00,0x00
910
911# CHECK: s_buffer_store_dword tba_lo, s[8:11], m0 ; encoding: [0x04,0x1b,0x60,0xc0,0x7c,0x00,0x00,0x00]
9120x04,0x1b,0x60,0xc0,0x7c,0x00,0x00,0x00
913
914# CHECK: s_buffer_store_dword tba_hi, s[8:11], m0 ; encoding: [0x44,0x1b,0x60,0xc0,0x7c,0x00,0x00,0x00]
9150x44,0x1b,0x60,0xc0,0x7c,0x00,0x00,0x00
916
917# CHECK: s_buffer_store_dword tma_lo, s[8:11], m0 ; encoding: [0x84,0x1b,0x60,0xc0,0x7c,0x00,0x00,0x00]
9180x84,0x1b,0x60,0xc0,0x7c,0x00,0x00,0x00
919
920# CHECK: s_buffer_store_dword tma_hi, s[8:11], m0 ; encoding: [0xc4,0x1b,0x60,0xc0,0x7c,0x00,0x00,0x00]
9210xc4,0x1b,0x60,0xc0,0x7c,0x00,0x00,0x00
922
923# CHECK: s_buffer_store_dword ttmp11, s[8:11], m0 ; encoding: [0xc4,0x1e,0x60,0xc0,0x7c,0x00,0x00,0x00]
9240xc4,0x1e,0x60,0xc0,0x7c,0x00,0x00,0x00
925
926# CHECK: s_buffer_store_dword s1, s[12:15], m0   ; encoding: [0x46,0x00,0x60,0xc0,0x7c,0x00,0x00,0x00]
9270x46,0x00,0x60,0xc0,0x7c,0x00,0x00,0x00
928
929# CHECK: s_buffer_store_dword s1, s[96:99], m0   ; encoding: [0x70,0x00,0x60,0xc0,0x7c,0x00,0x00,0x00]
9300x70,0x00,0x60,0xc0,0x7c,0x00,0x00,0x00
931
932# CHECK: s_buffer_store_dword s1, ttmp[8:11], m0 ; encoding: [0x7c,0x00,0x60,0xc0,0x7c,0x00,0x00,0x00]
9330x7c,0x00,0x60,0xc0,0x7c,0x00,0x00,0x00
934
935# CHECK: s_buffer_store_dword s1, s[8:11], 0x7ffff ; encoding: [0x44,0x00,0x62,0xc0,0xff,0xff,0x07,0x00]
9360x44,0x00,0x62,0xc0,0xff,0xff,0x07,0x00
937
938# CHECK: s_buffer_store_dword s1, s[8:11], m0 glc ; encoding: [0x44,0x00,0x61,0xc0,0x7c,0x00,0x00,0x00]
9390x44,0x00,0x61,0xc0,0x7c,0x00,0x00,0x00
940
941# CHECK: s_buffer_store_dwordx2 s[2:3], s[8:11], m0 ; encoding: [0x84,0x00,0x64,0xc0,0x7c,0x00,0x00,0x00]
9420x84,0x00,0x64,0xc0,0x7c,0x00,0x00,0x00
943
944# CHECK: s_buffer_store_dwordx2 s[4:5], s[8:11], m0 ; encoding: [0x04,0x01,0x64,0xc0,0x7c,0x00,0x00,0x00]
9450x04,0x01,0x64,0xc0,0x7c,0x00,0x00,0x00
946
947# CHECK: s_buffer_store_dwordx2 s[100:101], s[8:11], m0 ; encoding: [0x04,0x19,0x64,0xc0,0x7c,0x00,0x00,0x00]
9480x04,0x19,0x64,0xc0,0x7c,0x00,0x00,0x00
949
950# CHECK: s_buffer_store_dwordx2 flat_scratch, s[8:11], m0 ; encoding: [0x84,0x19,0x64,0xc0,0x7c,0x00,0x00,0x00]
9510x84,0x19,0x64,0xc0,0x7c,0x00,0x00,0x00
952
953# CHECK: s_buffer_store_dwordx2 vcc, s[8:11], m0 ; encoding: [0x84,0x1a,0x64,0xc0,0x7c,0x00,0x00,0x00]
9540x84,0x1a,0x64,0xc0,0x7c,0x00,0x00,0x00
955
956# CHECK: s_buffer_store_dwordx2 tba, s[8:11], m0 ; encoding: [0x04,0x1b,0x64,0xc0,0x7c,0x00,0x00,0x00]
9570x04,0x1b,0x64,0xc0,0x7c,0x00,0x00,0x00
958
959# CHECK: s_buffer_store_dwordx2 tma, s[8:11], m0 ; encoding: [0x84,0x1b,0x64,0xc0,0x7c,0x00,0x00,0x00]
9600x84,0x1b,0x64,0xc0,0x7c,0x00,0x00,0x00
961
962# CHECK: s_buffer_store_dwordx2 ttmp[10:11], s[8:11], m0 ; encoding: [0x84,0x1e,0x64,0xc0,0x7c,0x00,0x00,0x00]
9630x84,0x1e,0x64,0xc0,0x7c,0x00,0x00,0x00
964
965# CHECK: s_buffer_store_dwordx2 s[2:3], s[12:15], m0 ; encoding: [0x86,0x00,0x64,0xc0,0x7c,0x00,0x00,0x00]
9660x86,0x00,0x64,0xc0,0x7c,0x00,0x00,0x00
967
968# CHECK: s_buffer_store_dwordx2 s[2:3], s[96:99], m0 ; encoding: [0xb0,0x00,0x64,0xc0,0x7c,0x00,0x00,0x00]
9690xb0,0x00,0x64,0xc0,0x7c,0x00,0x00,0x00
970
971# CHECK: s_buffer_store_dwordx2 s[2:3], ttmp[8:11], m0 ; encoding: [0xbc,0x00,0x64,0xc0,0x7c,0x00,0x00,0x00]
9720xbc,0x00,0x64,0xc0,0x7c,0x00,0x00,0x00
973
974# CHECK: s_buffer_store_dwordx2 s[2:3], s[8:11], 0x7ffff ; encoding: [0x84,0x00,0x66,0xc0,0xff,0xff,0x07,0x00]
9750x84,0x00,0x66,0xc0,0xff,0xff,0x07,0x00
976
977# CHECK: s_buffer_store_dwordx2 s[2:3], s[8:11], m0 glc ; encoding: [0x84,0x00,0x65,0xc0,0x7c,0x00,0x00,0x00]
9780x84,0x00,0x65,0xc0,0x7c,0x00,0x00,0x00
979
980# CHECK: s_buffer_store_dwordx4 s[4:7], s[8:11], m0 ; encoding: [0x04,0x01,0x68,0xc0,0x7c,0x00,0x00,0x00]
9810x04,0x01,0x68,0xc0,0x7c,0x00,0x00,0x00
982
983# CHECK: s_buffer_store_dwordx4 s[8:11], s[8:11], m0 ; encoding: [0x04,0x02,0x68,0xc0,0x7c,0x00,0x00,0x00]
9840x04,0x02,0x68,0xc0,0x7c,0x00,0x00,0x00
985
986# CHECK: s_buffer_store_dwordx4 s[96:99], s[8:11], m0 ; encoding: [0x04,0x18,0x68,0xc0,0x7c,0x00,0x00,0x00]
9870x04,0x18,0x68,0xc0,0x7c,0x00,0x00,0x00
988
989# CHECK: s_buffer_store_dwordx4 ttmp[8:11], s[8:11], m0 ; encoding: [0x04,0x1e,0x68,0xc0,0x7c,0x00,0x00,0x00]
9900x04,0x1e,0x68,0xc0,0x7c,0x00,0x00,0x00
991
992# CHECK: s_buffer_store_dwordx4 s[4:7], s[12:15], m0 ; encoding: [0x06,0x01,0x68,0xc0,0x7c,0x00,0x00,0x00]
9930x06,0x01,0x68,0xc0,0x7c,0x00,0x00,0x00
994
995# CHECK: s_buffer_store_dwordx4 s[4:7], s[96:99], m0 ; encoding: [0x30,0x01,0x68,0xc0,0x7c,0x00,0x00,0x00]
9960x30,0x01,0x68,0xc0,0x7c,0x00,0x00,0x00
997
998# CHECK: s_buffer_store_dwordx4 s[4:7], ttmp[8:11], m0 ; encoding: [0x3c,0x01,0x68,0xc0,0x7c,0x00,0x00,0x00]
9990x3c,0x01,0x68,0xc0,0x7c,0x00,0x00,0x00
1000
1001# CHECK: s_buffer_store_dwordx4 s[4:7], s[8:11], 0x7ffff ; encoding: [0x04,0x01,0x6a,0xc0,0xff,0xff,0x07,0x00]
10020x04,0x01,0x6a,0xc0,0xff,0xff,0x07,0x00
1003
1004# CHECK: s_buffer_store_dwordx4 s[4:7], s[8:11], m0 glc ; encoding: [0x04,0x01,0x69,0xc0,0x7c,0x00,0x00,0x00]
10050x04,0x01,0x69,0xc0,0x7c,0x00,0x00,0x00
1006
1007# CHECK: s_dcache_inv                            ; encoding: [0x00,0x00,0x80,0xc0,0x00,0x00,0x00,0x00]
10080x00,0x00,0x80,0xc0,0x00,0x00,0x00,0x00
1009
1010# CHECK: s_dcache_wb                             ; encoding: [0x00,0x00,0x84,0xc0,0x00,0x00,0x00,0x00]
10110x00,0x00,0x84,0xc0,0x00,0x00,0x00,0x00
1012
1013# CHECK: s_dcache_inv_vol                        ; encoding: [0x00,0x00,0x88,0xc0,0x00,0x00,0x00,0x00]
10140x00,0x00,0x88,0xc0,0x00,0x00,0x00,0x00
1015
1016# CHECK: s_dcache_wb_vol                         ; encoding: [0x00,0x00,0x8c,0xc0,0x00,0x00,0x00,0x00]
10170x00,0x00,0x8c,0xc0,0x00,0x00,0x00,0x00
1018
1019# CHECK: s_memtime s[10:11]                      ; encoding: [0x80,0x02,0x90,0xc0,0x00,0x00,0x00,0x00]
10200x80,0x02,0x90,0xc0,0x00,0x00,0x00,0x00
1021
1022# CHECK: s_memtime s[12:13]                      ; encoding: [0x00,0x03,0x90,0xc0,0x00,0x00,0x00,0x00]
10230x00,0x03,0x90,0xc0,0x00,0x00,0x00,0x00
1024
1025# CHECK: s_memtime s[100:101]                    ; encoding: [0x00,0x19,0x90,0xc0,0x00,0x00,0x00,0x00]
10260x00,0x19,0x90,0xc0,0x00,0x00,0x00,0x00
1027
1028# CHECK: s_memtime flat_scratch                  ; encoding: [0x80,0x19,0x90,0xc0,0x00,0x00,0x00,0x00]
10290x80,0x19,0x90,0xc0,0x00,0x00,0x00,0x00
1030
1031# CHECK: s_memtime vcc                           ; encoding: [0x80,0x1a,0x90,0xc0,0x00,0x00,0x00,0x00]
10320x80,0x1a,0x90,0xc0,0x00,0x00,0x00,0x00
1033
1034# CHECK: s_memtime tba                           ; encoding: [0x00,0x1b,0x90,0xc0,0x00,0x00,0x00,0x00]
10350x00,0x1b,0x90,0xc0,0x00,0x00,0x00,0x00
1036
1037# CHECK: s_memtime tma                           ; encoding: [0x80,0x1b,0x90,0xc0,0x00,0x00,0x00,0x00]
10380x80,0x1b,0x90,0xc0,0x00,0x00,0x00,0x00
1039
1040# CHECK: s_memtime ttmp[10:11]                   ; encoding: [0x80,0x1e,0x90,0xc0,0x00,0x00,0x00,0x00]
10410x80,0x1e,0x90,0xc0,0x00,0x00,0x00,0x00
1042
1043# CHECK: s_memrealtime s[10:11]                  ; encoding: [0x80,0x02,0x94,0xc0,0x00,0x00,0x00,0x00]
10440x80,0x02,0x94,0xc0,0x00,0x00,0x00,0x00
1045
1046# CHECK: s_memrealtime s[12:13]                  ; encoding: [0x00,0x03,0x94,0xc0,0x00,0x00,0x00,0x00]
10470x00,0x03,0x94,0xc0,0x00,0x00,0x00,0x00
1048
1049# CHECK: s_memrealtime s[100:101]                ; encoding: [0x00,0x19,0x94,0xc0,0x00,0x00,0x00,0x00]
10500x00,0x19,0x94,0xc0,0x00,0x00,0x00,0x00
1051
1052# CHECK: s_memrealtime flat_scratch              ; encoding: [0x80,0x19,0x94,0xc0,0x00,0x00,0x00,0x00]
10530x80,0x19,0x94,0xc0,0x00,0x00,0x00,0x00
1054
1055# CHECK: s_memrealtime vcc                       ; encoding: [0x80,0x1a,0x94,0xc0,0x00,0x00,0x00,0x00]
10560x80,0x1a,0x94,0xc0,0x00,0x00,0x00,0x00
1057
1058# CHECK: s_memrealtime tba                       ; encoding: [0x00,0x1b,0x94,0xc0,0x00,0x00,0x00,0x00]
10590x00,0x1b,0x94,0xc0,0x00,0x00,0x00,0x00
1060
1061# CHECK: s_memrealtime tma                       ; encoding: [0x80,0x1b,0x94,0xc0,0x00,0x00,0x00,0x00]
10620x80,0x1b,0x94,0xc0,0x00,0x00,0x00,0x00
1063
1064# CHECK: s_memrealtime ttmp[10:11]               ; encoding: [0x80,0x1e,0x94,0xc0,0x00,0x00,0x00,0x00]
10650x80,0x1e,0x94,0xc0,0x00,0x00,0x00,0x00
1066
1067# CHECK: s_atc_probe 7, s[4:5], s0               ; encoding: [0xc2,0x01,0x98,0xc0,0x00,0x00,0x00,0x00]
10680xc2,0x01,0x98,0xc0,0x00,0x00,0x00,0x00
1069
1070# CHECK: s_atc_probe 0, s[4:5], 0x0              ; encoding: [0x02,0x00,0x9a,0xc0,0x00,0x00,0x00,0x00]
10710x02,0x00,0x9a,0xc0,0x00,0x00,0x00,0x00
1072
1073# CHECK: s_atc_probe_buffer 1, s[8:11], s0       ; encoding: [0x44,0x00,0x9c,0xc0,0x00,0x00,0x00,0x00]
10740x44,0x00,0x9c,0xc0,0x00,0x00,0x00,0x00
1075
1076# CHECK: s_atc_probe_buffer 0, s[8:11], s101     ; encoding: [0x04,0x00,0x9c,0xc0,0x65,0x00,0x00,0x00]
10770x04,0x00,0x9c,0xc0,0x65,0x00,0x00,0x00
1078
1079#===------------------------------------------------------------------------===#
1080# Unsigned 20-bit offsets
1081#===------------------------------------------------------------------------===#
1082
1083# CHECK: s_atc_probe 7, s[4:5], 0xfffff          ; encoding: [0xc2,0x01,0x9a,0xc0,0xff,0xff,0x0f,0x00]
10840xc2,0x01,0x9a,0xc0,0xff,0xff,0x0f,0x00
1085
1086# CHECK: s_atc_probe_buffer 1, s[8:11], 0xfffff  ; encoding: [0x44,0x00,0x9e,0xc0,0xff,0xff,0x0f,0x00]
10870x44,0x00,0x9e,0xc0,0xff,0xff,0x0f,0x00
1088
1089# CHECK: s_load_dword s1, s[2:3], 0xfffff        ; encoding: [0x41,0x00,0x02,0xc0,0xff,0xff,0x0f,0x00]
10900x41,0x00,0x02,0xc0,0xff,0xff,0x0f,0x00
1091
1092# CHECK: s_store_dword s1, s[2:3], 0xfffff       ; encoding: [0x41,0x00,0x42,0xc0,0xff,0xff,0x0f,0x00]
10930x41,0x00,0x42,0xc0,0xff,0xff,0x0f,0x00
1094
1095# CHECK: s_buffer_store_dword s10, s[92:95], 0xfffff ; encoding: [0xae,0x02,0x62,0xc0,0xff,0xff,0x0f,0x00]
10960xae,0x02,0x62,0xc0,0xff,0xff,0x0f,0x00
1097
1098#===------------------------------------------------------------------------===#
1099# Decoding of invalid (21-bit) buffer offsets
1100#===------------------------------------------------------------------------===#
1101
1102# CHECK: s_store_dword s1, s[2:3], 0xfffff       ; encoding: [0x41,0x00,0x42,0xc0,0xff,0xff,0x0f,0x00]
11030x41,0x00,0x42,0xc0,0xff,0xff,0x1f,0x00
1104
1105# CHECK: s_buffer_store_dword s10, s[92:95], 0xfffff ; encoding: [0xae,0x02,0x62,0xc0,0xff,0xff,0x0f,0x00]
11060xae,0x02,0x62,0xc0,0xff,0xff,0x1f,0x00
1107