[Bug tree-optimization/123645] [13 Regression] `a!=0 ? 0 : __builtin_bswap(a)` (popcount too) is producing wrong code and not 0 since r12-2657 (and r9-1682)
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Mar 14 03:44:56 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123645
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |14.3.1
Summary|[13/14 Regression] `a!=0 ? |[13 Regression] `a!=0 ? 0 :
|0 : __builtin_bswap(a)` |__builtin_bswap(a)`
|(popcount too) is producing |(popcount too) is producing
|wrong code and not 0 since |wrong code and not 0 since
|r12-2657 (and r9-1682) |r12-2657 (and r9-1682)
--- Comment #15 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed also for GCC 14.4.0
More information about the Gcc-bugs
mailing list