This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Change frexp.exp intrinsic to return i16 for f16 input
ClosedPublic

Authored by kzhuravl on Nov 18 2016, 9:31 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

kzhuravl updated this revision to Diff 78545.Nov 18 2016, 9:31 AM
kzhuravl retitled this revision from to [AMDGPU] Change frexp.exp intrinsic to return i16 for f16 input.
kzhuravl updated this object.
kzhuravl added reviewers: tstellarAMD, arsenm.
kzhuravl added subscribers: b-sumner, llvm-commits.
arsenm added inline comments.Nov 18 2016, 10:10 AM
test/CodeGen/AMDGPU/llvm.amdgcn.frexp.exp.f16.ll
17 ↗(On Diff #78545)

Can you add additional tests where the result is sext and zext to i32 to make sure it is properly sign extended

arsenm accepted this revision.Nov 18 2016, 10:11 AM
arsenm edited edge metadata.

LGTM

This revision is now accepted and ready to land.Nov 18 2016, 10:11 AM
kzhuravl updated this revision to Diff 78562.Nov 18 2016, 11:36 AM
kzhuravl edited edge metadata.
kzhuravl marked an inline comment as done.

Add tests with sext/zext

This revision was automatically updated to reflect the committed changes.