llvm-6502/lib
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
..
Analysis Temporarily revert the TargetTransform changes. 2012-10-18 05:43:52 +00:00
Archive Mark checkSignature const, and in turn stop casting away const from 2012-09-05 22:09:23 +00:00
AsmParser Move the Attributes::Builder outside of the Attributes class and into its own class named AttrBuilder. No functionality change. 2012-10-15 20:35:56 +00:00
Bitcode Move the Attributes::Builder outside of the Attributes class and into its own class named AttrBuilder. No functionality change. 2012-10-15 20:35:56 +00:00
CodeGen Temporarily revert the TargetTransform changes. 2012-10-18 05:43:52 +00:00
DebugInfo Use a typedef to reduce some typing and reformat code accordingly. 2012-10-16 23:46:25 +00:00
ExecutionEngine Resubmit the changes to llvm core to update the functions to support different pointer sizes on a per address space basis. 2012-10-15 16:24:29 +00:00
Linker Move the "findUsedStructTypes" functionality outside of the Module class. 2012-08-03 00:30:35 +00:00
MC [ms-inline asm] Add the helper function, isParseringInlineAsm(). To be used in a future commit. 2012-10-16 20:16:20 +00:00
Object Cosmetic changes 2012-10-10 01:45:52 +00:00
Support Support: Don't remove special files on signals. 2012-10-17 16:30:54 +00:00
TableGen tblgen: Compile TableGen without RTTI. 2012-10-10 20:27:18 +00:00
Target This patch fixes failures in the SingleSource/Regression/C/uint64_to_float 2012-10-18 13:16:11 +00:00
Transforms Refactor insert and extract of sub-integers into static helpers that 2012-10-18 09:56:08 +00:00
VMCore Temporarily revert the TargetTransform changes. 2012-10-18 05:43:52 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile