HomePhabricator

Make uitofp and sitofp defined on overflow.

Authored by efriedma on Jun 14 2018, 3:58 PM.

Description

Make uitofp and sitofp defined on overflow.

IEEE 754 defines the expected result on overflow. As far as I know,
hardware implementations (of f16), and compiler-rt (__floatuntisf)
correctly return +-Inf on overflow. And I can't think of any useful
transform that would take advantage of overflow being undefined here.

Differential Revision: https://reviews.llvm.org/D47807

llvm-svn: 334777

Details

Committed
efriedmaJun 14 2018, 3:58 PM
Differential Revision
D47807: Make uitofp and sitofp defined on overflow.
Parents
rG9afe1fa7e295: [libFuzzer] [NFC] XFAIL one of the tests on iOS.
Branches
Unknown
Tags
Unknown