diff options
author | Ahmed Bougacha <ahmed.bougacha@gmail.com> | 2016-05-06 00:58:00 +0000 |
---|---|---|
committer | Ahmed Bougacha <ahmed.bougacha@gmail.com> | 2016-05-06 00:58:00 +0000 |
commit | 16547c4e315232b9b8b725652a28ce027777936b (patch) | |
tree | 9c75dc2e7fa96a6970eab9633d4e038ce89333ad /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 31f9f6100efa23a26f4156eb3bca238e2f96c49f (diff) | |
download | llvm-16547c4e315232b9b8b725652a28ce027777936b.zip llvm-16547c4e315232b9b8b725652a28ce027777936b.tar.gz llvm-16547c4e315232b9b8b725652a28ce027777936b.tar.bz2 |
[CodeGen] Round [SU]INT_TO_FP result when promoting from f16.
If we don't, values that aren't precisely representable in f16 could
be used as-is in a promoted f32 operation, which would produce
incorrect results.
AArch64 had the correct behavior; add a focused test.
Fixes http://llvm.org/PR26871
llvm-svn: 268700
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions