From fc786862a59ee83eb6ff4703a4124043ab488825 Mon Sep 17 00:00:00 2001 From: Roger Sayle Date: Thu, 23 Jul 2020 18:48:54 +0100 Subject: [PATCH] Resolve regression rtl-optimization/96298. Sorry for the breakage. 2020-07-23 Roger Sayle gcc/ChangeLog PR rtl-optimization/96298 * simplify-rtx.c (simplify_binary_operation_1) [XOR]: Xor doesn't distribute over xor, so (a^b)^(c^b) is not the same as (a^c)^b. --- gcc/simplify-rtx.c | 1 - 1 file changed, 1 deletion(-) diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c index e631da48477c..d2211686accf 100644 --- a/gcc/simplify-rtx.c +++ b/gcc/simplify-rtx.c @@ -3372,7 +3372,6 @@ simplify_binary_operation_1 (enum rtx_code code, machine_mode mode, /* Convert (xor (and A C) (and B C)) into (and (xor A B) C). */ if (GET_CODE (op0) == GET_CODE (op1) && (GET_CODE (op0) == AND - || GET_CODE (op0) == XOR || GET_CODE (op0) == LSHIFTRT || GET_CODE (op0) == ASHIFTRT || GET_CODE (op0) == ASHIFT -- 2.47.2