From: Takayuki 'January June' Suwa Date: Thu, 23 Oct 2025 08:06:08 +0000 (+0900) Subject: xtensa: Remove redundant use of 'n'-constraint for call insns X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=915d2ecffecf7eaf9f14a46aca322326e2882a60;p=thirdparty%2Fgcc.git xtensa: Remove redundant use of 'n'-constraint for call insns Because 'i'-constraint clearly includes 'n'. gcc/ChangeLog: * config/xtensa/xtensa.md (call_internal, call_value_internal, sibcall_internal, sibcall_value_internal): Remove 'n'-constraint. --- diff --git a/gcc/config/xtensa/xtensa.md b/gcc/config/xtensa/xtensa.md index 05bafdea23d..374288df708 100644 --- a/gcc/config/xtensa/xtensa.md +++ b/gcc/config/xtensa/xtensa.md @@ -2516,7 +2516,7 @@ }) (define_insn "call_internal" - [(call (mem (match_operand:SI 0 "call_insn_operand" "nir")) + [(call (mem (match_operand:SI 0 "call_insn_operand" "ir")) (match_operand 1 "" ""))] "!SIBLING_CALL_P (insn)" { @@ -2538,7 +2538,7 @@ (define_insn "call_value_internal" [(set (match_operand 0 "register_operand" "=a") - (call (mem (match_operand:SI 1 "call_insn_operand" "nir")) + (call (mem (match_operand:SI 1 "call_insn_operand" "ir")) (match_operand 2 "" "")))] "!SIBLING_CALL_P (insn)" { @@ -2558,7 +2558,7 @@ }) (define_insn "sibcall_internal" - [(call (mem:SI (match_operand:SI 0 "call_insn_operand" "nic")) + [(call (mem:SI (match_operand:SI 0 "call_insn_operand" "ic")) (match_operand 1 "" ""))] "!TARGET_WINDOWED_ABI && SIBLING_CALL_P (insn)" { @@ -2580,7 +2580,7 @@ (define_insn "sibcall_value_internal" [(set (match_operand 0 "register_operand" "=a") - (call (mem:SI (match_operand:SI 1 "call_insn_operand" "nic")) + (call (mem:SI (match_operand:SI 1 "call_insn_operand" "ic")) (match_operand 2 "" "")))] "!TARGET_WINDOWED_ABI && SIBLING_CALL_P (insn)" {