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

Duraid Madina duraid at octopus.com.au
Thu Jan 19 07:19:08 PST 2006



Changes in directory llvm/lib/Target/IA64:

IA64InstrInfo.td updated: 1.39 -> 1.40
---
Log message:


fix boolean XOR (which fixes up comparisons..)



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

 IA64InstrInfo.td |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)


Index: llvm/lib/Target/IA64/IA64InstrInfo.td
diff -u llvm/lib/Target/IA64/IA64InstrInfo.td:1.39 llvm/lib/Target/IA64/IA64InstrInfo.td:1.40
--- llvm/lib/Target/IA64/IA64InstrInfo.td:1.39	Mon Jan 16 20:04:52 2006
+++ llvm/lib/Target/IA64/IA64InstrInfo.td	Thu Jan 19 09:18:56 2006
@@ -142,6 +142,9 @@
 def TPCADDIMM22 : AForm<0x03, 0x0b,
   (ops GR:$dst, GR:$src1, s22imm:$imm, PR:$qp),
     "($qp) add $dst = $imm, $dst;;">;
+def TPCADDS : AForm<0x03, 0x0b,
+  (ops GR:$dst, GR:$src1, s14imm:$imm, PR:$qp),
+    "($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;;">;
@@ -377,7 +380,7 @@
   
 def bXOR  : Pat<(xor PR:$src1, PR:$src2),
           (TPCMPIMM8NE (PCMPEQUNCR0R0 PR:$src2), 1,
-	               (PADDS r0, 1, PR:$src2),
+	               (TPCADDS (ADDS r0, 0), 1, PR:$src2),
                         PR:$src1)>;
 
 def XOR   : AForm_DAG<0x03, 0x0b, (ops GR:$dst, GR:$src1, GR:$src2),






More information about the llvm-commits mailing list