https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97571
--- Comment #3 from anlauf at gcc dot gnu.org --- (In reply to Dominique d'Humieres from comment #2) > > So the new compiler does compile-time simplification already at -O0, > > while older versions maybe not. > > Is this expected? Depends. I'd expect constant expressions like this to be simplified. There could be (artificial) limits when to give up. The tree dump does not really give me the impression nor enough information to know that this happens with previous version of the compiler at this stage.