codegen ADD_PARTS correctly: put the results in the right registers! This
authorChris Lattner <sabre@nondot.org>
Tue, 30 Aug 2005 17:40:13 +0000 (17:40 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 30 Aug 2005 17:40:13 +0000 (17:40 +0000)
fixes fhourstones

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23152 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCISelDAGToDAG.cpp

index e7da89316be6d6e971ea414d1226a7e3073a2bc0..85c582c192a35a00ba854baeb89cbfeafeb11cd6 100644 (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];
   }