Ahmed Bougacha 16547c4e31 [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
2016-05-06 00:58:00 +00:00
..
2015-02-13 10:48:30 +00:00
2016-04-21 21:02:25 +00:00
2015-08-11 14:35:29 +00:00
2016-05-03 05:21:53 +00:00
2014-08-20 10:40:20 +00:00