re PR target/70465 (Poor code for x87 asm)
authorJakub Jelinek <jakub@redhat.com>
Wed, 22 Feb 2017 17:17:17 +0000 (18:17 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 22 Feb 2017 17:17:17 +0000 (18:17 +0100)
commit888c705092d00dc3101d00701367f7c9a2c449cd
tree1eea20ef1542e6beef457d80e3db01e9f8e09c54
parent6d3daa1afb14de9fe828fa26e2cb2762a90247b0
re PR target/70465 (Poor code for x87 asm)

PR target/70465
* reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
elimination by swapping fld*.

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

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