codegen ADD_PARTS correctly: put the results in the right registers! This

fixes fhourstones


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23152 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-08-30 17:40:13 +00:00
parent cc0675a4be
commit 14b86c72a2

View File

@ -1208,8 +1208,8 @@ SDOperand PPC32DAGToDAGISel::Select(SDOperand Op) {
else
ResultHi = CurDAG->getTargetNode(PPC::ADDE, MVT::i32, LHSH,
Select(N->getOperand(3)), CarryFromLo);
Result.push_back(ResultHi);
Result.push_back(CarryFromLo.getValue(0));
Result.push_back(ResultHi);
CurDAG->ReplaceAllUsesWith(N, Result);
return Result[Op.ResNo];
}