forked from OSchip/llvm-project
[AMDGPU][MC][GFX8+] Correct SMEM offset parsing
Differential Revision: https://reviews.llvm.org/D125907
This commit is contained in:
parent
122e685878
commit
f598dfb3bf
|
@ -7736,7 +7736,8 @@ bool AMDGPUOperand::isSMRDOffset8() const {
|
|||
}
|
||||
|
||||
bool AMDGPUOperand::isSMEMOffset() const {
|
||||
return isImm(); // Offset range is checked later by validator.
|
||||
return isImmTy(ImmTyNone) ||
|
||||
isImmTy(ImmTyOffset); // Offset range is checked later by validator.
|
||||
}
|
||||
|
||||
bool AMDGPUOperand::isSMRDLiteralOffset() const {
|
||||
|
|
|
@ -1342,3 +1342,9 @@ s_buffer_atomic_umin s5, s[4:7], s2 dlc
|
|||
|
||||
s_buffer_atomic_xor s5, s[4:7], s2 dlc
|
||||
// GFX10: encoding: [0x42,0x41,0x28,0xf5,0x00,0x00,0x00,0x04]
|
||||
|
||||
s_load_dword s1, s[2:3] glc
|
||||
// GFX10: s_load_dword s1, s[2:3], 0x0 glc ; encoding: [0x41,0x00,0x01,0xf4,0x00,0x00,0x00,0xfa]
|
||||
|
||||
s_load_dword s1, s[2:3] dlc
|
||||
// GFX10: s_load_dword s1, s[2:3], 0x0 dlc ; encoding: [0x41,0x40,0x00,0xf4,0x00,0x00,0x00,0xfa]
|
||||
|
|
|
@ -1163,3 +1163,6 @@ s_atc_probe_buffer 0x0, s[8:11], m0
|
|||
|
||||
s_atc_probe_buffer 0x0, s[8:11], 0x7ffff
|
||||
// CHECK: [0x04,0x00,0x9e,0xc0,0xff,0xff,0x07,0x00]
|
||||
|
||||
s_load_dword s1, s[2:3] glc
|
||||
// CHECK: s_load_dword s1, s[2:3], 0x0 glc ; encoding: [0x41,0x00,0x03,0xc0,0x00,0x00,0x00,0x00]
|
||||
|
|
|
@ -4475,3 +4475,6 @@ s_atomic_dec_x2 s[10:11], s[2:3], 0x0
|
|||
|
||||
s_atomic_dec_x2 s[10:11], s[2:3], s0 glc
|
||||
// CHECK: [0x81,0x02,0xb1,0xc2,0x00,0x00,0x00,0x00]
|
||||
|
||||
s_load_dword s1, s[2:3] glc
|
||||
// CHECK: s_load_dword s1, s[2:3], 0x0 glc ; encoding: [0x41,0x00,0x03,0xc0,0x00,0x00,0x00,0x00]
|
||||
|
|
Loading…
Reference in New Issue