[Bug target/89581] Unneeded stack alignment on windows x86

gabravier at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Dec 16 23:26:00 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89581

Gabriel Ravier <gabravier at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gabravier at gmail dot com

--- Comment #2 from Gabriel Ravier <gabravier at gmail dot com> ---
I can reproduce this, the code generation seems to have gotten much worse,
here's what I get with -O3 -mavx2 :

f:
  vmovq QWORD PTR [rsp-40], xmm0
  vmovq QWORD PTR [rsp-32], xmm1
  vmovapd xmm5, XMMWORD PTR [rsp-40]
  vmovq QWORD PTR [rsp-24], xmm2
  vmovq QWORD PTR [rsp-16], xmm3
  vaddpd xmm4, xmm5, XMMWORD PTR [rsp-24]
  vmovapd XMMWORD PTR [rsp-40], xmm4
  vmovsd xmm1, QWORD PTR [rsp-32]
  vmovsd xmm0, QWORD PTR [rsp-40]
  ret


More information about the Gcc-bugs mailing list