summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDuraid Madina <duraid@octopus.com.au>2006-01-20 03:40:25 +0000
committerDuraid Madina <duraid@octopus.com.au>2006-01-20 03:40:25 +0000
commit9a8fb206895170ab01de1fc9a774c5b5d625b053 (patch)
treef5165e95cdc43ac121c6f8e1a2296f0b2af17acb /llvm/lib
parent855d31f8473a9e4b4c57140cbd2e2e1819573b23 (diff)
downloadbcm5719-llvm-9a8fb206895170ab01de1fc9a774c5b5d625b053.tar.gz
bcm5719-llvm-9a8fb206895170ab01de1fc9a774c5b5d625b053.zip
fix storing bools! eek!
llvm-svn: 25476
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/IA64/IA64ISelDAGToDAG.cpp4
-rw-r--r--llvm/lib/Target/IA64/IA64InstrInfo.td9
2 files changed, 5 insertions, 8 deletions
diff --git a/llvm/lib/Target/IA64/IA64ISelDAGToDAG.cpp b/llvm/lib/Target/IA64/IA64ISelDAGToDAG.cpp
index de3c1775cd6..18637c26eae 100644
--- a/llvm/lib/Target/IA64/IA64ISelDAGToDAG.cpp
+++ b/llvm/lib/Target/IA64/IA64ISelDAGToDAG.cpp
@@ -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);
diff --git a/llvm/lib/Target/IA64/IA64InstrInfo.td b/llvm/lib/Target/IA64/IA64InstrInfo.td
index 0eacfafbb46..315cd97aa3c 100644
--- a/llvm/lib/Target/IA64/IA64InstrInfo.td
+++ b/llvm/lib/Target/IA64/IA64InstrInfo.td
@@ -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;;">;
OpenPOWER on IntegriCloud