From: Uros Bizjak Date: Wed, 22 Nov 2017 20:35:43 +0000 (+0100) Subject: target-supports.exp (check_effective_target_bswap16): Remove X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d8d9aa38aed6489fa28308d3955e3467c5eb935b;p=gcc.git target-supports.exp (check_effective_target_bswap16): Remove * 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 573a97a4762..aa4d09583fe 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,22 @@ +2017-11-22 Uros Bizjak + + * 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 PR fortran/36313 @@ -936,7 +955,7 @@ * 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. @@ -3249,7 +3268,7 @@ 2017-10-19 Martin Sebor PR tree-optimization/82596 - * gcc/testsuite/gcc.dg/pr82596.c: New test. + * gcc.dg/pr82596.c: New test. 2017-10-19 Eric Botcazou @@ -4470,7 +4489,7 @@ 2017-09-29 Jeff Law - * 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 @@ -6016,7 +6035,7 @@ 2017-09-05 Eric Botcazou - * testsuite/gnat.dg/array29.ad[sb]: New test. + * gnat.dg/array29.ad[sb]: New test. 2017-09-05 Martin Liska @@ -6916,8 +6935,7 @@ * 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. @@ -6929,14 +6947,14 @@ 2017-08-09 Michael Collison - * 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 diff --git a/gcc/testsuite/gcc.dg/optimize-bswapdi-1.c b/gcc/testsuite/gcc.dg/optimize-bswapdi-1.c index 251dbc2da95..a4a3a792375 100644 --- a/gcc/testsuite/gcc.dg/optimize-bswapdi-1.c +++ b/gcc/testsuite/gcc.dg/optimize-bswapdi-1.c @@ -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*-*-* } } */ diff --git a/gcc/testsuite/gcc.dg/optimize-bswapdi-2.c b/gcc/testsuite/gcc.dg/optimize-bswapdi-2.c index 2c8108707dc..89b251fe461 100644 --- a/gcc/testsuite/gcc.dg/optimize-bswapdi-2.c +++ b/gcc/testsuite/gcc.dg/optimize-bswapdi-2.c @@ -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*-*-* } } */ diff --git a/gcc/testsuite/gcc.dg/optimize-bswapdi-3.c b/gcc/testsuite/gcc.dg/optimize-bswapdi-3.c index 6f682014622..1888757ccb7 100644 --- a/gcc/testsuite/gcc.dg/optimize-bswapdi-3.c +++ b/gcc/testsuite/gcc.dg/optimize-bswapdi-3.c @@ -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*-*-* } } */ diff --git a/gcc/testsuite/gcc.dg/optimize-bswaphi-1.c b/gcc/testsuite/gcc.dg/optimize-bswaphi-1.c index 852ccfe5c1a..dcd3c2872d6 100644 --- a/gcc/testsuite/gcc.dg/optimize-bswaphi-1.c +++ b/gcc/testsuite/gcc.dg/optimize-bswaphi-1.c @@ -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-*-* } } */ diff --git a/gcc/testsuite/gcc.dg/optimize-bswapsi-1.c b/gcc/testsuite/gcc.dg/optimize-bswapsi-1.c index 77916a7a955..c403d0498bb 100644 --- a/gcc/testsuite/gcc.dg/optimize-bswapsi-1.c +++ b/gcc/testsuite/gcc.dg/optimize-bswapsi-1.c @@ -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*-*-* } } */ diff --git a/gcc/testsuite/gcc.dg/optimize-bswapsi-2.c b/gcc/testsuite/gcc.dg/optimize-bswapsi-2.c index 01ae3776ed3..30e677bd947 100644 --- a/gcc/testsuite/gcc.dg/optimize-bswapsi-2.c +++ b/gcc/testsuite/gcc.dg/optimize-bswapsi-2.c @@ -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*-*-* } } */ diff --git a/gcc/testsuite/gcc.dg/optimize-bswapsi-3.c b/gcc/testsuite/gcc.dg/optimize-bswapsi-3.c index 0306455030d..9418a83dfe3 100644 --- a/gcc/testsuite/gcc.dg/optimize-bswapsi-3.c +++ b/gcc/testsuite/gcc.dg/optimize-bswapsi-3.c @@ -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-*-* } } */ diff --git a/gcc/testsuite/gcc.dg/optimize-bswapsi-4.c b/gcc/testsuite/gcc.dg/optimize-bswapsi-4.c index a298486c439..cfcc8324c57 100644 --- a/gcc/testsuite/gcc.dg/optimize-bswapsi-4.c +++ b/gcc/testsuite/gcc.dg/optimize-bswapsi-4.c @@ -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-*-* } } */ diff --git a/gcc/testsuite/gcc.dg/optimize-bswapsi-5.c b/gcc/testsuite/gcc.dg/optimize-bswapsi-5.c index a8245474696..5819fd7193c 100644 --- a/gcc/testsuite/gcc.dg/optimize-bswapsi-5.c +++ b/gcc/testsuite/gcc.dg/optimize-bswapsi-5.c @@ -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-*-* } } */ diff --git a/gcc/testsuite/gcc.dg/pr77673.c b/gcc/testsuite/gcc.dg/pr77673.c index e03bcb9284d..b41cf04e771 100644 --- a/gcc/testsuite/gcc.dg/pr77673.c +++ b/gcc/testsuite/gcc.dg/pr77673.c @@ -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*-*-* } } */ diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 1dc38177502..d30fd368922 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -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 { } {