diff options
author | Venkatraman Govindaraju <venkatra@cs.wisc.edu> | 2013-10-05 00:31:41 +0000 |
---|---|---|
committer | Venkatraman Govindaraju <venkatra@cs.wisc.edu> | 2013-10-05 00:31:41 +0000 |
commit | b648122c5f4dfa651d46c10c39ddf4f2f8cf1170 (patch) | |
tree | b334a6e82e1b796d4d4ae02e1951183e9e0ae93b /lib/Target/Sparc | |
parent | eee74fbbb64e5a4fd3af90611128ded5d759c82f (diff) | |
download | external_llvm-b648122c5f4dfa651d46c10c39ddf4f2f8cf1170.zip external_llvm-b648122c5f4dfa651d46c10c39ddf4f2f8cf1170.tar.gz external_llvm-b648122c5f4dfa651d46c10c39ddf4f2f8cf1170.tar.bz2 |
[Sparc] Respect hasHardQuad parameter correctly when lowering SINT_TO_FP with fp128 operand.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192015 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Sparc')
-rw-r--r-- | lib/Target/Sparc/SparcISelLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/Sparc/SparcISelLowering.cpp b/lib/Target/Sparc/SparcISelLowering.cpp index cdba998..32e0269 100644 --- a/lib/Target/Sparc/SparcISelLowering.cpp +++ b/lib/Target/Sparc/SparcISelLowering.cpp @@ -2046,7 +2046,7 @@ static SDValue LowerSINT_TO_FP(SDValue Op, SelectionDAG &DAG, assert(Op.getOperand(0).getValueType() == MVT::i32); SDValue Tmp = DAG.getNode(ISD::BITCAST, dl, MVT::f32, Op.getOperand(0)); // Convert the int value to FP in an FP register. - if (Op.getValueType() == MVT::f128 && hasHardQuad) + if (Op.getValueType() == MVT::f128 && !hasHardQuad) return TLI.LowerF128Op(Op, DAG, TLI.getLibcallName(RTLIB::SINTTOFP_I32_F128), 1); return DAG.getNode(SPISD::ITOF, dl, Op.getValueType(), Tmp); |