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

Chris Lattner lattner at cs.uiuc.edu
Tue Aug 30 10:14:09 PDT 2005



Changes in directory llvm/lib/Target/PowerPC:

PPC32ISelDAGToDAG.cpp updated: 1.57 -> 1.58
---
Log message:

add operands in the right order, fixing McCat/18-imp with the dag isel


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

 PPC32ISelDAGToDAG.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


Index: llvm/lib/Target/PowerPC/PPC32ISelDAGToDAG.cpp
diff -u llvm/lib/Target/PowerPC/PPC32ISelDAGToDAG.cpp:1.57 llvm/lib/Target/PowerPC/PPC32ISelDAGToDAG.cpp:1.58
--- llvm/lib/Target/PowerPC/PPC32ISelDAGToDAG.cpp:1.57	Mon Aug 29 20:57:02 2005
+++ llvm/lib/Target/PowerPC/PPC32ISelDAGToDAG.cpp	Tue Aug 30 12:13:58 2005
@@ -906,12 +906,12 @@
         break;
       } else if ((signed)Imm < 0 && isPowerOf2_32(-Imm)) {
         SDOperand Op =
-          CurDAG->getTargetNode(PPC::SRAWI, MVT::Flag, MVT::i32,
+          CurDAG->getTargetNode(PPC::SRAWI, MVT::i32, MVT::Flag,
                                 Select(N->getOperand(0)),
                                 getI32Imm(Log2_32(-Imm)));
         SDOperand PT =
-          CurDAG->getTargetNode(PPC::ADDZE, MVT::i32, Op.getValue(1),
-                                Op.getValue(0));
+          CurDAG->getTargetNode(PPC::ADDZE, MVT::i32, Op.getValue(0),
+                                Op.getValue(1));
         CurDAG->SelectNodeTo(N, PPC::NEG, MVT::i32, PT);
         break;
       } else if (Imm) {






More information about the llvm-commits mailing list