[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPC32ISelDAGToDAG.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Aug 30 10:43:12 PDT 2005



Changes in directory llvm/lib/Target/PowerPC:

PPC32ISelDAGToDAG.cpp updated: 1.59 -> 1.60
---
Log message:

Fix a problem Nate found where we swapped the operands of SHL/SHR_PARTS.  This
fixes fourinarow


---
Diffs of the changes:  (+4 -4)

 PPC32ISelDAGToDAG.cpp |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)


Index: llvm/lib/Target/PowerPC/PPC32ISelDAGToDAG.cpp
diff -u llvm/lib/Target/PowerPC/PPC32ISelDAGToDAG.cpp:1.59 llvm/lib/Target/PowerPC/PPC32ISelDAGToDAG.cpp:1.60
--- llvm/lib/Target/PowerPC/PPC32ISelDAGToDAG.cpp:1.59	Tue Aug 30 12:40:13 2005
+++ llvm/lib/Target/PowerPC/PPC32ISelDAGToDAG.cpp	Tue Aug 30 12:42:59 2005
@@ -1228,8 +1228,8 @@
     return Result[Op.ResNo];
   }
   case ISD::SHL_PARTS: {
-    SDOperand HI = Select(N->getOperand(0));
-    SDOperand LO = Select(N->getOperand(1));
+    SDOperand LO = Select(N->getOperand(0));
+    SDOperand HI = Select(N->getOperand(1));
     SDOperand SH = Select(N->getOperand(2));
     SDOperand SH_LO_R = CurDAG->getTargetNode(PPC::SUBFIC, MVT::i32, MVT::Flag,
                                               SH, getI32Imm(32));
@@ -1247,8 +1247,8 @@
     return Result[Op.ResNo];
   }
   case ISD::SRL_PARTS: {
-    SDOperand HI = Select(N->getOperand(0));
-    SDOperand LO = Select(N->getOperand(1));
+    SDOperand LO = Select(N->getOperand(0));
+    SDOperand HI = Select(N->getOperand(1));
     SDOperand SH = Select(N->getOperand(2));
     SDOperand SH_HI_L = CurDAG->getTargetNode(PPC::SUBFIC, MVT::i32, MVT::Flag,
                                               SH, getI32Imm(32));






More information about the llvm-commits mailing list