From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1314) id 384143858C1F; Wed, 7 Jun 2023 21:30:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 384143858C1F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1686173416; bh=EDEZNLfbVmx3JPUP0qoiW61suy2e4mdg4r4Zjt2KQf4=; h=From:To:Subject:Date:From; b=vFpGM8LrBsRSFD5g8xZnXRmi9BoyMf2LLjSb/OyhSEKFNQ9CPkMZamnTDIQWyKrDw B6fobf3zgu2JDcIFLm9eF3CO+Ps4Y4Y7OHYn0/bxuyXbD1sWQg9bLrXwjwiwoDaHWP IFufoea+wyzRGh+lNPZecLRMs5igqE2RvjRAamlg= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Andrew Pinski To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-1623] MATCH: Fix comment for `(zero_one ==/!= 0) ? y : z y` patterns X-Act-Checkin: gcc X-Git-Author: Andrew Pinski X-Git-Refname: refs/heads/trunk X-Git-Oldrev: 99bfdb072e67fa3fe294d86b4b2a9f686f8d9705 X-Git-Newrev: 941209f9da23b4e0f338ed970012fcfa7b20e528 Message-Id: <20230607213016.384143858C1F@sourceware.org> Date: Wed, 7 Jun 2023 21:30:16 +0000 (GMT) List-Id: https://gcc.gnu.org/g:941209f9da23b4e0f338ed970012fcfa7b20e528 commit r14-1623-g941209f9da23b4e0f338ed970012fcfa7b20e528 Author: Andrew Pinski Date: Wed Jun 7 06:47:42 2023 -0700 MATCH: Fix comment for `(zero_one ==/!= 0) ? y : z y` patterns The patterns match more than just `a & 1` so change the comment for these two patterns to say that. Committed as obvious after a bootstrap/test on x86_64-linux-gnu. gcc/ChangeLog: * match.pd: Fix comment for the `(zero_one ==/!= 0) ? y : z y` patterns. Diff: --- gcc/match.pd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/match.pd b/gcc/match.pd index fd32389decf..4ad037d641a 100644 --- a/gcc/match.pd +++ b/gcc/match.pd @@ -3685,7 +3685,7 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT) (cond (le @0 integer_zerop@1) (negate@2 @0) integer_zerop@1) (max @2 @1)) -/* ((x & 0x1) == 0) ? y : z y -> (-(typeof(y))(x & 0x1) & z) y */ +/* (zero_one == 0) ? y : z y -> (-(typeof(y))zero_one & z) y */ (for op (bit_xor bit_ior) (simplify (cond (eq zero_one_valued_p@0 @@ -3697,7 +3697,7 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT) && (INTEGRAL_TYPE_P (TREE_TYPE (@0)))) (op (bit_and (negate (convert:type @0)) @2) @1)))) -/* ((x & 0x1) == 0) ? z y : y -> (-(typeof(y))(x & 0x1) & z) y */ +/* (zero_one != 0) ? z y : y -> (-(typeof(y))zero_one & z) y */ (for op (bit_xor bit_ior) (simplify (cond (ne zero_one_valued_p@0