re PR target/63177 (Powerpc no-vfa-vect-depend-2.c and no-vfa-vect-depend-3.c failures)
authorPeter Bergner <bergner@vnet.ibm.com>
Wed, 6 Jun 2018 18:40:53 +0000 (13:40 -0500)
committerPeter Bergner <bergner@gcc.gnu.org>
Wed, 6 Jun 2018 18:40:53 +0000 (13:40 -0500)
PR target/63177
* /config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mpower9.
Don't handle -mcpu=power8 if -mpower9-vector is also used.

From-SVN: r261243

gcc/ChangeLog
gcc/config/rs6000/rs6000.h

index 3970968802d50052333f95f7e82314f92a26accf..94123164188e65d5afcd5bf97ad330501e7a6cbf 100644 (file)
@@ -1,3 +1,9 @@
+2018-06-06  Peter Bergner  <bergner@vnet.ibm.com>
+
+       PR target/63177
+       * /config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mpower9.
+       Don't handle -mcpu=power8 if -mpower9-vector is also used.
+
 2018-06-06  Kelvin Nilsen  <kelvin@gcc.gnu.org>
 
        * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_LD,
index 99be460e04d160b9c9db9bc5feb62a92b76aaa03..5a5fb65fe33c0ea43fb431136d7fd840af869c0e 100644 (file)
 /* Common ASM definitions used by ASM_SPEC among the various targets for
    handling -mcpu=xxx switches.  There is a parallel list in driver-rs6000.c to
    provide the default assembler options if the user uses -mcpu=native, so if
-   you make changes here, make them also there.  */
+   you make changes here, make them also there.  PR63177: Do not pass -mpower8
+   to the assembler if -mpower9-vector was also used.  */
 #define ASM_CPU_SPEC \
 "%{!mcpu*: \
   %{mpowerpc64*: -mppc64} \
 %{mcpu=power6: %(asm_cpu_power6) -maltivec} \
 %{mcpu=power6x: %(asm_cpu_power6) -maltivec} \
 %{mcpu=power7: %(asm_cpu_power7)} \
-%{mcpu=power8: %(asm_cpu_power8)} \
+%{mcpu=power8: %{!mpower9-vector: %(asm_cpu_power8)}} \
 %{mcpu=power9: %(asm_cpu_power9)} \
 %{mcpu=a2: -ma2} \
 %{mcpu=powerpc: -mppc} \
 %{maltivec: -maltivec} \
 %{mvsx: -mvsx %{!maltivec: -maltivec} %{!mcpu*: %(asm_cpu_power7)}} \
 %{mpower8-vector|mcrypto|mdirect-move|mhtm: %{!mcpu*: %(asm_cpu_power8)}} \
+%{mpower9-vector: %{!mcpu*|mcpu=power8: %(asm_cpu_power9)}} \
 -many"
 
 #define CPP_DEFAULT_SPEC ""