This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Custom lower FP_TO_FP16 for f64
AbandonedPublic

Authored by jvesely on Aug 2 2016, 8:39 AM.

Details

Reviewers
tstellarAMD

Diff Detail

Repository
rL LLVM

Event Timeline

jvesely updated this revision to Diff 66482.Aug 2 2016, 8:39 AM
jvesely retitled this revision from to AMDGPU: Custom lower FP_TO_FP16 for f64.
jvesely updated this object.
jvesely added a reviewer: tstellarAMD.
jvesely set the repository for this revision to rL LLVM.
jvesely added a subscriber: llvm-commits.
arsenm added a comment.Aug 2 2016, 6:27 PM

This isn't a correct lowering, the correctly rounded conversion is complex and needs to be implemented

This isn't a correct lowering, the correctly rounded conversion is complex and needs to be implemented

feel free to click 'reject', although a more detailed answer would be appreciated.
The OpenCL specs say that mantissa is correctly rounded using default rounding mode [rtne]. my understanding is that using trunc should be enough to not destroy the rounding information.

jvesely abandoned this revision.Nov 1 2016, 10:20 AM