https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108934
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- r12-7240-g2801f23fb82a5e (aka PR 104522) is what changed the behavior but I am not 100% sure the resulting code in GCC 11 was correct ...