http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43546
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #14 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 32114 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32114&action=edit gcc49-pr43546.patch This untested patch fixes this for me, the dynamic stack realignment code is then aware of the DFmode that might need to be possibly spilled. The cost patch isn't wrong either, but at that level we really can't determine if the constant load will be zero cost (when we will attempt to load it into a i387 stack register) or more expensive (if it is loaded into a SSE register).