Skip to content

Commit 81185f7

Browse files
changpengrampitec
andauthored
AMDGPU: Add packed fp32 instructions for gfx1250 (#150253)
Co-authored-by: Stanislav Mekhanoshin <[email protected]>
1 parent 32c9854 commit 81185f7

File tree

4 files changed

+1605
-0
lines changed

4 files changed

+1605
-0
lines changed

llvm/lib/Target/AMDGPU/VOP3PInstructions.td

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2210,6 +2210,10 @@ multiclass VOP3P_Real_with_name_gfx12<bits<8> op,
22102210
defm V_PK_MIN_NUM_F16 : VOP3P_Real_with_name_gfx12<0x1b, "V_PK_MIN_F16", "v_pk_min_num_f16">;
22112211
defm V_PK_MAX_NUM_F16 : VOP3P_Real_with_name_gfx12<0x1c, "V_PK_MAX_F16", "v_pk_max_num_f16">;
22122212

2213+
defm V_PK_FMA_F32 : VOP3P_Real_gfx12<0x1f>;
2214+
defm V_PK_MUL_F32 : VOP3P_Real_gfx12<0x28>;
2215+
defm V_PK_ADD_F32 : VOP3P_Real_gfx12<0x29>;
2216+
22132217
defm V_PK_ADD_MAX_I16 : VOP3P_Real_gfx1250<0x14>;
22142218
defm V_PK_ADD_MAX_U16 : VOP3P_Real_gfx1250<0x15>;
22152219
defm V_PK_ADD_MIN_I16 : VOP3P_Real_gfx1250<0x2d>;

0 commit comments

Comments
 (0)