This is an archive of the discontinued LLVM Phabricator instance.

Do not try to use i8 and i16 versions of FP_TO_INT soft float library calls
ClosedPublic

Authored by mkuper on Dec 2 2015, 7:21 AM.

Details

Summary

It appears that neither compiler-rt nor the gnu soft-float libraries actually implement these conversions.

Instead of producing calls to library functions that don't exist, handle it similarly to the way we handle i8 -> float and i16 -> float conversions - call the i32 library function, and adjust the type.

Diff Detail

Event Timeline

mkuper updated this revision to Diff 41621.Dec 2 2015, 7:21 AM
mkuper retitled this revision from to Do not try to use i8 and i16 versions of FP_TO_INT soft float library calls .
mkuper updated this object.
mkuper added a subscriber: llvm-commits.
mkuper added a subscriber: aaboud.Dec 6 2015, 6:41 AM
nadav edited edge metadata.Dec 6 2015, 7:52 AM

LGTM.

This revision was automatically updated to reflect the committed changes.