diff options
author | Venkatraman Govindaraju <venkatra@cs.wisc.edu> | 2013-09-04 15:15:20 +0000 |
---|---|---|
committer | Venkatraman Govindaraju <venkatra@cs.wisc.edu> | 2013-09-04 15:15:20 +0000 |
commit | bf34f346420dbcdb3f9376967bde701682471a79 (patch) | |
tree | a421b07dadfeb3fd221f7c10dace2013b61a11c3 /lib | |
parent | 6947f10ec467eb89d606bc96450c35864e1b4f10 (diff) | |
download | external_llvm-bf34f346420dbcdb3f9376967bde701682471a79.zip external_llvm-bf34f346420dbcdb3f9376967bde701682471a79.tar.gz external_llvm-bf34f346420dbcdb3f9376967bde701682471a79.tar.bz2 |
[Sparc] Fix an assertion failure while lowering fcmp on long double.
This assertion is triggered because an integer constant is created with wrong
type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189948 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-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 3250537..e646521 100644 --- a/lib/Target/Sparc/SparcISelLowering.cpp +++ b/lib/Target/Sparc/SparcISelLowering.cpp @@ -1816,7 +1816,7 @@ SparcTargetLowering::LowerF128Compare(SDValue LHS, SDValue RHS, return DAG.getNode(SPISD::CMPICC, DL, MVT::Glue, Result, RHS); } case SPCC::FCC_ULE: { - SDValue RHS = DAG.getTargetConstant(2, LHS.getValueType()); + SDValue RHS = DAG.getTargetConstant(2, Result.getValueType()); SPCC = SPCC::ICC_NE; return DAG.getNode(SPISD::CMPICC, DL, MVT::Glue, Result, RHS); } |