rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable -mpower9-minmax by default for -mcpu...
authorMichael Meissner <meissner@linux.vnet.ibm.com>
Thu, 19 Jan 2017 23:31:20 +0000 (23:31 +0000)
committerMichael Meissner <meissner@gcc.gnu.org>
Thu, 19 Jan 2017 23:31:20 +0000 (23:31 +0000)
[gcc]
2017-01-19  Michael Meissner  <meissner@linux.vnet.ibm.com>

* config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
-mpower9-minmax by default for -mcpu=power9.
(ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
128-bit floating point.

[gcc/testsuite]
2017-01-19  Michael Meissner  <meissner@linux.vnet.ibm.com>

* gcc.target/powerpc/float128-hw.c: Do not require IEEE 128-bit
floating point hardware to run test.

From-SVN: r244662

gcc/ChangeLog
gcc/config/rs6000/rs6000-cpus.def
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/float128-hw.c

index d231ff49d5ba260dfb2bf6b4bd3d435712af744f..a50adfec17d23206669d42a386fa7ff1b07350ed 100644 (file)
@@ -1,3 +1,10 @@
+2017-01-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
+
+       * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
+       -mpower9-minmax by default for -mcpu=power9.
+       (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
+       128-bit floating point.
+
 2017-01-20  Alan Modra  <amodra@gmail.com>
 
        * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
index aaff84bdeff0dc9f04bce2ab937073030af81b45..8ce91473470380f66d95d6678fdb10028b504e98 100644 (file)
@@ -62,7 +62,6 @@
                                 | OPTION_MASK_VSX_SMALL_INTEGER)
 
 /* Add ISEL back into ISA 3.0, since it is supposed to be a win.  Do not add
-   P9_MINMAX until the hardware that supports it is available.  Do not add
    FLOAT128_HW here until we are ready to make -mfloat128 on by default.  */
 #define ISA_3_0_MASKS_SERVER   (ISA_2_7_MASKS_SERVER                   \
                                 | OPTION_MASK_ISEL                     \
@@ -70,6 +69,7 @@
                                 | OPTION_MASK_P9_FUSION                \
                                 | OPTION_MASK_P9_DFORM_SCALAR          \
                                 | OPTION_MASK_P9_DFORM_VECTOR          \
+                                | OPTION_MASK_P9_MINMAX                \
                                 | OPTION_MASK_P9_MISC                  \
                                 | OPTION_MASK_P9_VECTOR)
 
@@ -81,7 +81,8 @@
                                 | OPTION_MASK_DIRECT_MOVE              \
                                 | OPTION_MASK_UPPER_REGS_DI            \
                                 | OPTION_MASK_UPPER_REGS_DF            \
-                                | OPTION_MASK_UPPER_REGS_SF)
+                                | OPTION_MASK_UPPER_REGS_SF            \
+                                | OPTION_MASK_VSX_SMALL_INTEGER)
 
 #define POWERPC_7400_MASK      (OPTION_MASK_PPC_GFXOPT | OPTION_MASK_ALTIVEC)
 
index 1a3a521187ec48579097db7a1669a767e3e2a410..0f1de62a926da69f3233465f6d7f317e546b5122 100644 (file)
@@ -1,3 +1,8 @@
+2017-01-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
+
+       * gcc.target/powerpc/float128-hw.c: Do not require IEEE 128-bit
+       floating point hardware to run test.
+
 2017-01-19  Tamar Christina  <tamar.christina@arm.com>
 
        * gcc/testsuite/lib/target-supports.exp
index 71a0c24a2f2b0fbfba55828a098c511025a96fa5..65958bcac83a17954750694b3419e36caef63841 100644 (file)
@@ -1,7 +1,7 @@
 /* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
-/* { dg-require-effective-target powerpc_float128_hw_ok } */
+/* { dg-require-effective-target powerpc_p9vector_ok } */
 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power9" } } */
-/* { dg-options "-mcpu=power9 -O2" } */
+/* { dg-options "-mcpu=power9 -O2 -mfloat128" } */
 
 __float128 f128_add (__float128 a, __float128 b) { return a+b; }
 __float128 f128_sub (__float128 a, __float128 b) { return a-b; }