public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-502] i386: Rename index_register_operand predicate to register_no_SP_operand
@ 2023-05-05 13:14 Uros Bizjak
  0 siblings, 0 replies; only message in thread
From: Uros Bizjak @ 2023-05-05 13:14 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:0fa872c40af4261064c13a1e4c57fa840d098d80

commit r14-502-g0fa872c40af4261064c13a1e4c57fa840d098d80
Author: Uros Bizjak <ubizjak@gmail.com>
Date:   Fri May 5 15:12:45 2023 +0200

    i386: Rename index_register_operand predicate to register_no_SP_operand
    
    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.

Diff:
---
 gcc/config/i386/i386.md       | 14 +++++++-------
 gcc/config/i386/predicates.md |  4 ++--
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md
index 63207fc9305..cf90867b801 100644
--- a/gcc/config/i386/i386.md
+++ b/gcc/config/i386/i386.md
@@ -7068,7 +7068,7 @@
 (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)"
@@ -7090,7 +7090,7 @@
 (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)"
@@ -7111,7 +7111,7 @@
 (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)"
@@ -7133,7 +7133,7 @@
   [(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")))]
@@ -7159,7 +7159,7 @@
   [(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")))]
@@ -7185,7 +7185,7 @@
   [(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))
@@ -7209,7 +7209,7 @@
   [(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])
diff --git a/gcc/config/i386/predicates.md b/gcc/config/i386/predicates.md
index 362266e1f6c..fb07707dcba 100644
--- a/gcc/config/i386/predicates.md
+++ b/gcc/config/i386/predicates.md
@@ -711,7 +711,7 @@
 
 ;; 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))
@@ -735,7 +735,7 @@
 (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"

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-05-05 13:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-05 13:14 [gcc r14-502] i386: Rename index_register_operand predicate to register_no_SP_operand Uros Bizjak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).