Skip to content

Commit f0899ed

Browse files
authored
[AMDGPU] Give some of the VI V_PK_* instructions a subtarget predicate. (#70334)
This resolves AsmParser ambiguity between them and similar instructions for other subtargets, e.g., V_PK_SUB_U16_vi being identical to V_PK_SUB_U16_gfx11 on GFX11. Part of <#69256>.
1 parent 45e2e03 commit f0899ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Target/AMDGPU/VOP3PInstructions.td

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,6 +1105,7 @@ multiclass VOP3P_Real_SMFMAC<bits<7> op, string alias> {
11051105
def : MnemonicAlias<alias, !cast<VOP3_Pseudo>(NAME#"_e64").Mnemonic>;
11061106
}
11071107

1108+
let SubtargetPredicate = isGFX8GFX9 in {
11081109
defm V_PK_MAD_I16 : VOP3P_Real_vi <0x00>;
11091110
defm V_PK_MUL_LO_U16 : VOP3P_Real_vi <0x01>;
11101111
defm V_PK_ADD_I16 : VOP3P_Real_vi <0x02>;
@@ -1125,7 +1126,7 @@ defm V_PK_ADD_F16 : VOP3P_Real_vi <0x0f>;
11251126
defm V_PK_MUL_F16 : VOP3P_Real_vi <0x10>;
11261127
defm V_PK_MIN_F16 : VOP3P_Real_vi <0x11>;
11271128
defm V_PK_MAX_F16 : VOP3P_Real_vi <0x12>;
1128-
1129+
} // End SubtargetPredicate = isGFX8GFX9
11291130

11301131
let SubtargetPredicate = HasMadMixInsts in {
11311132
defm V_MAD_MIX_F32 : VOP3P_Real_vi <0x20>;

0 commit comments

Comments
 (0)