https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109702
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Andrew Pinski <pins...@gcc.gnu.org>: https://gcc.gnu.org/g:8702ab1456eee07d07ac1a8bc005c690cf6dbcf0 commit r14-413-g8702ab1456eee07d07ac1a8bc005c690cf6dbcf0 Author: Andrew Pinski <apin...@marvell.com> Date: Tue May 2 11:03:02 2023 -0700 tree-optimization: [PR109702] MATCH: Fix a ? func(a) : N patterns I accidently messed up these patterns so the comparison against 0 and the arguments was not matching up when they need to be. I committed this as obvious after a bootstrap/test on x86_64-linux-gnu PR tree-optimization/109702 gcc/ChangeLog: * match.pd: Fix "a != 0 ? FUNC(a) : CST" patterns for FUNC of POPCOUNT BSWAP FFS PARITY CLZ and CTZ. gcc/testsuite/ChangeLog: * gcc.dg/tree-ssa/phi-opt-25b.c: New test.