[PATCH] Allow indirect call via GOT for 64-bit Pmode x32
authorH.J. Lu <hongjiu.lu@intel.com>
Wed, 23 Dec 2015 09:49:28 +0000 (09:49 +0000)
committerUros Bizjak <uros@gcc.gnu.org>
Wed, 23 Dec 2015 09:49:28 +0000 (10:49 +0100)
commitfa87d16dcf766d1754837e71d5a1abc97a9e0c8b
treefc9c5459806e88a34d0c675bdf00a8da5ccebb46
parentfc9ca1a0a1632f1cd0884bbc434b00e8be09a4b5
[PATCH] Allow indirect call via GOT for 64-bit Pmode x32

From: H.J. Lu  <hongjiu.lu@intel.com>

Since Pmode is 64-bit with -maddress-mode=long for x32, indirect call
via GOT slot doesn't need zero_extend.  This patch enables indirect call
via GOT for x32 with 64-bit Pmode.

gcc/

PR target/66232
* config/i386/constraints.md (Bs): Allow GOT slot for x32 with
64-bit Pmode.
(Bw): Likewise.
(Bz): Likewise.
* config/i386/predicates.md (call_insn_operand): Likewise.
(sibcall_insn_operand): Likewise.

gcc/testsuite/

PR target/66232
* gcc.target/i386/pr66232-10.c: New test.
* gcc.target/i386/pr66232-11.c: Likewise.
* gcc.target/i386/pr66232-12.c: Likewise.
* gcc.target/i386/pr66232-13.c: Likewise.

From-SVN: r231923
gcc/ChangeLog
gcc/config/i386/constraints.md
gcc/config/i386/predicates.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr66232-10.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr66232-11.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr66232-12.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr66232-13.c [new file with mode: 0644]