https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108626
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I think what clang did is an invalid transformation. You can use -fmerge-all-constants to get this same transformation in gcc.
pinskia at gcc dot gnu.org via Gcc-bugs Wed, 01 Feb 2023 08:29:09 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108626
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I think what clang did is an invalid transformation. You can use -fmerge-all-constants to get this same transformation in gcc.