S/390: bswap64 testcases require -mzarch.
authorAndreas Krebbel <krebbel@linux.vnet.ibm.com>
Wed, 2 Dec 2015 07:41:53 +0000 (07:41 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Wed, 2 Dec 2015 07:41:53 +0000 (07:41 +0000)
gcc/testsuite/ChangeLog:

2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

* gcc.dg/optimize-bswapdi-1.c: Force using -mzarch on s390 and
s390x to enable 64 bit bswap patterns.
* gcc.dg/optimize-bswapdi-2.c: Likewise.
* gcc.dg/optimize-bswapdi-3.c: Likewise.
* lib/target-supports.exp: Add a comment for s390.

From-SVN: r231149

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/optimize-bswapdi-1.c
gcc/testsuite/gcc.dg/optimize-bswapdi-2.c
gcc/testsuite/gcc.dg/optimize-bswapdi-3.c
gcc/testsuite/lib/target-supports.exp

index cdeedb1db91dd63e518bf18581febc8665e2b11a..4e62a06e0c9ba2a6d4a5f26c93cb514286c35ccc 100644 (file)
@@ -1,9 +1,17 @@
 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
 
-        * gcc.dg/builtin-bswap-6a.c: Add -march=z900 for s390 and s390x in
+       * gcc.dg/optimize-bswapdi-1.c: Force using -mzarch on s390 and
+       s390x to enable 64 bit bswap patterns.
+       * gcc.dg/optimize-bswapdi-2.c: Likewise.
+       * gcc.dg/optimize-bswapdi-3.c: Likewise.
+       * lib/target-supports.exp: Add a comment for s390.
+
+2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
+
+       * gcc.dg/builtin-bswap-6a.c: Add -march=z900 for s390 and s390x in
        order to make -m31 work.
-        * gcc.dg/optimize-bswapsi-1.c: Likewise.
-        * gcc.dg/optimize-bswapsi-2.c: Likewise.
+       * gcc.dg/optimize-bswapsi-1.c: Likewise.
+       * gcc.dg/optimize-bswapsi-2.c: Likewise.
 
 2015-12-02  Jakub Jelinek  <jakub@redhat.com>
 
 
 2015-11-30  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
 
-        * gcc.target/s390/load-relative-check.c: Add -mzarch.
+       * gcc.target/s390/load-relative-check.c: Add -mzarch.
 
 2015-11-30  Eric Botcazou  <ebotcazou@adacore.com>
 
index 0b5fe29687a86471e4d519b6a5a2c3e8c3986659..251dbc2da95f5dcc704d0d1d9bdc0dfb7f5e9542 100644 (file)
@@ -2,6 +2,7 @@
 /* { dg-require-effective-target bswap64 } */
 /* { dg-require-effective-target stdint_types } */
 /* { dg-options "-O2 -fdump-tree-bswap" } */
+/* { dg-additional-options "-mzarch" { target s390*-*-* } } */
 
 #include <stdint.h>
 #define __const_swab64(x) ((uint64_t)(                                         \
index 7ac0323825ac0c5c808730486534d7c782cfd62f..2c8108707dc6adc2ce5ea75891fd9ff60ba37e68 100644 (file)
@@ -2,6 +2,7 @@
 /* { dg-require-effective-target bswap64 } */
 /* { dg-require-effective-target stdint_types } */
 /* { dg-options "-O2 -fdump-tree-bswap" } */
+/* { dg-additional-options "-mzarch" { target s390*-*-* } } */
 
 #include <stdint.h>
 
index 3c66505a64ff22f0c4ea65cf6a50cc350e9f3db9..273b4bc622cb32564533e1352b5fc8ad52054f8b 100644 (file)
@@ -2,6 +2,7 @@
 /* { dg-require-effective-target bswap64 } */
 /* { dg-require-effective-target stdint_types } */
 /* { dg-options "-O2 -fdump-tree-bswap" } */
+/* { dg-additional-options "-mzarch" { target s390*-*-* } } */
 
 #include <stdint.h>
 
index 2275fd3f44c87372e96e2ccb89e4dc64cf03402f..e3b30f1551c95bfa5c23f7fc9d8c9a50219281ab 100644 (file)
@@ -5543,6 +5543,8 @@ proc check_effective_target_bswap32 { } {
 }
 
 # Return 1 if the target supports 64-bit byte swap instructions.
+#
+# Note: 32bit s390 targets require -mzarch in dg-options.
 
 proc check_effective_target_bswap64 { } {
     global et_bswap64_saved