llvm-6502/test/CodeGen
Ulrich Weigand 6c28a7eec8 This patch fixes failures in the SingleSource/Regression/C/uint64_to_float
test case on PowerPC caused by rounding errors when converting from a 64-bit
integer to a single-precision floating point. The reason for this are
double-rounding effects, since on PowerPC we have to convert to an
intermediate double-precision value first, which gets rounded to the
final single-precision result.

The patch fixes the problem by preparing the 64-bit integer so that the
first conversion step to double-precision will always be exact, and the
final rounding step will result in the correctly-rounded single-precision
result.  The generated code sequence is equivalent to what GCC would generate.

When -enable-unsafe-fp-math is in effect, that extra effort is omitted
and we accept possible rounding errors (just like GCC does as well).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166178 91177308-0d34-0410-b5e6-96231b3b80d8
2012-10-18 13:16:11 +00:00
..
ARM Revert r166046 "Switch back to the old coalescer for now to fix the 32 bit bit" 2012-10-16 22:51:55 +00:00
CellSPU Fix broken tests. 2012-10-02 15:49:34 +00:00
CPP
Generic
Hexagon LLVM Bug Fix 13709: Remove needless lsr(Rp, #32) instruction access the 2012-09-05 16:01:40 +00:00
MBlaze
Mips Add conditional branch instructions and their patterns. 2012-10-17 22:29:54 +00:00
MSP430 Fix fallout from RegInfo => FrameLowering refactoring on MSP430. 2012-10-17 17:37:11 +00:00
NVPTX
PowerPC This patch fixes failures in the SingleSource/Regression/C/uint64_to_float 2012-10-18 13:16:11 +00:00
SPARC Fix broken tests. 2012-10-02 15:49:34 +00:00
Thumb
Thumb2 Add LLVM support for Swift. 2012-09-29 21:43:49 +00:00
X86 Revert part of r166049 back and enable test case in r166125. 2012-10-17 23:45:54 +00:00
XCore