i386.md (sibcall_memory): Check that register with callee address is not also used...
authorAlexander Monakov <amonakov@ispras.ru>
Thu, 14 May 2015 17:43:28 +0000 (20:43 +0300)
committerAlexander Monakov <amonakov@gcc.gnu.org>
Thu, 14 May 2015 17:43:28 +0000 (20:43 +0300)
commitf226d22967576772030669a06d5bea73a5802d2f
treeb0c12b8e68653fc976b3e4811c08b59a36b232d9
parentaea417d748969d87d4973a34e055f40ce4a1d739
i386.md (sibcall_memory): Check that register with callee address is not also used as one of the arguments...

* config/i386/i386.md (sibcall_memory): Check that register with
callee address is not also used as one of the arguments, instead
of checking that it is not live after the sibcall.
(sibcall_pop_memory): Ditto.
(sibcall_value_memory): Ditto.
(sibcall_value_pop_memory): Ditto.
testsuite:
* gcc.target/i386/sibcall-7.c: New test.
* gcc.target/i386/sibcall-8.c: New test.

From-SVN: r223201
gcc/ChangeLog
gcc/config/i386/i386.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/sibcall-7.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/sibcall-8.c [new file with mode: 0644]