Skip to content

Commit 1fb1fcf

Browse files
authored
Add mad support for v_pk_* 16 bit integer (#95104)
1 parent a8f8070 commit 1fb1fcf

File tree

3 files changed

+388
-490
lines changed

3 files changed

+388
-490
lines changed

llvm/lib/Target/AMDGPU/VOP3PInstructions.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ multiclass VOP3_VOP3PInst<string OpName, VOP3P_Mix_Profile P> {
9090
let isReMaterializable = 1 in {
9191
let isCommutable = 1 in {
9292
defm V_PK_MAD_I16 : VOP3PInst<"v_pk_mad_i16", VOP3P_Profile<VOP_V2I16_V2I16_V2I16_V2I16>>;
93-
defm V_PK_MAD_U16 : VOP3PInst<"v_pk_mad_u16", VOP3P_Profile<VOP_V2I16_V2I16_V2I16_V2I16>>;
93+
defm V_PK_MAD_U16 : VOP3PInst<"v_pk_mad_u16", VOP3P_Profile<VOP_V2I16_V2I16_V2I16_V2I16>, imad>;
9494

9595
let FPDPRounding = 1 in {
9696
defm V_PK_FMA_F16 : VOP3PInst<"v_pk_fma_f16", VOP3P_Profile<VOP_V2F16_V2F16_V2F16_V2F16>, any_fma>;

0 commit comments

Comments
 (0)