diff --git a/llvm/lib/Target/AMDGPU/DSInstructions.td b/llvm/lib/Target/AMDGPU/DSInstructions.td index 9ff74d9958304..780479a3885bd 100644 --- a/llvm/lib/Target/AMDGPU/DSInstructions.td +++ b/llvm/lib/Target/AMDGPU/DSInstructions.td @@ -1203,7 +1203,7 @@ def : GCNPat < class Base_DS_Real_gfx6_gfx7_gfx10_gfx11_gfx12 op, DS_Pseudo ps, int ef, string opName = ps.Mnemonic, - bit hasGFX12Enc = 0> + bit hasGDS = true> : DS_Real, SIMCInstr { let Inst{7-0} = !if(ps.has_offset0, offset0, 0); @@ -1216,7 +1216,7 @@ class Base_DS_Real_gfx6_gfx7_gfx10_gfx11_gfx12 op, DS_Pseudo ps, int ef, let Inst{55-48} = !if(ps.has_data1, data1{7-0}, 0); let Inst{63-56} = !if(ps.has_vdst, vdst{7-0}, 0); - let gds = !if(hasGFX12Enc, 0, ?); + let gds = !if(hasGDS, ?, 0); } //===----------------------------------------------------------------------===// @@ -1228,7 +1228,7 @@ let AssemblerPredicate = isGFX12Plus, DecoderNamespace = "GFX12" in { defvar ps = !cast(NAME); def _gfx12 : Base_DS_Real_gfx6_gfx7_gfx10_gfx11_gfx12; + ps.Mnemonic, /*hasGDS=*/false>; } multiclass DS_Real_Renamed_gfx12 op, DS_Pseudo backing_pseudo, @@ -1236,7 +1236,7 @@ let AssemblerPredicate = isGFX12Plus, DecoderNamespace = "GFX12" in { def _gfx12 : Base_DS_Real_gfx6_gfx7_gfx10_gfx11_gfx12, + real_name, /*hasGDS=*/false>, MnemonicAlias, Requires<[isGFX12Plus]>; }