PR target/70465
commit36bcf8c64a7da335f35c5a39a24b3c934fb10e30
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Jan 2017 08:46:36 +0000 (26 08:46 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Jan 2017 08:46:36 +0000 (26 08:46 +0000)
treee62c3830860aef695c7137e2e8a1f5a8a998734e
parentafd653ccdaf4e2f2dcfb83ce30ab8b064d69beeb
PR target/70465
* reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
emit fld b; fld a; if possible.

* gcc.target/i386/pr70465.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@244921 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/reg-stack.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr70465.c [new file with mode: 0644]