fix storing bools! eek!
authorDuraid Madina <duraid@octopus.com.au>
Fri, 20 Jan 2006 03:40:25 +0000 (03:40 +0000)
committerDuraid Madina <duraid@octopus.com.au>
Fri, 20 Jan 2006 03:40:25 +0000 (03:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25476 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/IA64/IA64ISelDAGToDAG.cpp
lib/Target/IA64/IA64InstrInfo.td

index de3c1775cd6066d8cadc191302c9f721d3211781..18637c26eaeaeee12e0f3a4c8f604c9da484694e 100644 (file)
@@ -542,9 +542,9 @@ SDOperand IA64DAGToDAGISel::Select(SDOperand Op) {
        // 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 0eacfafbb46884c0c0a7abcaf4a27776992354e5..315cd97aa3cea8b52ef1ee62ab08656018faa56f 100644 (file)
@@ -113,10 +113,6 @@ def ADDS : AForm_DAG<0x03, 0x0b, (ops GR:$dst, GR:$src1, s14imm:$imm),
            "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 @@ let isTwoAddress = 1 in {
 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;;">;