From 12f1bea6e2cf388454fd065b664f29bb38b22721 Mon Sep 17 00:00:00 2001 From: Duraid Madina Date: Thu, 19 Jan 2006 15:18:56 +0000 Subject: [PATCH] fix boolean XOR (which fixes up comparisons..) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25462 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/IA64/IA64InstrInfo.td | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/Target/IA64/IA64InstrInfo.td b/lib/Target/IA64/IA64InstrInfo.td index 3d527206560..0eacfafbb46 100644 --- a/lib/Target/IA64/IA64InstrInfo.td +++ b/lib/Target/IA64/IA64InstrInfo.td @@ -142,6 +142,9 @@ 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, + (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 bAND : Pat<(and PR:$src1, PR:$src2), 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), -- 2.34.1