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
..
2016-01-26 00:03:25 +00:00
2016-03-29 07:53:07 +00:00
2016-01-26 18:22:50 +00:00
2016-01-16 15:25:02 +00:00
2016-01-16 15:25:02 +00:00
2015-11-30 19:04:19 +00:00
2016-01-05 00:48:16 +00:00
2015-04-06 22:29:07 +00:00
2015-04-06 22:29:07 +00:00
2015-09-29 22:09:16 +00:00
2016-04-08 06:45:19 +00:00
2016-04-01 10:16:15 +00:00
2016-04-05 17:12:19 +00:00
2016-04-05 17:12:19 +00:00
2016-01-26 00:03:25 +00:00
2016-04-18 21:07:49 +00:00
2015-08-25 07:42:09 +00:00
2015-06-02 22:33:30 +00:00
2015-05-28 22:12:27 +00:00
2016-05-04 00:22:23 +00:00
2016-02-18 18:44:33 +00:00
2015-12-16 11:22:37 +00:00
2015-12-16 11:22:37 +00:00
2016-02-18 18:44:33 +00:00
2016-02-18 18:44:33 +00:00
2015-12-05 19:54:59 +00:00
2016-03-21 11:06:20 +00:00
2015-08-28 17:19:54 +00:00
2016-04-01 21:06:17 +00:00
2016-04-07 16:15:34 +00:00
2015-08-19 16:17:08 +00:00
2016-03-23 11:13:54 +00:00