]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
i386: Rename index_register_operand predicate to register_no_SP_operand
authorUros Bizjak <ubizjak@gmail.com>
Fri, 5 May 2023 13:12:45 +0000 (15:12 +0200)
committerUros Bizjak <ubizjak@gmail.com>
Fri, 5 May 2023 13:14:14 +0000 (15:14 +0200)
Rename index_register_operand predicate to what it really does.

No functional change.

gcc/ChangeLog:

* config/i386/predicates.md (register_no_SP_operand):
Rename from index_register_operand.
(call_register_operand): Update for rename.
* config/i386/i386.md (*lea<mode>_general_[1234]): Update for rename.

gcc/config/i386/i386.md
gcc/config/i386/predicates.md

index 63207fc9305608d1a1b15666ec57bcdaf126baa1..cf90867b801e24aa0cc28a506271bc1dd923ed4a 100644 (file)
 (define_insn_and_split "*lea<mode>_general_1"
   [(set (match_operand:SWI12 0 "register_operand" "=r")
        (plus:SWI12
-         (plus:SWI12 (match_operand:SWI12 1 "index_register_operand" "l")
+         (plus:SWI12 (match_operand:SWI12 1 "register_no_SP_operand" "l")
                      (match_operand:SWI12 2 "register_operand" "r"))
          (match_operand:SWI12 3 "immediate_operand" "i")))]
   "!TARGET_PARTIAL_REG_STALL || optimize_function_for_size_p (cfun)"
 (define_insn_and_split "*lea<mode>_general_2"
   [(set (match_operand:SWI12 0 "register_operand" "=r")
        (plus:SWI12
-         (mult:SWI12 (match_operand:SWI12 1 "index_register_operand" "l")
+         (mult:SWI12 (match_operand:SWI12 1 "register_no_SP_operand" "l")
                      (match_operand 2 "const248_operand" "n"))
          (match_operand:SWI12 3 "nonmemory_operand" "ri")))]
   "!TARGET_PARTIAL_REG_STALL || optimize_function_for_size_p (cfun)"
 (define_insn_and_split "*lea<mode>_general_2b"
   [(set (match_operand:SWI12 0 "register_operand" "=r")
        (plus:SWI12
-         (ashift:SWI12 (match_operand:SWI12 1 "index_register_operand" "l")
+         (ashift:SWI12 (match_operand:SWI12 1 "register_no_SP_operand" "l")
                        (match_operand 2 "const123_operand" "n"))
          (match_operand:SWI12 3 "nonmemory_operand" "ri")))]
   "!TARGET_PARTIAL_REG_STALL || optimize_function_for_size_p (cfun)"
   [(set (match_operand:SWI12 0 "register_operand" "=r")
        (plus:SWI12
          (plus:SWI12
-           (mult:SWI12 (match_operand:SWI12 1 "index_register_operand" "l")
+           (mult:SWI12 (match_operand:SWI12 1 "register_no_SP_operand" "l")
                        (match_operand 2 "const248_operand" "n"))
            (match_operand:SWI12 3 "register_operand" "r"))
          (match_operand:SWI12 4 "immediate_operand" "i")))]
   [(set (match_operand:SWI12 0 "register_operand" "=r")
        (plus:SWI12
          (plus:SWI12
-           (ashift:SWI12 (match_operand:SWI12 1 "index_register_operand" "l")
+           (ashift:SWI12 (match_operand:SWI12 1 "register_no_SP_operand" "l")
                          (match_operand 2 "const123_operand" "n"))
            (match_operand:SWI12 3 "register_operand" "r"))
          (match_operand:SWI12 4 "immediate_operand" "i")))]
   [(set (match_operand:SWI12 0 "register_operand" "=r")
        (any_or:SWI12
          (ashift:SWI12
-           (match_operand:SWI12 1 "index_register_operand" "l")
+           (match_operand:SWI12 1 "register_no_SP_operand" "l")
            (match_operand 2 "const_0_to_3_operand"))
          (match_operand 3 "const_int_operand")))]
   "(!TARGET_PARTIAL_REG_STALL || optimize_function_for_size_p (cfun))
   [(set (match_operand:SWI48 0 "register_operand" "=r")
        (any_or:SWI48
          (ashift:SWI48
-           (match_operand:SWI48 1 "index_register_operand" "l")
+           (match_operand:SWI48 1 "register_no_SP_operand" "l")
            (match_operand 2 "const_0_to_3_operand"))
          (match_operand 3 "const_int_operand")))]
   "(unsigned HOST_WIDE_INT) INTVAL (operands[3])
index 362266e1f6c013f46d82e3c3ea323ae1f6c3fe42..fb07707dcbaad2b5f17d0d49f2534218909b4499 100644 (file)
 
 ;; Similarly, but include the stack pointer.  This is used
 ;; to prevent esp from being used as an index reg.
-(define_predicate "index_register_operand"
+(define_predicate "register_no_SP_operand"
   (match_operand 0 "register_operand")
 {
   if (SUBREG_P (op))
 (define_predicate "call_register_operand"
   (if_then_else (match_test "TARGET_64BIT")
     (match_operand 0 "register_operand")
-    (match_operand 0 "index_register_operand")))
+    (match_operand 0 "register_no_SP_operand")))
 
 ;; Return false if this is any eliminable register.  Otherwise general_operand.
 (define_predicate "general_no_elim_operand"