aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/testsuite/ChangeLog46
-rw-r--r--gcc/testsuite/gcc.dg/optimize-bswapdi-1.c2
-rw-r--r--gcc/testsuite/gcc.dg/optimize-bswapdi-2.c2
-rw-r--r--gcc/testsuite/gcc.dg/optimize-bswapdi-3.c2
-rw-r--r--gcc/testsuite/gcc.dg/optimize-bswaphi-1.c2
-rw-r--r--gcc/testsuite/gcc.dg/optimize-bswapsi-1.c2
-rw-r--r--gcc/testsuite/gcc.dg/optimize-bswapsi-2.c2
-rw-r--r--gcc/testsuite/gcc.dg/optimize-bswapsi-3.c2
-rw-r--r--gcc/testsuite/gcc.dg/optimize-bswapsi-4.c2
-rw-r--r--gcc/testsuite/gcc.dg/optimize-bswapsi-5.c2
-rw-r--r--gcc/testsuite/gcc.dg/pr77673.c2
-rw-r--r--gcc/testsuite/lib/target-supports.exp50
12 files changed, 42 insertions, 74 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 573a97a4..aa4d095 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
@@ -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 <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>
@@ -4470,7 +4489,7 @@
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>
@@ -6016,7 +6035,7 @@
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>
@@ -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 <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>
diff --git a/gcc/testsuite/gcc.dg/optimize-bswapdi-1.c b/gcc/testsuite/gcc.dg/optimize-bswapdi-1.c
index 251dbc2..a4a3a79 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 2c81087..89b251f 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 6f68201..1888757 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 852ccfe..dcd3c28 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 77916a7..c403d04 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 01ae377..30e677b 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 0306455..9418a83 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 a298486..cfcc832 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 a824547..5819fd7 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 e03bcb9..b41cf04 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 1dc3817..d30fd36 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 { } {