mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-26 09:18:56 +00:00
Fix the completely broken FP constant folds for setcc's.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19651 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -389,10 +389,10 @@ SDOperand SelectionDAG::getSetCC(ISD::CondCode Cond, SDOperand N1,
|
|||||||
default: break; // FIXME: Implement the rest of these!
|
default: break; // FIXME: Implement the rest of these!
|
||||||
case ISD::SETEQ: return getConstant(C1 == C2, MVT::i1);
|
case ISD::SETEQ: return getConstant(C1 == C2, MVT::i1);
|
||||||
case ISD::SETNE: return getConstant(C1 != C2, MVT::i1);
|
case ISD::SETNE: return getConstant(C1 != C2, MVT::i1);
|
||||||
case ISD::SETLT: return getConstant((int64_t)C1 < (int64_t)C2, MVT::i1);
|
case ISD::SETLT: return getConstant(C1 < C2, MVT::i1);
|
||||||
case ISD::SETGT: return getConstant((int64_t)C1 < (int64_t)C2, MVT::i1);
|
case ISD::SETGT: return getConstant(C1 > C2, MVT::i1);
|
||||||
case ISD::SETLE: return getConstant((int64_t)C1 < (int64_t)C2, MVT::i1);
|
case ISD::SETLE: return getConstant(C1 <= C2, MVT::i1);
|
||||||
case ISD::SETGE: return getConstant((int64_t)C1 < (int64_t)C2, MVT::i1);
|
case ISD::SETGE: return getConstant(C1 > C2, MVT::i1);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Ensure that the constant occurs on the RHS.
|
// Ensure that the constant occurs on the RHS.
|
||||||
|
Reference in New Issue
Block a user