diff --git a/llvm/test/MC/AMDGPU/gfx10_asm_smem.s b/llvm/test/MC/AMDGPU/gfx10_asm_smem.s --- a/llvm/test/MC/AMDGPU/gfx10_asm_smem.s +++ b/llvm/test/MC/AMDGPU/gfx10_asm_smem.s @@ -920,6 +920,9 @@ s_scratch_load_dwordx2 s[10:11], s[2:3], 0x1 glc // GFX10: encoding: [0x81,0x02,0x19,0xf4,0x01,0x00,0x00,0xfa] +s_scratch_load_dwordx2 s[10:11], s[2:3], s0 offset:0x12345 glc +// GFX10: encoding: [0x81,0x02,0x19,0xf4,0x45,0x23,0x01,0x00] + s_scratch_load_dwordx4 s[20:23], s[4:5], s0 // GFX10: encoding: [0x02,0x05,0x1c,0xf4,0x00,0x00,0x00,0x00] diff --git a/llvm/test/MC/Disassembler/AMDGPU/gfx10_dasm_all.txt b/llvm/test/MC/Disassembler/AMDGPU/gfx10_dasm_all.txt --- a/llvm/test/MC/Disassembler/AMDGPU/gfx10_dasm_all.txt +++ b/llvm/test/MC/Disassembler/AMDGPU/gfx10_dasm_all.txt @@ -18089,6 +18089,9 @@ # GFX10: s_scratch_load_dwordx2 s[10:11], s[2:3], 0x1 glc ; encoding: [0x81,0x02,0x19,0xf4,0x01,0x00,0x00,0xfa] 0x81,0x02,0x19,0xf4,0x01,0x00,0x00,0xfa +# GFX10: s_scratch_load_dwordx2 s[10:11], s[2:3], s0 offset:0x12345 glc ; encoding: [0x81,0x02,0x19,0xf4,0x45,0x23,0x01,0x00] +0x81,0x02,0x19,0xf4,0x45,0x23,0x01,0x00 + # GFX10: s_scratch_load_dwordx4 s[20:23], s[4:5], s0 ; encoding: [0x02,0x05,0x1c,0xf4,0x00,0x00,0x00,0x00] 0x02,0x05,0x1c,0xf4,0x00,0x00,0x00,0x00