https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97473
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to Nate Eldredge from comment #0) > > On x86_64-linux-gnu, gcc generates instructions to align the stack and place > the spilled copy of x at an aligned address, and the testcase passes there. > (Perhaps this was implemented to support AVX?) With -m32 it copies x from > its original unaligned position on the stack into an aligned stack slot. > When we enabled AVX in GCC, we updated middle-end to properly align the shack with backend hooks. A backend can properly align the stack if it implements similar hooks for stack re-alignment.