llvm.org GIT mirror llvm / 581d1ec
Merging r228765: ------------------------------------------------------------------------ r228765 | petarj | 2015-02-10 23:30:14 +0000 (Tue, 10 Feb 2015) | 12 lines Fix makeLibCall argument (signed) in SoftenFloatRes_XINT_TO_FP function The isSigned argument of makeLibCall function was hard-coded to false (unsigned). This caused zero extension on MIPS64 soft float. As the result SingleSource/Benchmarks/Stanford/FloatMM test and SingleSource/UnitTests/2005-07-17-INT-To-FP test failed. The solution was to use the proper argument. Patch by Strahinja Petrovic. Differential Revision: http://reviews.llvm.org/D7292 ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_36@235972 91177308-0d34-0410-b5e6-96231b3b80d8 Daniel Sanders 5 years ago
2 changed file(s) with 16 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
657657 NVT, N->getOperand(0));
658658 return TLI.makeLibCall(DAG, LC,
659659 TLI.getTypeToTransformTo(*DAG.getContext(), RVT),
660 &Op, 1, false, dl).first;
660 &Op, 1, Signed, dl).first;
661661 }
662662
663663
0 ; RUN: llc -march=mips64 -mcpu=mips64r2 -soft-float -O0 < %s | FileCheck %s
1
2
3 define double @foo() #0 {
4 entry:
5 %x = alloca i32, align 4
6 store volatile i32 -32, i32* %x, align 4
7 %0 = load volatile i32* %x, align 4
8 %conv = sitofp i32 %0 to double
9 ret double %conv
10
11 ; CHECK-NOT: dsll
12 ; CHECK-NOT: dsrl
13
14 }