llvm.org GIT mirror llvm / 9845eb5
More soft fp fixes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49016 91177308-0d34-0410-b5e6-96231b3b80d8 Evan Cheng 11 years ago
2 changed file(s) with 5 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
53685368 MVT::ValueType SourceVT = Source.getValueType();
53695369 bool ExpandSource = getTypeAction(SourceVT) == Expand;
53705370
5371 if (!isSigned) {
5371 // Special case for i32 source to take advantage of UINTTOFP_I32_F32, etc.
5372 if (!isSigned && SourceVT != MVT::i32) {
53725373 // The integer value loaded will be incorrectly if the 'sign bit' of the
53735374 // incoming integer is set. To handle this, we dynamically test to see if
53745375 // it is set, and, if so, add a fudge factor.
1515 ; RUN: grep fixunssfsi %t
1616 ; RUN: grep fixdfsi %t
1717 ; RUN: grep fixunsdfsi %t
18 ; RUN: grep floatdisf %t
18 ; RUN: grep floatsisf %t
1919 ; RUN: grep floatsidf %t
20 ; RUN: grep floatunsisf %t
21 ; RUN: grep floatunsidf %t
2022 ; RUN: llvm-as < %s | llc -march=thumb
2123
2224 define float @f1(double %x) {