]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
xtensa: Remove redundant use of 'n'-constraint for call insns
authorTakayuki 'January June' Suwa <jjsuwa_sys3175@yahoo.co.jp>
Thu, 23 Oct 2025 08:06:08 +0000 (17:06 +0900)
committerMax Filippov <jcmvbkbc@gmail.com>
Fri, 24 Oct 2025 12:35:04 +0000 (05:35 -0700)
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.

gcc/config/xtensa/xtensa.md

index 05bafdea23ddeecd6f8d53a0b4a9bdd1735cf162..374288df7083267c9fa9670b2fc82af76c464872 100644 (file)
 })
 
 (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)"
 {
 
 (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)"
 {
 })
 
 (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)"
 {
 
 (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)"
 {