This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Restrict v_cndmask_b32 abs/neg modifiers to f32
ClosedPublic

Authored by foad on Jul 12 2019, 7:50 AM.

Details

Summary

D64497 allowed abs/neg source modifiers on v_cndmask_b32 but it doesn't
make any sense to apply them to f16 operands; they would interpret the
bits of the value as an f32, giving nonsensical results. This patch
restricts them to f32 operands.

Diff Detail

Repository
rL LLVM

Event Timeline

foad created this revision.Jul 12 2019, 7:50 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 12 2019, 7:50 AM
arsenm accepted this revision.Jul 12 2019, 7:55 AM
This revision is now accepted and ready to land.Jul 12 2019, 7:55 AM
This revision was automatically updated to reflect the committed changes.