fix some serious miscompiles on ia64, alpha, and ppc

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21288 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-04-13 19:53:40 +00:00
parent 51679c430f
commit fd8d389ede

View File

@ -798,7 +798,7 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT,
if (N1.getOpcode() == ISD::SETCC &&
TLI.getSetCCResultContents() == TargetLowering::ZeroOrOneSetCCResult)
if (C2 & 1)
return getNode(ISD::AND, VT, N1.getOperand(1), getConstant(1, VT));
return getNode(ISD::AND, VT, N1, getConstant(1, VT));
else
return getConstant(0, VT);