This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Fix operand class of v_ldexp_f16 src1
ClosedPublic

Authored by Joe_Nash on Jun 16 2023, 1:57 PM.

Details

Summary

Patch eece6ba283bd changed the src1 type of v_ldexp_f16 from i32 to
i16. Though semantically src1 is an i16, the hardware reads this operand as an
f16 type, which primarily enables floating point inline constants.
Therefore this patch changes the operand type to f16. It maintains the
current behavior where floating point source modifiers are not allowed
on src1. SDWA sext modifier continues to be allowed.
The test asm and disasm test changes in eece6ba283bd are reverted,
because the floating point inline constants are allowed.

Diff Detail

Event Timeline

Joe_Nash created this revision.Jun 16 2023, 1:57 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 16 2023, 1:57 PM
Joe_Nash requested review of this revision.Jun 16 2023, 1:57 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 16 2023, 1:57 PM
arsenm accepted this revision.Jun 16 2023, 2:26 PM
This revision is now accepted and ready to land.Jun 16 2023, 2:26 PM
This revision was automatically updated to reflect the committed changes.