[AMDGPU][MC][GFX10] Add missing s_scratch_load tests.

Completes
https://reviews.llvm.org/D125117

Reviewed By: dp, arsenm

Differential Revision: https://reviews.llvm.org/D125753
This commit is contained in:
Ivan Kosarev
2022-05-18 10:47:24 +01:00
parent c9e7049754
commit 140ad30b24
2 changed files with 6 additions and 0 deletions

View File

@@ -920,6 +920,9 @@ s_scratch_load_dwordx2 s[100:101], s[2:3], s0
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]

View File

@@ -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