https://gcc.gnu.org/g:43065f7fccc158133ad51c813725b72da1372e36

commit 43065f7fccc158133ad51c813725b72da1372e36
Author: Michael Meissner <meiss...@linux.ibm.com>
Date:   Thu Aug 1 21:49:45 2024 -0400

    Change TARGET_MODULO to TARGET_POWER9
    
    As part of the architecture flags patches, this patch changes the use of
    TARGET_POPCNTD to TARGET_POWER7.  The modulo instructions were added in 
power9 (ISA
    3.0).  Note, I did not change the uses of TARGET_MODULO where it was 
explicitly
    generating different code if the machine had a modulo instruction.
    
    2024-08-01  Michael Meissner  <meiss...@linux.ibm.com>
    
            * config/rs6000/rs6000-builtin.cc (rs6000_builtin_is_supported): Use
            TARGET_POWER9 instead of TARGET_MODULO.
            * config/rs6000/rs6000.h (TARGET_CTZ): Likewise.
            (TARGET_EXTSWSLI): Likewise.
            (TARGET_MADDLD): Likewise.
            * config/rs6000/rs6000.md (enabled attribute): Likewise.

Diff:
---
 gcc/config/rs6000/rs6000-builtin.cc | 4 ++--
 gcc/config/rs6000/rs6000.h          | 6 +++---
 gcc/config/rs6000/rs6000.md         | 2 +-
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/gcc/config/rs6000/rs6000-builtin.cc 
b/gcc/config/rs6000/rs6000-builtin.cc
index 140422170a10..1f808f69e8f9 100644
--- a/gcc/config/rs6000/rs6000-builtin.cc
+++ b/gcc/config/rs6000/rs6000-builtin.cc
@@ -169,9 +169,9 @@ rs6000_builtin_is_supported (enum rs6000_gen_builtins 
fncode)
     case ENB_P8V:
       return TARGET_P8_VECTOR;
     case ENB_P9:
-      return TARGET_MODULO;
+      return TARGET_POWER9;
     case ENB_P9_64:
-      return TARGET_MODULO && TARGET_POWERPC64;
+      return TARGET_POWER9 && TARGET_POWERPC64;
     case ENB_P9V:
       return TARGET_P9_VECTOR;
     case ENB_P10:
diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h
index b5b9c01683b9..14dc66676c1b 100644
--- a/gcc/config/rs6000/rs6000.h
+++ b/gcc/config/rs6000/rs6000.h
@@ -461,9 +461,9 @@ extern int rs6000_vector_align[];
 #define TARGET_FCTIWUZ TARGET_POWER7
 /* Only powerpc64 and powerpc476 support fctid.  */
 #define TARGET_FCTID   (TARGET_POWERPC64 || rs6000_cpu == PROCESSOR_PPC476)
-#define TARGET_CTZ     TARGET_MODULO
-#define TARGET_EXTSWSLI        (TARGET_MODULO && TARGET_POWERPC64)
-#define TARGET_MADDLD  TARGET_MODULO
+#define TARGET_CTZ     TARGET_POWER9
+#define TARGET_EXTSWSLI        (TARGET_POWER9 && TARGET_POWERPC64)
+#define TARGET_MADDLD  TARGET_POWER9
 
 /* TARGET_DIRECT_MOVE is redundant to TARGET_P8_VECTOR, so alias it to that.  
*/
 #define TARGET_DIRECT_MOVE     TARGET_P8_VECTOR
diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md
index 089377e5b6a3..0524cf8ee6f3 100644
--- a/gcc/config/rs6000/rs6000.md
+++ b/gcc/config/rs6000/rs6000.md
@@ -389,7 +389,7 @@
      (const_int 1)
 
      (and (eq_attr "isa" "p9")
-         (match_test "TARGET_MODULO"))
+         (match_test "TARGET_POWER9"))
      (const_int 1)
 
      (and (eq_attr "isa" "p9v")

Reply via email to