https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114688
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114591#c13 is talking about this exact thing ... So this might be expected for x86_64.