This is essentially doing a 24-bit signed division with FP. We need to truncate to the N bit result.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D20448
AMDGPU: Fix high bits after division optimization ClosedPublic Authored by arsenm on May 19 2016, 1:22 PM.
Details
Summary This is essentially doing a 24-bit signed division with FP. We need to truncate to the N bit result.
Diff Detail Event Timelinearsenm updated this object. This revision is now accepted and ready to land.May 20 2016, 5:22 PM
Revision Contents
Diff 57852 lib/Target/AMDGPU/AMDGPUISelLowering.cpp
test/CodeGen/AMDGPU/sdiv.ll
test/CodeGen/AMDGPU/sdivrem24.ll
test/CodeGen/AMDGPU/udiv.ll
test/CodeGen/AMDGPU/udivrem.ll
test/CodeGen/AMDGPU/udivrem24.ll
test/CodeGen/AMDGPU/udivrem64.ll
|