aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMartin Sebor <msebor@redhat.com>2019-08-14 22:26:40 +0000
committerMartin Sebor <msebor@gcc.gnu.org>2019-08-14 16:26:40 -0600
commit173275c5c7c424ec4cddb91b61eb2620a3b74f0f (patch)
tree6f55f8958b52df6b9ece3e733415b2e00410232a /gcc
parent07ee59246c2f67249882e74c4c131004aad9a6da (diff)
downloadgcc-173275c5c7c424ec4cddb91b61eb2620a3b74f0f.zip
gcc-173275c5c7c424ec4cddb91b61eb2620a3b74f0f.tar.gz
gcc-173275c5c7c424ec4cddb91b61eb2620a3b74f0f.tar.bz2
PR testsuite/91449 - new test case gcc.dg/strlenopt-73.c fails on powerpc64
gcc/testsuite/ChangeLog: * gcc.dg/strlenopt-73.c: Restrict 128-bit tests to i386. From-SVN: r274495
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/strlenopt-73.c8
2 files changed, 10 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 33a9fc6..c736378 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2019-08-14 Martin Sebor <msebor@redhat.com>
+
+ PR testsuite/91449
+ * gcc.dg/strlenopt-73.c: Restrict 128-bit tests to i386.
+
2019-08-14 Jonathan Wakely <jwakely@redhat.com>
PR c++/91436
diff --git a/gcc/testsuite/gcc.dg/strlenopt-73.c b/gcc/testsuite/gcc.dg/strlenopt-73.c
index 4f13afd..d3c3f05 100644
--- a/gcc/testsuite/gcc.dg/strlenopt-73.c
+++ b/gcc/testsuite/gcc.dg/strlenopt-73.c
@@ -85,10 +85,12 @@ void test_copy_cond_unequal_length_i64 (void)
}
-#if __SIZEOF_INT128__ == 16
+#if __i386__ && __SIZEOF_INT128__ == 16
/* The following tests assume GCC transforms the memcpy calls into
- int128_t assignments which it does only when int128_t is supported. */
+ int128_t assignments which it does only on targets that define
+ the MOVE_MAX macro to 16. That's only spu, s390, and i386 with
+ int128_t support. */
const char a8[32] = "01234567";
const char b8[32] = "76543210";
@@ -127,7 +129,7 @@ void test_copy_cond_unequal_length_i128 (void)
T (0 <, 32, 16, i0 ? a8 + 4 : b8 + 7);
}
-#endif /* int128_t exists */
+#endif /* Support for i128_t stores. */
/* { dg-final { scan-tree-dump-times "strlen" 0 "optimized" } }
{ dg-final { scan-tree-dump-times "_not_eliminated_" 0 "optimized" } } */