re PR target/70465 (Poor code for x87 asm)
authorJakub Jelinek <jakub@redhat.com>
Thu, 26 Jan 2017 08:46:36 +0000 (09:46 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 26 Jan 2017 08:46:36 +0000 (09:46 +0100)
commit1a27fab1aded9fe71ecac0108f7dcf4ebf17637e
treee62c3830860aef695c7137e2e8a1f5a8a998734e
parente6d55103c3cf917a0305628619784808e1abf096
re PR target/70465 (Poor code for x87 asm)

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.

From-SVN: r244921
gcc/ChangeLog
gcc/reg-stack.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr70465.c [new file with mode: 0644]