target-supports.exp (check_effective_target_bswap16): Remove
authorUros Bizjak <uros@gcc.gnu.org>
Wed, 22 Nov 2017 20:35:43 +0000 (21:35 +0100)
committerUros Bizjak <uros@gcc.gnu.org>
Wed, 22 Nov 2017 20:35:43 +0000 (21:35 +0100)
* lib/target-supports.exp (check_effective_target_bswap16): Remove
(check_effective_target_bswap32): Ditto.
(check_effective_target_bswap64): Ditto.
* gcc.dg/optimize-bswaphi-1.c: Use bswap effective
target instead of bswap16.
* gcc.dg/optimize-bswapsi-1.c: Use bswap effective
target instead of bswap32.
* gcc.dg/optimize-bswapsi-2.c: Ditto.
* gcc.dg/optimize-bswapsi-3.c: Ditto.
* gcc.dg/optimize-bswapsi-4.c: Ditto.
* gcc.dg/optimize-bswapsi-5.c: Ditto.
* gcc.dg/pr77673.c: Ditto.
* gcc.dg/optimize-bswapdi-1.c: Use bswap effective
target instead of bswap64.
* gcc.dg/optimize-bswapdi-2.c: Ditto.
* gcc.dg/optimize-bswapdi-3.c: Ditto.

From-SVN: r255075

12 files changed:
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/gcc.dg/optimize-bswaphi-1.c
gcc/testsuite/gcc.dg/optimize-bswapsi-1.c
gcc/testsuite/gcc.dg/optimize-bswapsi-2.c
gcc/testsuite/gcc.dg/optimize-bswapsi-3.c
gcc/testsuite/gcc.dg/optimize-bswapsi-4.c
gcc/testsuite/gcc.dg/optimize-bswapsi-5.c
gcc/testsuite/gcc.dg/pr77673.c
gcc/testsuite/lib/target-supports.exp

index 573a97a4762fc49be78c85aba627906417b75e76..aa4d09583feef743077b5628ab2d02ce3590a934 100644 (file)
@@ -1,3 +1,22 @@
+2017-11-22  Uros Bizjak  <ubizjak@gmail.com>
+
+       * lib/target-supports.exp (check_effective_target_bswap16): Remove
+       (check_effective_target_bswap32): Ditto.
+       (check_effective_target_bswap64): Ditto.
+       * gcc.dg/optimize-bswaphi-1.c: Use bswap effective
+       target instead of bswap16.
+       * gcc.dg/optimize-bswapsi-1.c: Use bswap effective
+       target instead of bswap32.
+       * gcc.dg/optimize-bswapsi-2.c: Ditto.
+       * gcc.dg/optimize-bswapsi-3.c: Ditto.
+       * gcc.dg/optimize-bswapsi-4.c: Ditto.
+       * gcc.dg/optimize-bswapsi-5.c: Ditto.
+       * gcc.dg/pr77673.c: Ditto.
+       * gcc.dg/optimize-bswapdi-1.c: Use bswap effective
+       target instead of bswap64.
+       * gcc.dg/optimize-bswapdi-2.c: Ditto.
+       * gcc.dg/optimize-bswapdi-3.c: Ditto.
+
 2017-11-22  Thomas Koenig  <tkoenig@gcc.gnu.org>
 
        PR fortran/36313
        * c-c++-common/Wstringop-truncation.c: Same.
        * c-c++-common/Wsizeof-pointer-memaccess2.c: Adjust.
        * c-c++-common/attr-nonstring-2.c: New test.
-       * gcc/testsuite/gcc.dg/builtin-stpncpy.c: Adjust.
+       * gcc.dg/builtin-stpncpy.c: Adjust.
        * g++.dg/torture/Wsizeof-pointer-memaccess1.C: Same.
        * g++.dg/torture/Wsizeof-pointer-memaccess2.C: Same.
        * gcc.dg/torture/pr63554.c: Same.
 2017-10-19  Martin Sebor  <msebor@redhat.com>
 
        PR tree-optimization/82596
-       * gcc/testsuite/gcc.dg/pr82596.c: New test.
+       * gcc.dg/pr82596.c: New test.
 
 2017-10-19  Eric Botcazou  <ebotcazou@adacore.com>
 
 
 2017-09-29  Jeff Law  <law@redhat.com>
 
-       * testsuite/gcc.dg/tree-ssa/ssa-dse-26.c: New test.
+       * gcc.dg/tree-ssa/ssa-dse-26.c: New test.
 
 2017-09-29  Jakub Jelinek  <jakub@redhat.com>
 
 
 2017-09-05  Eric Botcazou  <ebotcazou@adacore.com>
 
-       * testsuite/gnat.dg/array29.ad[sb]: New test.
+       * gnat.dg/array29.ad[sb]: New test.
 
 2017-09-05  Martin Liska  <mliska@suse.cz>
 
 
        * jit.dg/all-non-failing-tests.h: Add note about
        test-vector-types.cc.
-       * jit.dg/test-error-gcc_jit_type_get_vector-bad-type.c: New test
-       case.
+       * jit.dg/test-error-gcc_jit_type_get_vector-bad-type.c: New test case.
        * jit.dg/test-error-gcc_jit_type_get_vector-non-power-of-two.c:
        New test case.
        * jit.dg/test-vector-types.cc: New test case.
 
 2017-08-09  Michael Collison  <michael.collison@arm.com>
 
-       * testsuite/g++.dg/ext/packed8.C: Remove -mstructure-size-
-       boundary option and fix comment.
-       * testsuite/g++.dg/init/array16.C: Remove -mstructure-size-
-       boundary option and fix comment.
-       * testsuite/g++.dg/other/crash-4.C: Remove -mstructure-size-
-       boundary option and fix comment.
-       * testsuite/gcc.dg/builtin-stringop-chk-1.c: Remove
-       -mstructure-size boundary option.
+       * g++.dg/ext/packed8.C: Remove -mstructure-size-boundary
+       option and fix comment.
+       * g++.dg/init/array16.C: Remove -mstructure-size-boundary
+       option and fix comment.
+       * g++.dg/other/crash-4.C: Remove -mstructure-size-boundary
+       option and fix comment.
+       * gcc.dg/builtin-stringop-chk-1.c: Remove
+       -mstructure-size-boundary option.
 
 2017-08-09  Segher Boessenkool  <segher@kernel.crashing.org>
 
index 251dbc2da95f5dcc704d0d1d9bdc0dfb7f5e9542..a4a3a7923754a055e6b53fd4558e7068b66cb0ea 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-require-effective-target bswap64 } */
+/* { dg-require-effective-target bswap } */
 /* { dg-require-effective-target stdint_types } */
 /* { dg-options "-O2 -fdump-tree-bswap" } */
 /* { dg-additional-options "-mzarch" { target s390*-*-* } } */
index 2c8108707dc6adc2ce5ea75891fd9ff60ba37e68..89b251fe461561c9c22c67b84da19a95bdda7723 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-require-effective-target bswap64 } */
+/* { dg-require-effective-target bswap } */
 /* { dg-require-effective-target stdint_types } */
 /* { dg-options "-O2 -fdump-tree-bswap" } */
 /* { dg-additional-options "-mzarch" { target s390*-*-* } } */
index 6f682014622ab79e541cdf26d13f16a7d87f158d..1888757ccb7d36769c156781283563fbf77868fc 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-require-effective-target bswap64 } */
+/* { dg-require-effective-target bswap } */
 /* { dg-require-effective-target stdint_types } */
 /* { dg-options "-O2 -fdump-tree-bswap" } */
 /* { dg-additional-options "-mzarch" { target s390*-*-* } } */
index 852ccfe5c1acd519f2cf340cc55f3ea74b1ec21f..dcd3c2872d64d2828fdac262b50bb7b614436e5e 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-require-effective-target bswap16 } */
+/* { dg-require-effective-target bswap } */
 /* { dg-require-effective-target stdint_types } */
 /* { dg-options "-O2 -fdump-tree-bswap" } */
 /* { dg-additional-options "-march=z900" { target s390-*-* } } */
index 77916a7a955a9e1645e0ebfddd39110d88021feb..c403d0498bbd9d6a3f9f156a2a8f5cf4984555d8 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-require-effective-target bswap32 } */
+/* { dg-require-effective-target bswap } */
 /* { dg-require-effective-target stdint_types } */
 /* { dg-options "-O2 -fdump-tree-bswap" } */
 /* { dg-additional-options "-march=z900" { target s390*-*-* } } */
index 01ae3776ed3f44fbc300d001f8c67ec11625d03b..30e677bd947915acfa098e9a6c8b0aa31b8060e7 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-require-effective-target bswap32 } */
+/* { dg-require-effective-target bswap } */
 /* { dg-require-effective-target stdint_types } */
 /* { dg-options "-O2 -fdump-tree-bswap" } */
 /* { dg-additional-options "-march=z900" { target s390*-*-* } } */
index 0306455030d2331ca23606897aa3c71096ec1ef6..9418a83dfe391fa6d52916493e24a8953840eac6 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-require-effective-target bswap32 } */
+/* { dg-require-effective-target bswap } */
 /* { dg-require-effective-target stdint_types } */
 /* { dg-options "-O2 -fdump-tree-bswap" } */
 /* { dg-additional-options "-march=z900" { target s390-*-* } } */
index a298486c439fedb12941fa450788f4c09b2ac2f5..cfcc8324c57478f5fe5bad5c366868a0ae7c143c 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-require-effective-target bswap32 } */
+/* { dg-require-effective-target bswap } */
 /* { dg-options "-O2 -fdump-tree-bswap" } */
 /* { dg-additional-options "-march=z900" { target s390-*-* } } */
 
index a82454746963a6fd729da9ea76509f8e968cb2c6..5819fd7193c789f44a0996f914cddd2d98aa4682 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-require-effective-target bswap32 } */
+/* { dg-require-effective-target bswap } */
 /* { dg-options "-O2 -fdump-tree-bswap" } */
 /* { dg-additional-options "-march=z900" { target s390-*-* } } */
 
index e03bcb9284d1e5a0e496cfa547fdbab630bec04f..b41cf04e7717bb2871d077018ec914aa21c08f3e 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile { target fpic } } */
-/* { dg-require-effective-target bswap32 } */
+/* { dg-require-effective-target bswap } */
 /* { dg-options "-O2 -fPIC -fdump-tree-bswap" } */
 /* { dg-additional-options "-march=z900" { target s390*-*-* } } */
 
index 1dc38177502b74838aa04ec21197dc2e3bac550e..d30fd368922713d3695f22710197ce7094c977cd 100644 (file)
@@ -7243,56 +7243,6 @@ proc check_effective_target_bswap { } {
     return $et_bswap_saved
 }
 
-# Return 1 if the target supports 16-bit byte swap instructions.
-
-proc check_effective_target_bswap16 { } {
-    global et_bswap16_saved
-
-    if [info exists et_bswap16_saved] {
-       verbose "check_effective_target_bswap16: using cached result" 2
-    } else {
-       set et_bswap16_saved 0
-       if { [is-effective-target bswap] } {
-          set et_bswap16_saved 1
-       }
-    }
-
-    verbose "check_effective_target_bswap16: returning $et_bswap16_saved" 2
-    return $et_bswap16_saved
-}
-
-# Return 1 if the target supports 32-bit byte swap instructions.
-
-proc check_effective_target_bswap32 { } {
-    global et_bswap32_saved
-
-    if [info exists et_bswap32_saved] {
-       verbose "check_effective_target_bswap32: using cached result" 2
-    } else {
-       set et_bswap32_saved 0
-       if { [is-effective-target bswap] } {
-          set et_bswap32_saved 1
-       }
-    }
-
-    verbose "check_effective_target_bswap32: returning $et_bswap32_saved" 2
-    return $et_bswap32_saved
-}
-
-# 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
-
-    # expand_unop can expand 64-bit byte swap on 32-bit targets
-    if { [is-effective-target bswap] && [is-effective-target int32plus] } {
-       return 1
-    }
-    return 0
-}
-
 # Return 1 if the target supports atomic operations on "int" and "long".
 
 proc check_effective_target_sync_int_long { } {