https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90248
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Yes it does look like I messed up. I copied an optimization from LLVM so I think they also mess up a similar way (though differently).