https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70750
--- Comment #7 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> --- Author: hjl Date: Wed Apr 27 13:35:03 2016 New Revision: 235509 URL: https://gcc.gnu.org/viewcvs?rev=235509&root=gcc&view=rev Log: X86: Fix a typo in call_insn_operand r231923 has ;; Test for a valid operand for a call instruction. ;; Allow constant call address operands in Pmode only. (define_special_predicate "call_insn_operand" (ior (match_test "constant_call_address_operand (op, mode == VOIDmode ? mode : Pmode)") (match_operand 0 "call_register_no_elim_operand") - (and (not (match_test "TARGET_X32")) - (match_operand 0 "memory_operand")))) + (ior (and (not (match_test "TARGET_X32")) + (match_operand 0 "sibcall_memory_operand")) ^^^^^^^^^^^^^^^^^^^^^^^ A typo. + (and (match_test "TARGET_X32 && Pmode == DImode") + (match_operand 0 "GOT_memory_operand"))))) "sibcall_memory_operand" should be "memory_operand". gcc/ Backported from mainline PR target/70750 * config/i386/predicates.md (call_insn_operand): Replace sibcall_memory_operand with memory_operand. gcc/testsuite/ Backported from mainline PR target/70750 * gcc.target/i386/pr70750-1.c: New test. * gcc.target/i386/pr70750-2.c: Likewise. Added: branches/gcc-6-branch/gcc/testsuite/gcc.target/i386/pr70750-1.c branches/gcc-6-branch/gcc/testsuite/gcc.target/i386/pr70750-2.c Modified: branches/gcc-6-branch/gcc/ChangeLog branches/gcc-6-branch/gcc/config/i386/predicates.md branches/gcc-6-branch/gcc/testsuite/ChangeLog