[llvm-commits] CVS: llvm/lib/Target/IA64/IA64ISelDAGToDAG.cpp IA64InstrInfo.td

Duraid Madina duraid at octopus.com.au
Thu Jan 19 19:40:37 PST 2006



Changes in directory llvm/lib/Target/IA64:

IA64ISelDAGToDAG.cpp updated: 1.25 -> 1.26
IA64InstrInfo.td updated: 1.40 -> 1.41
---
Log message:


fix storing bools! eek!



---
Diffs of the changes:  (+5 -8)

 IA64ISelDAGToDAG.cpp |    4 ++--
 IA64InstrInfo.td     |    9 +++------
 2 files changed, 5 insertions(+), 8 deletions(-)


Index: llvm/lib/Target/IA64/IA64ISelDAGToDAG.cpp
diff -u llvm/lib/Target/IA64/IA64ISelDAGToDAG.cpp:1.25 llvm/lib/Target/IA64/IA64ISelDAGToDAG.cpp:1.26
--- llvm/lib/Target/IA64/IA64ISelDAGToDAG.cpp:1.25	Mon Jan 16 21:09:48 2006
+++ llvm/lib/Target/IA64/IA64ISelDAGToDAG.cpp	Thu Jan 19 21:40:25 2006
@@ -542,9 +542,9 @@
 	// first load zero!
 	SDOperand Initial = CurDAG->getCopyFromReg(Chain, IA64::r0, MVT::i64);
 	Chain = Initial.getValue(1);
-	// then load 1 iff the predicate to store is 1
+	// then load 1 into the same reg iff the predicate to store is 1
         SDOperand Tmp = 
-          CurDAG->getTargetNode(IA64::PADDS, MVT::i64, Initial,
+          CurDAG->getTargetNode(IA64::TPCADDS, MVT::i64, Initial,
                                 CurDAG->getConstant(1, MVT::i64),
                                 Select(N->getOperand(1)));
         return CurDAG->SelectNodeTo(N, Opc, MVT::Other, Address, Tmp, Chain);


Index: llvm/lib/Target/IA64/IA64InstrInfo.td
diff -u llvm/lib/Target/IA64/IA64InstrInfo.td:1.40 llvm/lib/Target/IA64/IA64InstrInfo.td:1.41
--- llvm/lib/Target/IA64/IA64InstrInfo.td:1.40	Thu Jan 19 09:18:56 2006
+++ llvm/lib/Target/IA64/IA64InstrInfo.td	Thu Jan 19 21:40:25 2006
@@ -113,10 +113,6 @@
            "adds $dst = $imm, $src1;;",
 	   [(set GR:$dst, (add GR:$src1, immSExt14:$imm))]>;
  
-def PADDS: AForm_DAG<0x03, 0x0b, (ops GR:$dst, GR:$src1, s14imm:$imm, PR:$qp),
-           "($qp) adds $dst = $imm, $src1;;",
-	   []>;
-
 def MOVL : AForm_DAG<0x03, 0x0b, (ops GR:$dst, s64imm:$imm),
            "movl $dst = $imm;;",
 	   [(set GR:$dst, imm64:$imm)]>;
@@ -142,9 +138,10 @@
 def TPCADDIMM22 : AForm<0x03, 0x0b,
   (ops GR:$dst, GR:$src1, s22imm:$imm, PR:$qp),
     "($qp) add $dst = $imm, $dst;;">;
-def TPCADDS : AForm<0x03, 0x0b,
+def TPCADDS : AForm_DAG<0x03, 0x0b,
   (ops GR:$dst, GR:$src1, s14imm:$imm, PR:$qp),
-    "($qp) adds $dst = $imm, $dst;;">;
+    "($qp) adds $dst = $imm, $dst;;",
+    []>;
 def TPCMPIMM8NE : AForm<0x03, 0x0b,
   (ops PR:$dst, PR:$src1, s22imm:$imm, GR:$src2, PR:$qp),
     "($qp) cmp.ne $dst , p0 = $imm, $src2;;">;






More information about the llvm-commits mailing list