diff options
author | Chris Lattner <sabre@nondot.org> | 2006-01-11 07:14:01 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-01-11 07:14:01 +0000 |
commit | bda559e1158497706a7a44bffc0ca307dd9cad28 (patch) | |
tree | f0f7c0355954d2849e927cd3850b8496b3ca1841 | |
parent | 07917b672d1d193fb18a817442186693b2cb29be (diff) |
Write this pattern in canonical form, allowing more patterns to match.
This implements Regression/CodeGen/SparcV8/xnor.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25209 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/Sparc/SparcInstrInfo.td | 2 | ||||
-rw-r--r-- | lib/Target/SparcV8/SparcV8InstrInfo.td | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/Sparc/SparcInstrInfo.td b/lib/Target/Sparc/SparcInstrInfo.td index 3188de72cd..e3b2e13a8f 100644 --- a/lib/Target/Sparc/SparcInstrInfo.td +++ b/lib/Target/Sparc/SparcInstrInfo.td @@ -335,7 +335,7 @@ def XORri : F3_2<2, 0b000011, def XNORrr : F3_1<2, 0b000111, (ops IntRegs:$dst, IntRegs:$b, IntRegs:$c), "xnor $b, $c, $dst", - [(set IntRegs:$dst, (xor IntRegs:$b, (not IntRegs:$c)))]>; + [(set IntRegs:$dst, (not (xor IntRegs:$b, IntRegs:$c)))]>; def XNORri : F3_2<2, 0b000111, (ops IntRegs:$dst, IntRegs:$b, i32imm:$c), "xnor $b, $c, $dst", []>; diff --git a/lib/Target/SparcV8/SparcV8InstrInfo.td b/lib/Target/SparcV8/SparcV8InstrInfo.td index 3188de72cd..e3b2e13a8f 100644 --- a/lib/Target/SparcV8/SparcV8InstrInfo.td +++ b/lib/Target/SparcV8/SparcV8InstrInfo.td @@ -335,7 +335,7 @@ def XORri : F3_2<2, 0b000011, def XNORrr : F3_1<2, 0b000111, (ops IntRegs:$dst, IntRegs:$b, IntRegs:$c), "xnor $b, $c, $dst", - [(set IntRegs:$dst, (xor IntRegs:$b, (not IntRegs:$c)))]>; + [(set IntRegs:$dst, (not (xor IntRegs:$b, IntRegs:$c)))]>; def XNORri : F3_2<2, 0b000111, (ops IntRegs:$dst, IntRegs:$b, i32imm:$c), "xnor $b, $c, $dst", []>; |