]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
aix: Default AIX 7.2 to POWER7 server and AIX 7.3 to POWER8 server.
authorDavid Edelsohn <dje.gcc@gmail.com>
Sun, 23 Apr 2023 15:22:06 +0000 (11:22 -0400)
committerDavid Edelsohn <dje.gcc@gmail.com>
Wed, 26 Apr 2023 17:29:34 +0000 (13:29 -0400)
AIX 7.2 minimum ISA is POWER7 and AIX 7.3 minimum ISA is POWER8.
This patch changes the aix72.h configuration to POWER7 with VSX enabled
by default (with the AIX VSX ABI limitations), matching LLVM on AIX,
and changes the aix73.h configuration to POWER8.

gcc/ChangeLog:
* config/rs6000/aix72.h (TARGET_DEFAULT): Use ISA_2_6_MASKS_SERVER.
* config/rs6000/aix73.h (TARGET_DEFAULT): Use ISA_2_7_MASKS_SERVER.
(PROCESSOR_DEFAULT): Use PROCESSOR_POWER8.

Signed-off-by: David Edelsohn <dje.gcc@gmail.com>
gcc/config/rs6000/aix72.h
gcc/config/rs6000/aix73.h

index 5ea89fc93402a2cb11f6e776298dc43dcd0baa84..3c72fc556294acbb7d595178b93cdced14992f8d 100644 (file)
@@ -138,9 +138,9 @@ do {                                                                        \
 
 #undef  TARGET_DEFAULT
 #ifdef RS6000_BI_ARCH
-#define TARGET_DEFAULT (ISA_2_6_MASKS_EMBEDDED | MASK_POWERPC64 | MASK_64BIT)
+#define TARGET_DEFAULT (ISA_2_6_MASKS_SERVER | MASK_POWERPC64 | MASK_64BIT)
 #else
-#define TARGET_DEFAULT ISA_2_6_MASKS_EMBEDDED
+#define TARGET_DEFAULT ISA_2_6_MASKS_SERVER
 #endif
 
 #undef  PROCESSOR_DEFAULT
index 8cd93fa0df9c8f4ca19aaf64a5ae646462484ca1..afbf52e4caf5e151e4d7741a0e4b3606b6852e93 100644 (file)
@@ -139,15 +139,15 @@ do {                                                                      \
 
 #undef  TARGET_DEFAULT
 #ifdef RS6000_BI_ARCH
-#define TARGET_DEFAULT (ISA_2_6_MASKS_EMBEDDED | MASK_POWERPC64 | MASK_64BIT)
+#define TARGET_DEFAULT (ISA_2_7_MASKS_SERVER | MASK_POWERPC64 | MASK_64BIT)
 #else
-#define TARGET_DEFAULT ISA_2_6_MASKS_EMBEDDED
+#define TARGET_DEFAULT ISA_2_7_MASKS_SERVER
 #endif
 
 #undef  PROCESSOR_DEFAULT
-#define PROCESSOR_DEFAULT PROCESSOR_POWER7
+#define PROCESSOR_DEFAULT PROCESSOR_POWER8
 #undef  PROCESSOR_DEFAULT64
-#define PROCESSOR_DEFAULT64 PROCESSOR_POWER7
+#define PROCESSOR_DEFAULT64 PROCESSOR_POWER8
 
 /* AIX 7.2 kernel and assembler have necessary support for Altivec and VSX.  */
 #undef OS_MISSING_ALTIVEC