Put AND before ADD in LegalizerHelper::lowerFPTRUNC_F64_TO_F16 in order to match algorithm from AMDGPUTargetLowering::LowerFP_TO_FP16.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
| Paths 
 |  Differential  D81666  
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 TimelineThis revision is now accepted and ready to land.Jun 11 2020, 8:41 AM Closed by commit rGbd3d951b8bb9: AMDGPU/GlobalISel: Fix lower for f64->f16 G_FPTRUNC (authored by Petar.Avramovic).  ·  Explain WhyJun 11 2020, 9:21 AM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
Diff 270168 llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
 llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-fptrunc.mir
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||