[AArch64] Change EON pattern to match more often.
[oota-llvm.git] / lib / Target / AArch64 / AArch64InstrInfo.td
index a30b78f6e2964035f970ec89564ad0e5165da885..867b95b566a63d4cf7aec43d54d0f43aacc8f1b8 100644 (file)
@@ -841,7 +841,7 @@ defm AND  : LogicalReg<0b00, 0, "and", and>;
 defm BIC  : LogicalReg<0b00, 1, "bic",
                        BinOpFrag<(and node:$LHS, (not node:$RHS))>>;
 defm EON  : LogicalReg<0b10, 1, "eon",
-                       BinOpFrag<(xor node:$LHS, (not node:$RHS))>>;
+                       BinOpFrag<(not (xor node:$LHS, node:$RHS))>>;
 defm EOR  : LogicalReg<0b10, 0, "eor", xor>;
 defm ORN  : LogicalReg<0b01, 1, "orn",
                        BinOpFrag<(or node:$LHS, (not node:$RHS))>>;