]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
MATCH: Fix comment for `(zero_one ==/!= 0) ? y : z <op> y` patterns
authorAndrew Pinski <apinski@marvell.com>
Wed, 7 Jun 2023 13:47:42 +0000 (06:47 -0700)
committerAndrew Pinski <apinski@marvell.com>
Wed, 7 Jun 2023 21:29:46 +0000 (14:29 -0700)
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 <op> y` patterns.

gcc/match.pd

index fd32389decfb205b2ff17c9e38d1ecf723115573..4ad037d641a9650a8b315e15c34b3e6c0335d06c 100644 (file)
@@ -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 <op> y -> (-(typeof(y))(x & 0x1) & z) <op> y */
+/* (zero_one == 0) ? y : z <op> y -> (-(typeof(y))zero_one & z) <op> 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 <op> y : y -> (-(typeof(y))(x & 0x1) & z) <op> y */
+/* (zero_one != 0) ? z <op> y : y -> (-(typeof(y))zero_one & z) <op> y */
 (for op (bit_xor bit_ior)
  (simplify
   (cond (ne zero_one_valued_p@0