This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/GlobalISel: Fix lower for f64->f16 G_FPTRUNC
ClosedPublic

Authored by Petar.Avramovic on Jun 11 2020, 8:33 AM.

Details

Summary

Put AND before ADD in LegalizerHelper::lowerFPTRUNC_F64_TO_F16 in order to match algorithm from AMDGPUTargetLowering::LowerFP_TO_FP16.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptJun 11 2020, 8:33 AM
arsenm accepted this revision.Jun 11 2020, 8:41 AM
This revision is now accepted and ready to land.Jun 11 2020, 8:41 AM
This revision was automatically updated to reflect the committed changes.