aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2021-09-29 14:32:32 +0200
committerRichard Biener <rguenther@suse.de>2021-09-29 14:35:13 +0200
commitb34fa88becb6367229074f25ef9e2de6f4594b58 (patch)
tree012bc71bdd736d8fa694c872ccd4b4aea4c16581
parent4c7731081647c22cbd249dc0faa20c3df9ed6411 (diff)
downloadgcc-b34fa88becb6367229074f25ef9e2de6f4594b58.zip
gcc-b34fa88becb6367229074f25ef9e2de6f4594b58.tar.gz
gcc-b34fa88becb6367229074f25ef9e2de6f4594b58.tar.bz2
testsuite/102517 - fix FAIL of gcc.dg/pr78408-1.c with OImode availability
This fixes the testcase which looks for variants of memcpy after memset folding which is disturbed when we expand the memcpy inline earlier which in fact performs the desired optimization but makes the dump file not match. For the ease of testing the following adjusts the smaller structure size to be no longer power-of-two which avoids the inline expansion. 2021-09-29 Richard Biener <rguenther@suse.de> PR testsuite/102517 * gcc.dg/pr78408-1.c: Make S not power-of-two size.
-rw-r--r--gcc/testsuite/gcc.dg/pr78408-1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/pr78408-1.c b/gcc/testsuite/gcc.dg/pr78408-1.c
index 94e2090..dc9870a 100644
--- a/gcc/testsuite/gcc.dg/pr78408-1.c
+++ b/gcc/testsuite/gcc.dg/pr78408-1.c
@@ -3,7 +3,7 @@
/* { dg-options "-O2 -fdump-tree-fab1-details" } */
/* { dg-final { scan-tree-dump-times "after previous" 17 "fab1" } } */
-struct S { char a[32]; };
+struct S { char a[33]; };
struct T { char a[65536]; };
void bar (int, struct S *, struct S *, struct T *, struct T *);
void baz (char *, char *);