brintos

brintos / llvm-project-archived public Read only

0
0
Text · 40.0 KiB · 9e9ba19 Raw
831 lines · plain
1# RUN: llvm-mc -triple=amdgcn -mcpu=gfx900 -disassemble -show-encoding < %s | FileCheck -strict-whitespace %s2 3# CHECK: s_load_dword s5, s[2:3], s0             ; encoding: [0x41,0x01,0x00,0xc0,0x00,0x00,0x00,0x00]40x41,0x01,0x00,0xc0,0x00,0x00,0x00,0x005 6# CHECK: s_load_dword s101, s[2:3], s0           ; encoding: [0x41,0x19,0x00,0xc0,0x00,0x00,0x00,0x00]70x41,0x19,0x00,0xc0,0x00,0x00,0x00,0x008 9# CHECK: s_load_dword flat_scratch_lo, s[2:3], s0 ; encoding: [0x81,0x19,0x00,0xc0,0x00,0x00,0x00,0x00]100x81,0x19,0x00,0xc0,0x00,0x00,0x00,0x0011 12# CHECK: s_load_dword flat_scratch_hi, s[2:3], s0 ; encoding: [0xc1,0x19,0x00,0xc0,0x00,0x00,0x00,0x00]130xc1,0x19,0x00,0xc0,0x00,0x00,0x00,0x0014 15# CHECK: s_load_dword vcc_lo, s[2:3], s0         ; encoding: [0x81,0x1a,0x00,0xc0,0x00,0x00,0x00,0x00]160x81,0x1a,0x00,0xc0,0x00,0x00,0x00,0x0017 18# CHECK: s_load_dword vcc_hi, s[2:3], s0         ; encoding: [0xc1,0x1a,0x00,0xc0,0x00,0x00,0x00,0x00]190xc1,0x1a,0x00,0xc0,0x00,0x00,0x00,0x0020 21# CHECK: s_load_dword s5, s[4:5], s0             ; encoding: [0x42,0x01,0x00,0xc0,0x00,0x00,0x00,0x00]220x42,0x01,0x00,0xc0,0x00,0x00,0x00,0x0023 24# CHECK: s_load_dword s5, s[100:101], s0         ; encoding: [0x72,0x01,0x00,0xc0,0x00,0x00,0x00,0x00]250x72,0x01,0x00,0xc0,0x00,0x00,0x00,0x0026 27# CHECK: s_load_dword s5, flat_scratch, s0       ; encoding: [0x73,0x01,0x00,0xc0,0x00,0x00,0x00,0x00]280x73,0x01,0x00,0xc0,0x00,0x00,0x00,0x0029 30# CHECK: s_load_dword s5, vcc, s0                ; encoding: [0x75,0x01,0x00,0xc0,0x00,0x00,0x00,0x00]310x75,0x01,0x00,0xc0,0x00,0x00,0x00,0x0032 33# CHECK: s_load_dword s5, s[2:3], s101           ; encoding: [0x41,0x01,0x00,0xc0,0x65,0x00,0x00,0x00]340x41,0x01,0x00,0xc0,0x65,0x00,0x00,0x0035 36# The SGRP variants can alternatively be encoded with imm=0, soffset_en=137# and the offset register encoded in the soffset field with the offset38# field being disregarded.39# CHECK: s_load_dword s5, s[2:3], s64            ; encoding: [0x41,0x41,0x00,0xc0,0x00,0x00,0x00,0x80]400x41,0x41,0x00,0xc0,0x65,0x00,0x00,0x8041 42# CHECK: s_load_dword s5, s[2:3], flat_scratch_lo ; encoding: [0x41,0x01,0x00,0xc0,0x66,0x00,0x00,0x00]430x41,0x01,0x00,0xc0,0x66,0x00,0x00,0x0044 45# CHECK: s_load_dword s5, s[2:3], flat_scratch_hi ; encoding: [0x41,0x01,0x00,0xc0,0x67,0x00,0x00,0x00]460x41,0x01,0x00,0xc0,0x67,0x00,0x00,0x0047 48# CHECK: s_load_dword s5, s[2:3], vcc_lo         ; encoding: [0x41,0x01,0x00,0xc0,0x6a,0x00,0x00,0x00]490x41,0x01,0x00,0xc0,0x6a,0x00,0x00,0x0050 51# CHECK: s_load_dword s5, s[2:3], vcc_hi         ; encoding: [0x41,0x01,0x00,0xc0,0x6b,0x00,0x00,0x00]520x41,0x01,0x00,0xc0,0x6b,0x00,0x00,0x0053 54# CHECK: s_load_dword s5, s[2:3], m0             ; encoding: [0x41,0x01,0x00,0xc0,0x7c,0x00,0x00,0x00]550x41,0x01,0x00,0xc0,0x7c,0x00,0x00,0x0056 57# CHECK: s_load_dword s5, s[2:3], 0x0            ; encoding: [0x41,0x01,0x02,0xc0,0x00,0x00,0x00,0x00]580x41,0x01,0x02,0xc0,0x00,0x00,0x00,0x0059 60# CHECK: s_load_dword s5, s[2:3], s0 offset:0x12345 ; encoding: [0x41,0x41,0x02,0xc0,0x45,0x23,0x01,0x00]610x41,0x41,0x02,0xc0,0x45,0x23,0x01,0x0062 63# SP3 prefers to decode instructions with imm=1 and soffset_en=1 to the64# form with the 'offset:' modifier, even if the offset is 0.65# CHECK: s_load_dword s5, s[2:3], s0 offset:0x0  ; encoding: [0x41,0x41,0x02,0xc0,0x00,0x00,0x00,0x00]660x41,0x41,0x02,0xc0,0x00,0x00,0x00,0x0067 68# CHECK: s_load_dword s5, s[2:3], s0 glc         ; encoding: [0x41,0x01,0x01,0xc0,0x00,0x00,0x00,0x00]690x41,0x01,0x01,0xc0,0x00,0x00,0x00,0x0070 71# CHECK: s_load_dwordx2 s[10:11], s[2:3], s0     ; encoding: [0x81,0x02,0x04,0xc0,0x00,0x00,0x00,0x00]720x81,0x02,0x04,0xc0,0x00,0x00,0x00,0x0073 74# CHECK: s_load_dwordx2 s[12:13], s[2:3], s0     ; encoding: [0x01,0x03,0x04,0xc0,0x00,0x00,0x00,0x00]750x01,0x03,0x04,0xc0,0x00,0x00,0x00,0x0076 77# CHECK: s_load_dwordx2 s[100:101], s[2:3], s0   ; encoding: [0x01,0x19,0x04,0xc0,0x00,0x00,0x00,0x00]780x01,0x19,0x04,0xc0,0x00,0x00,0x00,0x0079 80# CHECK: s_load_dwordx2 flat_scratch, s[2:3], s0 ; encoding: [0x81,0x19,0x04,0xc0,0x00,0x00,0x00,0x00]810x81,0x19,0x04,0xc0,0x00,0x00,0x00,0x0082 83# CHECK: s_load_dwordx2 vcc, s[2:3], s0          ; encoding: [0x81,0x1a,0x04,0xc0,0x00,0x00,0x00,0x00]840x81,0x1a,0x04,0xc0,0x00,0x00,0x00,0x0085 86# CHECK: s_load_dwordx2 s[10:11], s[4:5], s0     ; encoding: [0x82,0x02,0x04,0xc0,0x00,0x00,0x00,0x00]870x82,0x02,0x04,0xc0,0x00,0x00,0x00,0x0088 89# CHECK: s_load_dwordx2 s[10:11], s[100:101], s0 ; encoding: [0xb2,0x02,0x04,0xc0,0x00,0x00,0x00,0x00]900xb2,0x02,0x04,0xc0,0x00,0x00,0x00,0x0091 92# CHECK: s_load_dwordx2 s[10:11], flat_scratch, s0 ; encoding: [0xb3,0x02,0x04,0xc0,0x00,0x00,0x00,0x00]930xb3,0x02,0x04,0xc0,0x00,0x00,0x00,0x0094 95# CHECK: s_load_dwordx2 s[10:11], vcc, s0        ; encoding: [0xb5,0x02,0x04,0xc0,0x00,0x00,0x00,0x00]960xb5,0x02,0x04,0xc0,0x00,0x00,0x00,0x0097 98# CHECK: s_load_dwordx2 s[10:11], s[2:3], s101   ; encoding: [0x81,0x02,0x04,0xc0,0x65,0x00,0x00,0x00]990x81,0x02,0x04,0xc0,0x65,0x00,0x00,0x00100 101# CHECK: s_load_dwordx2 s[10:11], s[2:3], flat_scratch_lo ; encoding: [0x81,0x02,0x04,0xc0,0x66,0x00,0x00,0x00]1020x81,0x02,0x04,0xc0,0x66,0x00,0x00,0x00103 104# CHECK: s_load_dwordx2 s[10:11], s[2:3], flat_scratch_hi ; encoding: [0x81,0x02,0x04,0xc0,0x67,0x00,0x00,0x00]1050x81,0x02,0x04,0xc0,0x67,0x00,0x00,0x00106 107# CHECK: s_load_dwordx2 s[10:11], s[2:3], vcc_lo ; encoding: [0x81,0x02,0x04,0xc0,0x6a,0x00,0x00,0x00]1080x81,0x02,0x04,0xc0,0x6a,0x00,0x00,0x00109 110# CHECK: s_load_dwordx2 s[10:11], s[2:3], vcc_hi ; encoding: [0x81,0x02,0x04,0xc0,0x6b,0x00,0x00,0x00]1110x81,0x02,0x04,0xc0,0x6b,0x00,0x00,0x00112 113# CHECK: s_load_dwordx2 s[10:11], s[2:3], m0     ; encoding: [0x81,0x02,0x04,0xc0,0x7c,0x00,0x00,0x00]1140x81,0x02,0x04,0xc0,0x7c,0x00,0x00,0x00115 116# CHECK: s_load_dwordx2 s[10:11], s[2:3], 0x0    ; encoding: [0x81,0x02,0x06,0xc0,0x00,0x00,0x00,0x00]1170x81,0x02,0x06,0xc0,0x00,0x00,0x00,0x00118 119# CHECK: s_load_dwordx2 s[10:11], s[2:3], s0 offset:0x12345 ; encoding: [0x81,0x42,0x06,0xc0,0x45,0x23,0x01,0x00]1200x81,0x42,0x06,0xc0,0x45,0x23,0x01,0x00121 122# CHECK: s_load_dwordx2 s[10:11], s[2:3], s0 glc ; encoding: [0x81,0x02,0x05,0xc0,0x00,0x00,0x00,0x00]1230x81,0x02,0x05,0xc0,0x00,0x00,0x00,0x00124 125# CHECK: s_load_dwordx4 s[20:23], s[2:3], s0     ; encoding: [0x01,0x05,0x08,0xc0,0x00,0x00,0x00,0x00]1260x01,0x05,0x08,0xc0,0x00,0x00,0x00,0x00127 128# CHECK: s_load_dwordx4 s[24:27], s[2:3], s0     ; encoding: [0x01,0x06,0x08,0xc0,0x00,0x00,0x00,0x00]1290x01,0x06,0x08,0xc0,0x00,0x00,0x00,0x00130 131# CHECK: s_load_dwordx4 s[96:99], s[2:3], s0     ; encoding: [0x01,0x18,0x08,0xc0,0x00,0x00,0x00,0x00]1320x01,0x18,0x08,0xc0,0x00,0x00,0x00,0x00133 134# CHECK: s_load_dwordx4 s[20:23], s[4:5], s0     ; encoding: [0x02,0x05,0x08,0xc0,0x00,0x00,0x00,0x00]1350x02,0x05,0x08,0xc0,0x00,0x00,0x00,0x00136 137# CHECK: s_load_dwordx4 s[20:23], s[100:101], s0 ; encoding: [0x32,0x05,0x08,0xc0,0x00,0x00,0x00,0x00]1380x32,0x05,0x08,0xc0,0x00,0x00,0x00,0x00139 140# CHECK: s_load_dwordx4 s[20:23], flat_scratch, s0 ; encoding: [0x33,0x05,0x08,0xc0,0x00,0x00,0x00,0x00]1410x33,0x05,0x08,0xc0,0x00,0x00,0x00,0x00142 143# CHECK: s_load_dwordx4 s[20:23], vcc, s0        ; encoding: [0x35,0x05,0x08,0xc0,0x00,0x00,0x00,0x00]1440x35,0x05,0x08,0xc0,0x00,0x00,0x00,0x00145 146# CHECK: s_load_dwordx4 s[20:23], s[2:3], s101   ; encoding: [0x01,0x05,0x08,0xc0,0x65,0x00,0x00,0x00]1470x01,0x05,0x08,0xc0,0x65,0x00,0x00,0x00148 149# CHECK: s_load_dwordx4 s[20:23], s[2:3], flat_scratch_lo ; encoding: [0x01,0x05,0x08,0xc0,0x66,0x00,0x00,0x00]1500x01,0x05,0x08,0xc0,0x66,0x00,0x00,0x00151 152# CHECK: s_load_dwordx4 s[20:23], s[2:3], flat_scratch_hi ; encoding: [0x01,0x05,0x08,0xc0,0x67,0x00,0x00,0x00]1530x01,0x05,0x08,0xc0,0x67,0x00,0x00,0x00154 155# CHECK: s_load_dwordx4 s[20:23], s[2:3], vcc_lo ; encoding: [0x01,0x05,0x08,0xc0,0x6a,0x00,0x00,0x00]1560x01,0x05,0x08,0xc0,0x6a,0x00,0x00,0x00157 158# CHECK: s_load_dwordx4 s[20:23], s[2:3], vcc_hi ; encoding: [0x01,0x05,0x08,0xc0,0x6b,0x00,0x00,0x00]1590x01,0x05,0x08,0xc0,0x6b,0x00,0x00,0x00160 161# CHECK: s_load_dwordx4 s[20:23], s[2:3], m0     ; encoding: [0x01,0x05,0x08,0xc0,0x7c,0x00,0x00,0x00]1620x01,0x05,0x08,0xc0,0x7c,0x00,0x00,0x00163 164# CHECK: s_load_dwordx4 s[20:23], s[2:3], 0x0    ; encoding: [0x01,0x05,0x0a,0xc0,0x00,0x00,0x00,0x00]1650x01,0x05,0x0a,0xc0,0x00,0x00,0x00,0x00166 167# CHECK: s_load_dwordx4 s[20:23], s[2:3], s0 offset:0x12345 ; encoding: [0x01,0x45,0x0a,0xc0,0x45,0x23,0x01,0x00]1680x01,0x45,0x0a,0xc0,0x45,0x23,0x01,0x00169 170# CHECK: s_load_dwordx4 s[20:23], s[2:3], s0 glc ; encoding: [0x01,0x05,0x09,0xc0,0x00,0x00,0x00,0x00]1710x01,0x05,0x09,0xc0,0x00,0x00,0x00,0x00172 173# CHECK: s_load_dwordx8 s[20:27], s[2:3], s0     ; encoding: [0x01,0x05,0x0c,0xc0,0x00,0x00,0x00,0x00]1740x01,0x05,0x0c,0xc0,0x00,0x00,0x00,0x00175 176# CHECK: s_load_dwordx8 s[24:31], s[2:3], s0     ; encoding: [0x01,0x06,0x0c,0xc0,0x00,0x00,0x00,0x00]1770x01,0x06,0x0c,0xc0,0x00,0x00,0x00,0x00178 179# CHECK: s_load_dwordx8 s[92:99], s[2:3], s0     ; encoding: [0x01,0x17,0x0c,0xc0,0x00,0x00,0x00,0x00]1800x01,0x17,0x0c,0xc0,0x00,0x00,0x00,0x00181 182# CHECK: s_load_dwordx8 s[20:27], s[4:5], s0     ; encoding: [0x02,0x05,0x0c,0xc0,0x00,0x00,0x00,0x00]1830x02,0x05,0x0c,0xc0,0x00,0x00,0x00,0x00184 185# CHECK: s_load_dwordx8 s[20:27], s[100:101], s0 ; encoding: [0x32,0x05,0x0c,0xc0,0x00,0x00,0x00,0x00]1860x32,0x05,0x0c,0xc0,0x00,0x00,0x00,0x00187 188# CHECK: s_load_dwordx8 s[20:27], flat_scratch, s0 ; encoding: [0x33,0x05,0x0c,0xc0,0x00,0x00,0x00,0x00]1890x33,0x05,0x0c,0xc0,0x00,0x00,0x00,0x00190 191# CHECK: s_load_dwordx8 s[20:27], vcc, s0        ; encoding: [0x35,0x05,0x0c,0xc0,0x00,0x00,0x00,0x00]1920x35,0x05,0x0c,0xc0,0x00,0x00,0x00,0x00193 194# CHECK: s_load_dwordx8 s[20:27], s[2:3], s101   ; encoding: [0x01,0x05,0x0c,0xc0,0x65,0x00,0x00,0x00]1950x01,0x05,0x0c,0xc0,0x65,0x00,0x00,0x00196 197# CHECK: s_load_dwordx8 s[20:27], s[2:3], flat_scratch_lo ; encoding: [0x01,0x05,0x0c,0xc0,0x66,0x00,0x00,0x00]1980x01,0x05,0x0c,0xc0,0x66,0x00,0x00,0x00199 200# CHECK: s_load_dwordx8 s[20:27], s[2:3], flat_scratch_hi ; encoding: [0x01,0x05,0x0c,0xc0,0x67,0x00,0x00,0x00]2010x01,0x05,0x0c,0xc0,0x67,0x00,0x00,0x00202 203# CHECK: s_load_dwordx8 s[20:27], s[2:3], vcc_lo ; encoding: [0x01,0x05,0x0c,0xc0,0x6a,0x00,0x00,0x00]2040x01,0x05,0x0c,0xc0,0x6a,0x00,0x00,0x00205 206# CHECK: s_load_dwordx8 s[20:27], s[2:3], vcc_hi ; encoding: [0x01,0x05,0x0c,0xc0,0x6b,0x00,0x00,0x00]2070x01,0x05,0x0c,0xc0,0x6b,0x00,0x00,0x00208 209# CHECK: s_load_dwordx8 s[20:27], s[2:3], m0     ; encoding: [0x01,0x05,0x0c,0xc0,0x7c,0x00,0x00,0x00]2100x01,0x05,0x0c,0xc0,0x7c,0x00,0x00,0x00211 212# CHECK: s_load_dwordx8 s[20:27], s[2:3], 0x0    ; encoding: [0x01,0x05,0x0e,0xc0,0x00,0x00,0x00,0x00]2130x01,0x05,0x0e,0xc0,0x00,0x00,0x00,0x00214 215# CHECK: s_load_dwordx8 s[20:27], s[2:3], s0 offset:0x12345 ; encoding: [0x01,0x45,0x0e,0xc0,0x45,0x23,0x01,0x00]2160x01,0x45,0x0e,0xc0,0x45,0x23,0x01,0x00217 218# CHECK: s_load_dwordx8 s[20:27], s[2:3], s0 glc ; encoding: [0x01,0x05,0x0d,0xc0,0x00,0x00,0x00,0x00]2190x01,0x05,0x0d,0xc0,0x00,0x00,0x00,0x00220 221# CHECK: s_load_dwordx16 s[20:35], s[2:3], s0    ; encoding: [0x01,0x05,0x10,0xc0,0x00,0x00,0x00,0x00]2220x01,0x05,0x10,0xc0,0x00,0x00,0x00,0x00223 224# CHECK: s_load_dwordx16 s[24:39], s[2:3], s0    ; encoding: [0x01,0x06,0x10,0xc0,0x00,0x00,0x00,0x00]2250x01,0x06,0x10,0xc0,0x00,0x00,0x00,0x00226 227# CHECK: s_load_dwordx16 s[84:99], s[2:3], s0    ; encoding: [0x01,0x15,0x10,0xc0,0x00,0x00,0x00,0x00]2280x01,0x15,0x10,0xc0,0x00,0x00,0x00,0x00229 230# CHECK: s_load_dwordx16 s[20:35], s[4:5], s0    ; encoding: [0x02,0x05,0x10,0xc0,0x00,0x00,0x00,0x00]2310x02,0x05,0x10,0xc0,0x00,0x00,0x00,0x00232 233# CHECK: s_load_dwordx16 s[20:35], s[100:101], s0 ; encoding: [0x32,0x05,0x10,0xc0,0x00,0x00,0x00,0x00]2340x32,0x05,0x10,0xc0,0x00,0x00,0x00,0x00235 236# CHECK: s_load_dwordx16 s[20:35], flat_scratch, s0 ; encoding: [0x33,0x05,0x10,0xc0,0x00,0x00,0x00,0x00]2370x33,0x05,0x10,0xc0,0x00,0x00,0x00,0x00238 239# CHECK: s_load_dwordx16 s[20:35], vcc, s0       ; encoding: [0x35,0x05,0x10,0xc0,0x00,0x00,0x00,0x00]2400x35,0x05,0x10,0xc0,0x00,0x00,0x00,0x00241 242# CHECK: s_load_dwordx16 s[20:35], s[2:3], s101  ; encoding: [0x01,0x05,0x10,0xc0,0x65,0x00,0x00,0x00]2430x01,0x05,0x10,0xc0,0x65,0x00,0x00,0x00244 245# CHECK: s_load_dwordx16 s[20:35], s[2:3], flat_scratch_lo ; encoding: [0x01,0x05,0x10,0xc0,0x66,0x00,0x00,0x00]2460x01,0x05,0x10,0xc0,0x66,0x00,0x00,0x00247 248# CHECK: s_load_dwordx16 s[20:35], s[2:3], flat_scratch_hi ; encoding: [0x01,0x05,0x10,0xc0,0x67,0x00,0x00,0x00]2490x01,0x05,0x10,0xc0,0x67,0x00,0x00,0x00250 251# CHECK: s_load_dwordx16 s[20:35], s[2:3], vcc_lo ; encoding: [0x01,0x05,0x10,0xc0,0x6a,0x00,0x00,0x00]2520x01,0x05,0x10,0xc0,0x6a,0x00,0x00,0x00253 254# CHECK: s_load_dwordx16 s[20:35], s[2:3], vcc_hi ; encoding: [0x01,0x05,0x10,0xc0,0x6b,0x00,0x00,0x00]2550x01,0x05,0x10,0xc0,0x6b,0x00,0x00,0x00256 257# CHECK: s_load_dwordx16 s[20:35], s[2:3], m0    ; encoding: [0x01,0x05,0x10,0xc0,0x7c,0x00,0x00,0x00]2580x01,0x05,0x10,0xc0,0x7c,0x00,0x00,0x00259 260# CHECK: s_load_dwordx16 s[20:35], s[2:3], 0x0   ; encoding: [0x01,0x05,0x12,0xc0,0x00,0x00,0x00,0x00]2610x01,0x05,0x12,0xc0,0x00,0x00,0x00,0x00262 263# CHECK: s_load_dwordx16 s[20:35], s[2:3], s0 offset:0x12345 ; encoding: [0x01,0x45,0x12,0xc0,0x45,0x23,0x01,0x00]2640x01,0x45,0x12,0xc0,0x45,0x23,0x01,0x00265 266# CHECK: s_load_dwordx16 s[20:35], s[2:3], s0 glc ; encoding: [0x01,0x05,0x11,0xc0,0x00,0x00,0x00,0x00]2670x01,0x05,0x11,0xc0,0x00,0x00,0x00,0x00268 269# CHECK: s_buffer_load_dword s5, s[4:7], s0      ; encoding: [0x42,0x01,0x20,0xc0,0x00,0x00,0x00,0x00]2700x42,0x01,0x20,0xc0,0x00,0x00,0x00,0x00271 272# CHECK: s_buffer_load_dword s101, s[4:7], s0    ; encoding: [0x42,0x19,0x20,0xc0,0x00,0x00,0x00,0x00]2730x42,0x19,0x20,0xc0,0x00,0x00,0x00,0x00274 275# CHECK: s_buffer_load_dword flat_scratch_lo, s[4:7], s0 ; encoding: [0x82,0x19,0x20,0xc0,0x00,0x00,0x00,0x00]2760x82,0x19,0x20,0xc0,0x00,0x00,0x00,0x00277 278# CHECK: s_buffer_load_dword flat_scratch_hi, s[4:7], s0 ; encoding: [0xc2,0x19,0x20,0xc0,0x00,0x00,0x00,0x00]2790xc2,0x19,0x20,0xc0,0x00,0x00,0x00,0x00280 281# CHECK: s_buffer_load_dword vcc_lo, s[4:7], s0  ; encoding: [0x82,0x1a,0x20,0xc0,0x00,0x00,0x00,0x00]2820x82,0x1a,0x20,0xc0,0x00,0x00,0x00,0x00283 284# CHECK: s_buffer_load_dword vcc_hi, s[4:7], s0  ; encoding: [0xc2,0x1a,0x20,0xc0,0x00,0x00,0x00,0x00]2850xc2,0x1a,0x20,0xc0,0x00,0x00,0x00,0x00286 287# CHECK: s_buffer_load_dword s5, s[8:11], s0     ; encoding: [0x44,0x01,0x20,0xc0,0x00,0x00,0x00,0x00]2880x44,0x01,0x20,0xc0,0x00,0x00,0x00,0x00289 290# CHECK: s_buffer_load_dword s5, s[96:99], s0    ; encoding: [0x70,0x01,0x20,0xc0,0x00,0x00,0x00,0x00]2910x70,0x01,0x20,0xc0,0x00,0x00,0x00,0x00292 293# CHECK: s_buffer_load_dword s5, s[4:7], s101    ; encoding: [0x42,0x01,0x20,0xc0,0x65,0x00,0x00,0x00]2940x42,0x01,0x20,0xc0,0x65,0x00,0x00,0x00295 296# CHECK: s_buffer_load_dword s5, s[4:7], flat_scratch_lo ; encoding: [0x42,0x01,0x20,0xc0,0x66,0x00,0x00,0x00]2970x42,0x01,0x20,0xc0,0x66,0x00,0x00,0x00298 299# CHECK: s_buffer_load_dword s5, s[4:7], flat_scratch_hi ; encoding: [0x42,0x01,0x20,0xc0,0x67,0x00,0x00,0x00]3000x42,0x01,0x20,0xc0,0x67,0x00,0x00,0x00301 302# CHECK: s_buffer_load_dword s5, s[4:7], vcc_lo  ; encoding: [0x42,0x01,0x20,0xc0,0x6a,0x00,0x00,0x00]3030x42,0x01,0x20,0xc0,0x6a,0x00,0x00,0x00304 305# CHECK: s_buffer_load_dword s5, s[4:7], vcc_hi  ; encoding: [0x42,0x01,0x20,0xc0,0x6b,0x00,0x00,0x00]3060x42,0x01,0x20,0xc0,0x6b,0x00,0x00,0x00307 308# CHECK: s_buffer_load_dword s5, s[4:7], m0      ; encoding: [0x42,0x01,0x20,0xc0,0x7c,0x00,0x00,0x00]3090x42,0x01,0x20,0xc0,0x7c,0x00,0x00,0x00310 311# CHECK: s_buffer_load_dword s5, s[4:7], 0x0     ; encoding: [0x42,0x01,0x22,0xc0,0x00,0x00,0x00,0x00]3120x42,0x01,0x22,0xc0,0x00,0x00,0x00,0x00313 314# CHECK: s_buffer_load_dword s5, s[4:7], s0 offset:0x12345 ; encoding: [0x42,0x41,0x22,0xc0,0x45,0x23,0x01,0x00]3150x42,0x41,0x22,0xc0,0x45,0x23,0x01,0x00316 317# CHECK: s_buffer_load_dword s5, s[4:7], s0 glc  ; encoding: [0x42,0x01,0x21,0xc0,0x00,0x00,0x00,0x00]3180x42,0x01,0x21,0xc0,0x00,0x00,0x00,0x00319 320# CHECK: s_buffer_load_dwordx2 s[10:11], s[4:7], s0 ; encoding: [0x82,0x02,0x24,0xc0,0x00,0x00,0x00,0x00]3210x82,0x02,0x24,0xc0,0x00,0x00,0x00,0x00322 323# CHECK: s_buffer_load_dwordx2 s[12:13], s[4:7], s0 ; encoding: [0x02,0x03,0x24,0xc0,0x00,0x00,0x00,0x00]3240x02,0x03,0x24,0xc0,0x00,0x00,0x00,0x00325 326# CHECK: s_buffer_load_dwordx2 s[100:101], s[4:7], s0 ; encoding: [0x02,0x19,0x24,0xc0,0x00,0x00,0x00,0x00]3270x02,0x19,0x24,0xc0,0x00,0x00,0x00,0x00328 329# CHECK: s_buffer_load_dwordx2 flat_scratch, s[4:7], s0 ; encoding: [0x82,0x19,0x24,0xc0,0x00,0x00,0x00,0x00]3300x82,0x19,0x24,0xc0,0x00,0x00,0x00,0x00331 332# CHECK: s_buffer_load_dwordx2 vcc, s[4:7], s0   ; encoding: [0x82,0x1a,0x24,0xc0,0x00,0x00,0x00,0x00]3330x82,0x1a,0x24,0xc0,0x00,0x00,0x00,0x00334 335# CHECK: s_buffer_load_dwordx2 s[10:11], s[8:11], s0 ; encoding: [0x84,0x02,0x24,0xc0,0x00,0x00,0x00,0x00]3360x84,0x02,0x24,0xc0,0x00,0x00,0x00,0x00337 338# CHECK: s_buffer_load_dwordx2 s[10:11], s[96:99], s0 ; encoding: [0xb0,0x02,0x24,0xc0,0x00,0x00,0x00,0x00]3390xb0,0x02,0x24,0xc0,0x00,0x00,0x00,0x00340 341# CHECK: s_buffer_load_dwordx2 s[10:11], s[4:7], s101 ; encoding: [0x82,0x02,0x24,0xc0,0x65,0x00,0x00,0x00]3420x82,0x02,0x24,0xc0,0x65,0x00,0x00,0x00343 344# CHECK: s_buffer_load_dwordx2 s[10:11], s[4:7], flat_scratch_lo ; encoding: [0x82,0x02,0x24,0xc0,0x66,0x00,0x00,0x00]3450x82,0x02,0x24,0xc0,0x66,0x00,0x00,0x00346 347# CHECK: s_buffer_load_dwordx2 s[10:11], s[4:7], flat_scratch_hi ; encoding: [0x82,0x02,0x24,0xc0,0x67,0x00,0x00,0x00]3480x82,0x02,0x24,0xc0,0x67,0x00,0x00,0x00349 350# CHECK: s_buffer_load_dwordx2 s[10:11], s[4:7], vcc_lo ; encoding: [0x82,0x02,0x24,0xc0,0x6a,0x00,0x00,0x00]3510x82,0x02,0x24,0xc0,0x6a,0x00,0x00,0x00352 353# CHECK: s_buffer_load_dwordx2 s[10:11], s[4:7], vcc_hi ; encoding: [0x82,0x02,0x24,0xc0,0x6b,0x00,0x00,0x00]3540x82,0x02,0x24,0xc0,0x6b,0x00,0x00,0x00355 356# CHECK: s_buffer_load_dwordx2 s[10:11], s[4:7], m0 ; encoding: [0x82,0x02,0x24,0xc0,0x7c,0x00,0x00,0x00]3570x82,0x02,0x24,0xc0,0x7c,0x00,0x00,0x00358 359# CHECK: s_buffer_load_dwordx2 s[10:11], s[4:7], 0x0 ; encoding: [0x82,0x02,0x26,0xc0,0x00,0x00,0x00,0x00]3600x82,0x02,0x26,0xc0,0x00,0x00,0x00,0x00361 362# CHECK: s_buffer_load_dwordx2 s[10:11], s[4:7], s0 offset:0x12345 ; encoding: [0x82,0x42,0x26,0xc0,0x45,0x23,0x01,0x00]3630x82,0x42,0x26,0xc0,0x45,0x23,0x01,0x00364 365# CHECK: s_buffer_load_dwordx2 s[10:11], s[4:7], s0 glc ; encoding: [0x82,0x02,0x25,0xc0,0x00,0x00,0x00,0x00]3660x82,0x02,0x25,0xc0,0x00,0x00,0x00,0x00367 368# CHECK: s_buffer_load_dwordx4 s[20:23], s[4:7], s0 ; encoding: [0x02,0x05,0x28,0xc0,0x00,0x00,0x00,0x00]3690x02,0x05,0x28,0xc0,0x00,0x00,0x00,0x00370 371# CHECK: s_buffer_load_dwordx4 s[24:27], s[4:7], s0 ; encoding: [0x02,0x06,0x28,0xc0,0x00,0x00,0x00,0x00]3720x02,0x06,0x28,0xc0,0x00,0x00,0x00,0x00373 374# CHECK: s_buffer_load_dwordx4 s[96:99], s[4:7], s0 ; encoding: [0x02,0x18,0x28,0xc0,0x00,0x00,0x00,0x00]3750x02,0x18,0x28,0xc0,0x00,0x00,0x00,0x00376 377# CHECK: s_buffer_load_dwordx4 s[20:23], s[8:11], s0 ; encoding: [0x04,0x05,0x28,0xc0,0x00,0x00,0x00,0x00]3780x04,0x05,0x28,0xc0,0x00,0x00,0x00,0x00379 380# CHECK: s_buffer_load_dwordx4 s[20:23], s[96:99], s0 ; encoding: [0x30,0x05,0x28,0xc0,0x00,0x00,0x00,0x00]3810x30,0x05,0x28,0xc0,0x00,0x00,0x00,0x00382 383# CHECK: s_buffer_load_dwordx4 s[20:23], s[4:7], s101 ; encoding: [0x02,0x05,0x28,0xc0,0x65,0x00,0x00,0x00]3840x02,0x05,0x28,0xc0,0x65,0x00,0x00,0x00385 386# CHECK: s_buffer_load_dwordx4 s[20:23], s[4:7], flat_scratch_lo ; encoding: [0x02,0x05,0x28,0xc0,0x66,0x00,0x00,0x00]3870x02,0x05,0x28,0xc0,0x66,0x00,0x00,0x00388 389# CHECK: s_buffer_load_dwordx4 s[20:23], s[4:7], flat_scratch_hi ; encoding: [0x02,0x05,0x28,0xc0,0x67,0x00,0x00,0x00]3900x02,0x05,0x28,0xc0,0x67,0x00,0x00,0x00391 392# CHECK: s_buffer_load_dwordx4 s[20:23], s[4:7], vcc_lo ; encoding: [0x02,0x05,0x28,0xc0,0x6a,0x00,0x00,0x00]3930x02,0x05,0x28,0xc0,0x6a,0x00,0x00,0x00394 395# CHECK: s_buffer_load_dwordx4 s[20:23], s[4:7], vcc_hi ; encoding: [0x02,0x05,0x28,0xc0,0x6b,0x00,0x00,0x00]3960x02,0x05,0x28,0xc0,0x6b,0x00,0x00,0x00397 398# CHECK: s_buffer_load_dwordx4 s[20:23], s[4:7], m0 ; encoding: [0x02,0x05,0x28,0xc0,0x7c,0x00,0x00,0x00]3990x02,0x05,0x28,0xc0,0x7c,0x00,0x00,0x00400 401# CHECK: s_buffer_load_dwordx4 s[20:23], s[4:7], 0x0 ; encoding: [0x02,0x05,0x2a,0xc0,0x00,0x00,0x00,0x00]4020x02,0x05,0x2a,0xc0,0x00,0x00,0x00,0x00403 404# CHECK: s_buffer_load_dwordx4 s[20:23], s[4:7], s0 offset:0x12345 ; encoding: [0x02,0x45,0x2a,0xc0,0x45,0x23,0x01,0x00]4050x02,0x45,0x2a,0xc0,0x45,0x23,0x01,0x00406 407# CHECK: s_buffer_load_dwordx4 s[20:23], s[4:7], s0 glc ; encoding: [0x02,0x05,0x29,0xc0,0x00,0x00,0x00,0x00]4080x02,0x05,0x29,0xc0,0x00,0x00,0x00,0x00409 410# CHECK: s_buffer_load_dwordx8 s[20:27], s[4:7], s0 ; encoding: [0x02,0x05,0x2c,0xc0,0x00,0x00,0x00,0x00]4110x02,0x05,0x2c,0xc0,0x00,0x00,0x00,0x00412 413# CHECK: s_buffer_load_dwordx8 s[24:31], s[4:7], s0 ; encoding: [0x02,0x06,0x2c,0xc0,0x00,0x00,0x00,0x00]4140x02,0x06,0x2c,0xc0,0x00,0x00,0x00,0x00415 416# CHECK: s_buffer_load_dwordx8 s[92:99], s[4:7], s0 ; encoding: [0x02,0x17,0x2c,0xc0,0x00,0x00,0x00,0x00]4170x02,0x17,0x2c,0xc0,0x00,0x00,0x00,0x00418 419# CHECK: s_buffer_load_dwordx8 s[20:27], s[8:11], s0 ; encoding: [0x04,0x05,0x2c,0xc0,0x00,0x00,0x00,0x00]4200x04,0x05,0x2c,0xc0,0x00,0x00,0x00,0x00421 422# CHECK: s_buffer_load_dwordx8 s[20:27], s[96:99], s0 ; encoding: [0x30,0x05,0x2c,0xc0,0x00,0x00,0x00,0x00]4230x30,0x05,0x2c,0xc0,0x00,0x00,0x00,0x00424 425# CHECK: s_buffer_load_dwordx8 s[20:27], s[4:7], s101 ; encoding: [0x02,0x05,0x2c,0xc0,0x65,0x00,0x00,0x00]4260x02,0x05,0x2c,0xc0,0x65,0x00,0x00,0x00427 428# CHECK: s_buffer_load_dwordx8 s[20:27], s[4:7], flat_scratch_lo ; encoding: [0x02,0x05,0x2c,0xc0,0x66,0x00,0x00,0x00]4290x02,0x05,0x2c,0xc0,0x66,0x00,0x00,0x00430 431# CHECK: s_buffer_load_dwordx8 s[20:27], s[4:7], flat_scratch_hi ; encoding: [0x02,0x05,0x2c,0xc0,0x67,0x00,0x00,0x00]4320x02,0x05,0x2c,0xc0,0x67,0x00,0x00,0x00433 434# CHECK: s_buffer_load_dwordx8 s[20:27], s[4:7], vcc_lo ; encoding: [0x02,0x05,0x2c,0xc0,0x6a,0x00,0x00,0x00]4350x02,0x05,0x2c,0xc0,0x6a,0x00,0x00,0x00436 437# CHECK: s_buffer_load_dwordx8 s[20:27], s[4:7], vcc_hi ; encoding: [0x02,0x05,0x2c,0xc0,0x6b,0x00,0x00,0x00]4380x02,0x05,0x2c,0xc0,0x6b,0x00,0x00,0x00439 440# CHECK: s_buffer_load_dwordx8 s[20:27], s[4:7], m0 ; encoding: [0x02,0x05,0x2c,0xc0,0x7c,0x00,0x00,0x00]4410x02,0x05,0x2c,0xc0,0x7c,0x00,0x00,0x00442 443# CHECK: s_buffer_load_dwordx8 s[20:27], s[4:7], 0x0 ; encoding: [0x02,0x05,0x2e,0xc0,0x00,0x00,0x00,0x00]4440x02,0x05,0x2e,0xc0,0x00,0x00,0x00,0x00445 446# CHECK: s_buffer_load_dwordx8 s[20:27], s[4:7], s0 offset:0x12345 ; encoding: [0x02,0x45,0x2e,0xc0,0x45,0x23,0x01,0x00]4470x02,0x45,0x2e,0xc0,0x45,0x23,0x01,0x00448 449# CHECK: s_buffer_load_dwordx8 s[20:27], s[4:7], s0 glc ; encoding: [0x02,0x05,0x2d,0xc0,0x00,0x00,0x00,0x00]4500x02,0x05,0x2d,0xc0,0x00,0x00,0x00,0x00451 452# CHECK: s_buffer_load_dwordx16 s[20:35], s[4:7], s0 ; encoding: [0x02,0x05,0x30,0xc0,0x00,0x00,0x00,0x00]4530x02,0x05,0x30,0xc0,0x00,0x00,0x00,0x00454 455# CHECK: s_buffer_load_dwordx16 s[24:39], s[4:7], s0 ; encoding: [0x02,0x06,0x30,0xc0,0x00,0x00,0x00,0x00]4560x02,0x06,0x30,0xc0,0x00,0x00,0x00,0x00457 458# CHECK: s_buffer_load_dwordx16 s[84:99], s[4:7], s0 ; encoding: [0x02,0x15,0x30,0xc0,0x00,0x00,0x00,0x00]4590x02,0x15,0x30,0xc0,0x00,0x00,0x00,0x00460 461# CHECK: s_buffer_load_dwordx16 s[20:35], s[8:11], s0 ; encoding: [0x04,0x05,0x30,0xc0,0x00,0x00,0x00,0x00]4620x04,0x05,0x30,0xc0,0x00,0x00,0x00,0x00463 464# CHECK: s_buffer_load_dwordx16 s[20:35], s[96:99], s0 ; encoding: [0x30,0x05,0x30,0xc0,0x00,0x00,0x00,0x00]4650x30,0x05,0x30,0xc0,0x00,0x00,0x00,0x00466 467# CHECK: s_buffer_load_dwordx16 s[20:35], s[4:7], s101 ; encoding: [0x02,0x05,0x30,0xc0,0x65,0x00,0x00,0x00]4680x02,0x05,0x30,0xc0,0x65,0x00,0x00,0x00469 470# CHECK: s_buffer_load_dwordx16 s[20:35], s[4:7], flat_scratch_lo ; encoding: [0x02,0x05,0x30,0xc0,0x66,0x00,0x00,0x00]4710x02,0x05,0x30,0xc0,0x66,0x00,0x00,0x00472 473# CHECK: s_buffer_load_dwordx16 s[20:35], s[4:7], flat_scratch_hi ; encoding: [0x02,0x05,0x30,0xc0,0x67,0x00,0x00,0x00]4740x02,0x05,0x30,0xc0,0x67,0x00,0x00,0x00475 476# CHECK: s_buffer_load_dwordx16 s[20:35], s[4:7], vcc_lo ; encoding: [0x02,0x05,0x30,0xc0,0x6a,0x00,0x00,0x00]4770x02,0x05,0x30,0xc0,0x6a,0x00,0x00,0x00478 479# CHECK: s_buffer_load_dwordx16 s[20:35], s[4:7], vcc_hi ; encoding: [0x02,0x05,0x30,0xc0,0x6b,0x00,0x00,0x00]4800x02,0x05,0x30,0xc0,0x6b,0x00,0x00,0x00481 482# CHECK: s_buffer_load_dwordx16 s[20:35], s[4:7], m0 ; encoding: [0x02,0x05,0x30,0xc0,0x7c,0x00,0x00,0x00]4830x02,0x05,0x30,0xc0,0x7c,0x00,0x00,0x00484 485# CHECK: s_buffer_load_dwordx16 s[20:35], s[4:7], 0x0 ; encoding: [0x02,0x05,0x32,0xc0,0x00,0x00,0x00,0x00]4860x02,0x05,0x32,0xc0,0x00,0x00,0x00,0x00487 488# CHECK: s_buffer_load_dwordx16 s[20:35], s[4:7], s0 offset:0x12345 ; encoding: [0x02,0x45,0x32,0xc0,0x45,0x23,0x01,0x00]4890x02,0x45,0x32,0xc0,0x45,0x23,0x01,0x00490 491# CHECK: s_buffer_load_dwordx16 s[20:35], s[4:7], s0 glc ; encoding: [0x02,0x05,0x31,0xc0,0x00,0x00,0x00,0x00]4920x02,0x05,0x31,0xc0,0x00,0x00,0x00,0x00493 494# CHECK: s_store_dword s1, s[4:5], s0            ; encoding: [0x42,0x00,0x40,0xc0,0x00,0x00,0x00,0x00]4950x42,0x00,0x40,0xc0,0x00,0x00,0x00,0x00496 497# CHECK: s_store_dword s101, s[4:5], s0          ; encoding: [0x42,0x19,0x40,0xc0,0x00,0x00,0x00,0x00]4980x42,0x19,0x40,0xc0,0x00,0x00,0x00,0x00499 500# CHECK: s_store_dword flat_scratch_lo, s[4:5], s0 ; encoding: [0x82,0x19,0x40,0xc0,0x00,0x00,0x00,0x00]5010x82,0x19,0x40,0xc0,0x00,0x00,0x00,0x00502 503# CHECK: s_store_dword flat_scratch_hi, s[4:5], s0 ; encoding: [0xc2,0x19,0x40,0xc0,0x00,0x00,0x00,0x00]5040xc2,0x19,0x40,0xc0,0x00,0x00,0x00,0x00505 506# CHECK: s_store_dword vcc_lo, s[4:5], s0        ; encoding: [0x82,0x1a,0x40,0xc0,0x00,0x00,0x00,0x00]5070x82,0x1a,0x40,0xc0,0x00,0x00,0x00,0x00508 509# CHECK: s_store_dword vcc_hi, s[4:5], s0        ; encoding: [0xc2,0x1a,0x40,0xc0,0x00,0x00,0x00,0x00]5100xc2,0x1a,0x40,0xc0,0x00,0x00,0x00,0x00511 512# CHECK: s_store_dword s1, s[6:7], s0            ; encoding: [0x43,0x00,0x40,0xc0,0x00,0x00,0x00,0x00]5130x43,0x00,0x40,0xc0,0x00,0x00,0x00,0x00514 515# CHECK: s_store_dword s1, s[100:101], s0        ; encoding: [0x72,0x00,0x40,0xc0,0x00,0x00,0x00,0x00]5160x72,0x00,0x40,0xc0,0x00,0x00,0x00,0x00517 518# CHECK: s_store_dword s1, flat_scratch, s0      ; encoding: [0x73,0x00,0x40,0xc0,0x00,0x00,0x00,0x00]5190x73,0x00,0x40,0xc0,0x00,0x00,0x00,0x00520 521# CHECK: s_store_dword s1, vcc, s0               ; encoding: [0x75,0x00,0x40,0xc0,0x00,0x00,0x00,0x00]5220x75,0x00,0x40,0xc0,0x00,0x00,0x00,0x00523 524# CHECK: s_store_dword s1, s[4:5], s101          ; encoding: [0x42,0x00,0x40,0xc0,0x65,0x00,0x00,0x00]5250x42,0x00,0x40,0xc0,0x65,0x00,0x00,0x00526 527# The SGRP variants can alternatively be encoded with imm=0, soffset_en=1528# and the offset register encoded in the soffset field with the offset529# field being disregarded.530# CHECK: s_store_dword s5, s[2:3], s64           ; encoding: [0x41,0x41,0x40,0xc0,0x00,0x00,0x00,0x80]5310x41,0x41,0x40,0xc0,0x65,0x00,0x00,0x80532 533# CHECK: s_store_dword s1, s[4:5], flat_scratch_lo ; encoding: [0x42,0x00,0x40,0xc0,0x66,0x00,0x00,0x00]5340x42,0x00,0x40,0xc0,0x66,0x00,0x00,0x00535 536# CHECK: s_store_dword s1, s[4:5], flat_scratch_hi ; encoding: [0x42,0x00,0x40,0xc0,0x67,0x00,0x00,0x00]5370x42,0x00,0x40,0xc0,0x67,0x00,0x00,0x00538 539# CHECK: s_store_dword s1, s[4:5], vcc_lo        ; encoding: [0x42,0x00,0x40,0xc0,0x6a,0x00,0x00,0x00]5400x42,0x00,0x40,0xc0,0x6a,0x00,0x00,0x00541 542# CHECK: s_store_dword s1, s[4:5], vcc_hi        ; encoding: [0x42,0x00,0x40,0xc0,0x6b,0x00,0x00,0x00]5430x42,0x00,0x40,0xc0,0x6b,0x00,0x00,0x00544 545# CHECK: s_store_dword s1, s[4:5], m0            ; encoding: [0x42,0x00,0x40,0xc0,0x7c,0x00,0x00,0x00]5460x42,0x00,0x40,0xc0,0x7c,0x00,0x00,0x00547 548# CHECK: s_store_dword s1, s[4:5], 0x0           ; encoding: [0x42,0x00,0x42,0xc0,0x00,0x00,0x00,0x00]5490x42,0x00,0x42,0xc0,0x00,0x00,0x00,0x00550 551# CHECK: s_store_dword s1, s[4:5], s7 offset:0x12345 ; encoding: [0x42,0x40,0x42,0xc0,0x45,0x23,0x01,0x0e]5520x42,0x40,0x42,0xc0,0x45,0x23,0x01,0x0e553 554# SP3 prefers to decode instructions with imm=1 and soffset_en=1 to the555# form with the 'offset:' modifier, even if the offset is 0.556# CHECK: s_store_dword s5, s[2:3], s0 offset:0x0 ; encoding: [0x41,0x41,0x42,0xc0,0x00,0x00,0x00,0x00]5570x41,0x41,0x42,0xc0,0x00,0x00,0x00,0x00558 559# CHECK: s_store_dword s1, s[4:5], s0 glc        ; encoding: [0x42,0x00,0x41,0xc0,0x00,0x00,0x00,0x00]5600x42,0x00,0x41,0xc0,0x00,0x00,0x00,0x00561 562# CHECK: s_store_dwordx2 s[2:3], s[4:5], s0      ; encoding: [0x82,0x00,0x44,0xc0,0x00,0x00,0x00,0x00]5630x82,0x00,0x44,0xc0,0x00,0x00,0x00,0x00564 565# CHECK: s_store_dwordx2 s[4:5], s[4:5], s0      ; encoding: [0x02,0x01,0x44,0xc0,0x00,0x00,0x00,0x00]5660x02,0x01,0x44,0xc0,0x00,0x00,0x00,0x00567 568# CHECK: s_store_dwordx2 s[100:101], s[4:5], s0  ; encoding: [0x02,0x19,0x44,0xc0,0x00,0x00,0x00,0x00]5690x02,0x19,0x44,0xc0,0x00,0x00,0x00,0x00570 571# CHECK: s_store_dwordx2 flat_scratch, s[4:5], s0 ; encoding: [0x82,0x19,0x44,0xc0,0x00,0x00,0x00,0x00]5720x82,0x19,0x44,0xc0,0x00,0x00,0x00,0x00573 574# CHECK: s_store_dwordx2 vcc, s[4:5], s0         ; encoding: [0x82,0x1a,0x44,0xc0,0x00,0x00,0x00,0x00]5750x82,0x1a,0x44,0xc0,0x00,0x00,0x00,0x00576 577# CHECK: s_store_dwordx2 s[2:3], s[6:7], s0      ; encoding: [0x83,0x00,0x44,0xc0,0x00,0x00,0x00,0x00]5780x83,0x00,0x44,0xc0,0x00,0x00,0x00,0x00579 580# CHECK: s_store_dwordx2 s[2:3], s[100:101], s0  ; encoding: [0xb2,0x00,0x44,0xc0,0x00,0x00,0x00,0x00]5810xb2,0x00,0x44,0xc0,0x00,0x00,0x00,0x00582 583# CHECK: s_store_dwordx2 s[2:3], flat_scratch, s0 ; encoding: [0xb3,0x00,0x44,0xc0,0x00,0x00,0x00,0x00]5840xb3,0x00,0x44,0xc0,0x00,0x00,0x00,0x00585 586# CHECK: s_store_dwordx2 s[2:3], vcc, s0         ; encoding: [0xb5,0x00,0x44,0xc0,0x00,0x00,0x00,0x00]5870xb5,0x00,0x44,0xc0,0x00,0x00,0x00,0x00588 589# CHECK: s_store_dwordx2 s[2:3], s[4:5], s101    ; encoding: [0x82,0x00,0x44,0xc0,0x65,0x00,0x00,0x00]5900x82,0x00,0x44,0xc0,0x65,0x00,0x00,0x00591 592# CHECK: s_store_dwordx2 s[2:3], s[4:5], flat_scratch_lo ; encoding: [0x82,0x00,0x44,0xc0,0x66,0x00,0x00,0x00]5930x82,0x00,0x44,0xc0,0x66,0x00,0x00,0x00594 595# CHECK: s_store_dwordx2 s[2:3], s[4:5], flat_scratch_hi ; encoding: [0x82,0x00,0x44,0xc0,0x67,0x00,0x00,0x00]5960x82,0x00,0x44,0xc0,0x67,0x00,0x00,0x00597 598# CHECK: s_store_dwordx2 s[2:3], s[4:5], vcc_lo  ; encoding: [0x82,0x00,0x44,0xc0,0x6a,0x00,0x00,0x00]5990x82,0x00,0x44,0xc0,0x6a,0x00,0x00,0x00600 601# CHECK: s_store_dwordx2 s[2:3], s[4:5], vcc_hi  ; encoding: [0x82,0x00,0x44,0xc0,0x6b,0x00,0x00,0x00]6020x82,0x00,0x44,0xc0,0x6b,0x00,0x00,0x00603 604# CHECK: s_store_dwordx2 s[2:3], s[4:5], m0      ; encoding: [0x82,0x00,0x44,0xc0,0x7c,0x00,0x00,0x00]6050x82,0x00,0x44,0xc0,0x7c,0x00,0x00,0x00606 607# CHECK: s_store_dwordx2 s[2:3], s[4:5], 0x0     ; encoding: [0x82,0x00,0x46,0xc0,0x00,0x00,0x00,0x00]6080x82,0x00,0x46,0xc0,0x00,0x00,0x00,0x00609 610# CHECK: s_store_dwordx2 s[2:3], s[4:5], s0 glc  ; encoding: [0x82,0x00,0x45,0xc0,0x00,0x00,0x00,0x00]6110x82,0x00,0x45,0xc0,0x00,0x00,0x00,0x00612 613# CHECK: s_store_dwordx4 s[4:7], s[4:5], s0      ; encoding: [0x02,0x01,0x48,0xc0,0x00,0x00,0x00,0x00]6140x02,0x01,0x48,0xc0,0x00,0x00,0x00,0x00615 616# CHECK: s_store_dwordx4 s[8:11], s[4:5], s0     ; encoding: [0x02,0x02,0x48,0xc0,0x00,0x00,0x00,0x00]6170x02,0x02,0x48,0xc0,0x00,0x00,0x00,0x00618 619# CHECK: s_store_dwordx4 s[96:99], s[4:5], s0    ; encoding: [0x02,0x18,0x48,0xc0,0x00,0x00,0x00,0x00]6200x02,0x18,0x48,0xc0,0x00,0x00,0x00,0x00621 622# CHECK: s_store_dwordx4 s[4:7], s[6:7], s0      ; encoding: [0x03,0x01,0x48,0xc0,0x00,0x00,0x00,0x00]6230x03,0x01,0x48,0xc0,0x00,0x00,0x00,0x00624 625# CHECK: s_store_dwordx4 s[4:7], s[100:101], s0  ; encoding: [0x32,0x01,0x48,0xc0,0x00,0x00,0x00,0x00]6260x32,0x01,0x48,0xc0,0x00,0x00,0x00,0x00627 628# CHECK: s_store_dwordx4 s[4:7], flat_scratch, s0 ; encoding: [0x33,0x01,0x48,0xc0,0x00,0x00,0x00,0x00]6290x33,0x01,0x48,0xc0,0x00,0x00,0x00,0x00630 631# CHECK: s_store_dwordx4 s[4:7], vcc, s0         ; encoding: [0x35,0x01,0x48,0xc0,0x00,0x00,0x00,0x00]6320x35,0x01,0x48,0xc0,0x00,0x00,0x00,0x00633 634# CHECK: s_store_dwordx4 s[4:7], s[4:5], s101    ; encoding: [0x02,0x01,0x48,0xc0,0x65,0x00,0x00,0x00]6350x02,0x01,0x48,0xc0,0x65,0x00,0x00,0x00636 637# CHECK: s_store_dwordx4 s[4:7], s[4:5], flat_scratch_lo ; encoding: [0x02,0x01,0x48,0xc0,0x66,0x00,0x00,0x00]6380x02,0x01,0x48,0xc0,0x66,0x00,0x00,0x00639 640# CHECK: s_store_dwordx4 s[4:7], s[4:5], flat_scratch_hi ; encoding: [0x02,0x01,0x48,0xc0,0x67,0x00,0x00,0x00]6410x02,0x01,0x48,0xc0,0x67,0x00,0x00,0x00642 643# CHECK: s_store_dwordx4 s[4:7], s[4:5], vcc_lo  ; encoding: [0x02,0x01,0x48,0xc0,0x6a,0x00,0x00,0x00]6440x02,0x01,0x48,0xc0,0x6a,0x00,0x00,0x00645 646# CHECK: s_store_dwordx4 s[4:7], s[4:5], vcc_hi  ; encoding: [0x02,0x01,0x48,0xc0,0x6b,0x00,0x00,0x00]6470x02,0x01,0x48,0xc0,0x6b,0x00,0x00,0x00648 649# CHECK: s_store_dwordx4 s[4:7], s[4:5], m0      ; encoding: [0x02,0x01,0x48,0xc0,0x7c,0x00,0x00,0x00]6500x02,0x01,0x48,0xc0,0x7c,0x00,0x00,0x00651 652# CHECK: s_store_dwordx4 s[4:7], s[4:5], 0x0     ; encoding: [0x02,0x01,0x4a,0xc0,0x00,0x00,0x00,0x00]6530x02,0x01,0x4a,0xc0,0x00,0x00,0x00,0x00654 655# CHECK: s_store_dwordx4 s[4:7], s[4:5], s0 glc  ; encoding: [0x02,0x01,0x49,0xc0,0x00,0x00,0x00,0x00]6560x02,0x01,0x49,0xc0,0x00,0x00,0x00,0x00657 658# CHECK: s_buffer_store_dword s1, s[8:11], s0    ; encoding: [0x44,0x00,0x60,0xc0,0x00,0x00,0x00,0x00]6590x44,0x00,0x60,0xc0,0x00,0x00,0x00,0x00660 661# CHECK: s_buffer_store_dword s101, s[8:11], s0  ; encoding: [0x44,0x19,0x60,0xc0,0x00,0x00,0x00,0x00]6620x44,0x19,0x60,0xc0,0x00,0x00,0x00,0x00663 664# CHECK: s_buffer_store_dword flat_scratch_lo, s[8:11], s0 ; encoding: [0x84,0x19,0x60,0xc0,0x00,0x00,0x00,0x00]6650x84,0x19,0x60,0xc0,0x00,0x00,0x00,0x00666 667# CHECK: s_buffer_store_dword flat_scratch_hi, s[8:11], s0 ; encoding: [0xc4,0x19,0x60,0xc0,0x00,0x00,0x00,0x00]6680xc4,0x19,0x60,0xc0,0x00,0x00,0x00,0x00669 670# CHECK: s_buffer_store_dword vcc_lo, s[8:11], s0 ; encoding: [0x84,0x1a,0x60,0xc0,0x00,0x00,0x00,0x00]6710x84,0x1a,0x60,0xc0,0x00,0x00,0x00,0x00672 673# CHECK: s_buffer_store_dword vcc_hi, s[8:11], s0 ; encoding: [0xc4,0x1a,0x60,0xc0,0x00,0x00,0x00,0x00]6740xc4,0x1a,0x60,0xc0,0x00,0x00,0x00,0x00675 676# CHECK: s_buffer_store_dword s1, s[12:15], s0   ; encoding: [0x46,0x00,0x60,0xc0,0x00,0x00,0x00,0x00]6770x46,0x00,0x60,0xc0,0x00,0x00,0x00,0x00678 679# CHECK: s_buffer_store_dword s1, s[96:99], s0   ; encoding: [0x70,0x00,0x60,0xc0,0x00,0x00,0x00,0x00]6800x70,0x00,0x60,0xc0,0x00,0x00,0x00,0x00681 682# CHECK: s_buffer_store_dword s1, s[8:11], s101  ; encoding: [0x44,0x00,0x60,0xc0,0x65,0x00,0x00,0x00]6830x44,0x00,0x60,0xc0,0x65,0x00,0x00,0x00684 685# CHECK: s_buffer_store_dword s1, s[8:11], flat_scratch_lo ; encoding: [0x44,0x00,0x60,0xc0,0x66,0x00,0x00,0x00]6860x44,0x00,0x60,0xc0,0x66,0x00,0x00,0x00687 688# CHECK: s_buffer_store_dword s1, s[8:11], flat_scratch_hi ; encoding: [0x44,0x00,0x60,0xc0,0x67,0x00,0x00,0x00]6890x44,0x00,0x60,0xc0,0x67,0x00,0x00,0x00690 691# CHECK: s_buffer_store_dword s1, s[8:11], vcc_lo ; encoding: [0x44,0x00,0x60,0xc0,0x6a,0x00,0x00,0x00]6920x44,0x00,0x60,0xc0,0x6a,0x00,0x00,0x00693 694# CHECK: s_buffer_store_dword s1, s[8:11], vcc_hi ; encoding: [0x44,0x00,0x60,0xc0,0x6b,0x00,0x00,0x00]6950x44,0x00,0x60,0xc0,0x6b,0x00,0x00,0x00696 697# CHECK: s_buffer_store_dword s1, s[8:11], m0    ; encoding: [0x44,0x00,0x60,0xc0,0x7c,0x00,0x00,0x00]6980x44,0x00,0x60,0xc0,0x7c,0x00,0x00,0x00699 700# CHECK: s_buffer_store_dword s1, s[8:11], 0x0   ; encoding: [0x44,0x00,0x62,0xc0,0x00,0x00,0x00,0x00]7010x44,0x00,0x62,0xc0,0x00,0x00,0x00,0x00702 703# CHECK: s_buffer_store_dword s1, s[8:11], s0 glc ; encoding: [0x44,0x00,0x61,0xc0,0x00,0x00,0x00,0x00]7040x44,0x00,0x61,0xc0,0x00,0x00,0x00,0x00705 706# CHECK: s_buffer_store_dwordx2 s[2:3], s[8:11], s0 ; encoding: [0x84,0x00,0x64,0xc0,0x00,0x00,0x00,0x00]7070x84,0x00,0x64,0xc0,0x00,0x00,0x00,0x00708 709# CHECK: s_buffer_store_dwordx2 s[4:5], s[8:11], s0 ; encoding: [0x04,0x01,0x64,0xc0,0x00,0x00,0x00,0x00]7100x04,0x01,0x64,0xc0,0x00,0x00,0x00,0x00711 712# CHECK: s_buffer_store_dwordx2 s[100:101], s[8:11], s0 ; encoding: [0x04,0x19,0x64,0xc0,0x00,0x00,0x00,0x00]7130x04,0x19,0x64,0xc0,0x00,0x00,0x00,0x00714 715# CHECK: s_buffer_store_dwordx2 flat_scratch, s[8:11], s0 ; encoding: [0x84,0x19,0x64,0xc0,0x00,0x00,0x00,0x00]7160x84,0x19,0x64,0xc0,0x00,0x00,0x00,0x00717 718# CHECK: s_buffer_store_dwordx2 vcc, s[8:11], s0 ; encoding: [0x84,0x1a,0x64,0xc0,0x00,0x00,0x00,0x00]7190x84,0x1a,0x64,0xc0,0x00,0x00,0x00,0x00720 721# CHECK: s_buffer_store_dwordx2 s[2:3], s[12:15], s0 ; encoding: [0x86,0x00,0x64,0xc0,0x00,0x00,0x00,0x00]7220x86,0x00,0x64,0xc0,0x00,0x00,0x00,0x00723 724# CHECK: s_buffer_store_dwordx2 s[2:3], s[96:99], s0 ; encoding: [0xb0,0x00,0x64,0xc0,0x00,0x00,0x00,0x00]7250xb0,0x00,0x64,0xc0,0x00,0x00,0x00,0x00726 727# CHECK: s_buffer_store_dwordx2 s[2:3], s[8:11], s101 ; encoding: [0x84,0x00,0x64,0xc0,0x65,0x00,0x00,0x00]7280x84,0x00,0x64,0xc0,0x65,0x00,0x00,0x00729 730# CHECK: s_buffer_store_dwordx2 s[2:3], s[8:11], flat_scratch_lo ; encoding: [0x84,0x00,0x64,0xc0,0x66,0x00,0x00,0x00]7310x84,0x00,0x64,0xc0,0x66,0x00,0x00,0x00732 733# CHECK: s_buffer_store_dwordx2 s[2:3], s[8:11], flat_scratch_hi ; encoding: [0x84,0x00,0x64,0xc0,0x67,0x00,0x00,0x00]7340x84,0x00,0x64,0xc0,0x67,0x00,0x00,0x00735 736# CHECK: s_buffer_store_dwordx2 s[2:3], s[8:11], vcc_lo ; encoding: [0x84,0x00,0x64,0xc0,0x6a,0x00,0x00,0x00]7370x84,0x00,0x64,0xc0,0x6a,0x00,0x00,0x00738 739# CHECK: s_buffer_store_dwordx2 s[2:3], s[8:11], vcc_hi ; encoding: [0x84,0x00,0x64,0xc0,0x6b,0x00,0x00,0x00]7400x84,0x00,0x64,0xc0,0x6b,0x00,0x00,0x00741 742# CHECK: s_buffer_store_dwordx2 s[2:3], s[8:11], m0 ; encoding: [0x84,0x00,0x64,0xc0,0x7c,0x00,0x00,0x00]7430x84,0x00,0x64,0xc0,0x7c,0x00,0x00,0x00744 745# CHECK: s_buffer_store_dwordx2 s[2:3], s[8:11], 0x0 ; encoding: [0x84,0x00,0x66,0xc0,0x00,0x00,0x00,0x00]7460x84,0x00,0x66,0xc0,0x00,0x00,0x00,0x00747 748# CHECK: s_buffer_store_dwordx2 s[2:3], s[8:11], s0 glc ; encoding: [0x84,0x00,0x65,0xc0,0x00,0x00,0x00,0x00]7490x84,0x00,0x65,0xc0,0x00,0x00,0x00,0x00750 751# CHECK: s_buffer_store_dwordx4 s[4:7], s[8:11], s0 ; encoding: [0x04,0x01,0x68,0xc0,0x00,0x00,0x00,0x00]7520x04,0x01,0x68,0xc0,0x00,0x00,0x00,0x00753 754# CHECK: s_buffer_store_dwordx4 s[8:11], s[8:11], s0 ; encoding: [0x04,0x02,0x68,0xc0,0x00,0x00,0x00,0x00]7550x04,0x02,0x68,0xc0,0x00,0x00,0x00,0x00756 757# CHECK: s_buffer_store_dwordx4 s[96:99], s[8:11], s0 ; encoding: [0x04,0x18,0x68,0xc0,0x00,0x00,0x00,0x00]7580x04,0x18,0x68,0xc0,0x00,0x00,0x00,0x00759 760# CHECK: s_buffer_store_dwordx4 s[4:7], s[12:15], s0 ; encoding: [0x06,0x01,0x68,0xc0,0x00,0x00,0x00,0x00]7610x06,0x01,0x68,0xc0,0x00,0x00,0x00,0x00762 763# CHECK: s_buffer_store_dwordx4 s[4:7], s[96:99], s0 ; encoding: [0x30,0x01,0x68,0xc0,0x00,0x00,0x00,0x00]7640x30,0x01,0x68,0xc0,0x00,0x00,0x00,0x00765 766# CHECK: s_buffer_store_dwordx4 s[4:7], s[8:11], s101 ; encoding: [0x04,0x01,0x68,0xc0,0x65,0x00,0x00,0x00]7670x04,0x01,0x68,0xc0,0x65,0x00,0x00,0x00768 769# CHECK: s_buffer_store_dwordx4 s[4:7], s[8:11], flat_scratch_lo ; encoding: [0x04,0x01,0x68,0xc0,0x66,0x00,0x00,0x00]7700x04,0x01,0x68,0xc0,0x66,0x00,0x00,0x00771 772# CHECK: s_buffer_store_dwordx4 s[4:7], s[8:11], flat_scratch_hi ; encoding: [0x04,0x01,0x68,0xc0,0x67,0x00,0x00,0x00]7730x04,0x01,0x68,0xc0,0x67,0x00,0x00,0x00774 775# CHECK: s_buffer_store_dwordx4 s[4:7], s[8:11], vcc_lo ; encoding: [0x04,0x01,0x68,0xc0,0x6a,0x00,0x00,0x00]7760x04,0x01,0x68,0xc0,0x6a,0x00,0x00,0x00777 778# CHECK: s_buffer_store_dwordx4 s[4:7], s[8:11], vcc_hi ; encoding: [0x04,0x01,0x68,0xc0,0x6b,0x00,0x00,0x00]7790x04,0x01,0x68,0xc0,0x6b,0x00,0x00,0x00780 781# CHECK: s_buffer_store_dwordx4 s[4:7], s[8:11], m0 ; encoding: [0x04,0x01,0x68,0xc0,0x7c,0x00,0x00,0x00]7820x04,0x01,0x68,0xc0,0x7c,0x00,0x00,0x00783 784# CHECK: s_buffer_store_dwordx4 s[4:7], s[8:11], 0x0 ; encoding: [0x04,0x01,0x6a,0xc0,0x00,0x00,0x00,0x00]7850x04,0x01,0x6a,0xc0,0x00,0x00,0x00,0x00786 787# CHECK: s_buffer_store_dwordx4 s[4:7], s[8:11], s0 glc ; encoding: [0x04,0x01,0x69,0xc0,0x00,0x00,0x00,0x00]7880x04,0x01,0x69,0xc0,0x00,0x00,0x00,0x00789 790# CHECK: s_dcache_inv                            ; encoding: [0x00,0x00,0x80,0xc0,0x00,0x00,0x00,0x00]7910x00,0x00,0x80,0xc0,0x00,0x00,0x00,0x00792 793# CHECK: s_dcache_wb                             ; encoding: [0x00,0x00,0x84,0xc0,0x00,0x00,0x00,0x00]7940x00,0x00,0x84,0xc0,0x00,0x00,0x00,0x00795 796# CHECK: s_dcache_inv_vol                        ; encoding: [0x00,0x00,0x88,0xc0,0x00,0x00,0x00,0x00]7970x00,0x00,0x88,0xc0,0x00,0x00,0x00,0x00798 799# CHECK: s_dcache_wb_vol                         ; encoding: [0x00,0x00,0x8c,0xc0,0x00,0x00,0x00,0x00]8000x00,0x00,0x8c,0xc0,0x00,0x00,0x00,0x00801 802# CHECK: s_memtime s[10:11]                      ; encoding: [0x80,0x02,0x90,0xc0,0x00,0x00,0x00,0x00]8030x80,0x02,0x90,0xc0,0x00,0x00,0x00,0x00804 805# CHECK: s_memtime s[12:13]                      ; encoding: [0x00,0x03,0x90,0xc0,0x00,0x00,0x00,0x00]8060x00,0x03,0x90,0xc0,0x00,0x00,0x00,0x00807 808# CHECK: s_memtime s[100:101]                    ; encoding: [0x00,0x19,0x90,0xc0,0x00,0x00,0x00,0x00]8090x00,0x19,0x90,0xc0,0x00,0x00,0x00,0x00810 811# CHECK: s_memtime flat_scratch                  ; encoding: [0x80,0x19,0x90,0xc0,0x00,0x00,0x00,0x00]8120x80,0x19,0x90,0xc0,0x00,0x00,0x00,0x00813 814# CHECK: s_memtime vcc                           ; encoding: [0x80,0x1a,0x90,0xc0,0x00,0x00,0x00,0x00]8150x80,0x1a,0x90,0xc0,0x00,0x00,0x00,0x00816 817# CHECK: s_memrealtime s[10:11]                  ; encoding: [0x80,0x02,0x94,0xc0,0x00,0x00,0x00,0x00]8180x80,0x02,0x94,0xc0,0x00,0x00,0x00,0x00819 820# CHECK: s_memrealtime s[12:13]                  ; encoding: [0x00,0x03,0x94,0xc0,0x00,0x00,0x00,0x00]8210x00,0x03,0x94,0xc0,0x00,0x00,0x00,0x00822 823# CHECK: s_memrealtime s[100:101]                ; encoding: [0x00,0x19,0x94,0xc0,0x00,0x00,0x00,0x00]8240x00,0x19,0x94,0xc0,0x00,0x00,0x00,0x00825 826# CHECK: s_memrealtime flat_scratch              ; encoding: [0x80,0x19,0x94,0xc0,0x00,0x00,0x00,0x00]8270x80,0x19,0x94,0xc0,0x00,0x00,0x00,0x00828 829# CHECK: s_memrealtime vcc                       ; encoding: [0x80,0x1a,0x94,0xc0,0x00,0x00,0x00,0x00]8300x80,0x1a,0x94,0xc0,0x00,0x00,0x00,0x00831