]> gcc.gnu.org Git - gcc.git/commitdiff
testsuite: Add testcase for already fixed PR [PR94573]
authorJakub Jelinek <jakub@redhat.com>
Tue, 14 Apr 2020 14:14:47 +0000 (16:14 +0200)
committerJakub Jelinek <jakub@redhat.com>
Tue, 14 Apr 2020 14:14:47 +0000 (16:14 +0200)
2020-04-14  Jakub Jelinek  <jakub@redhat.com>

PR tree-optimization/94573
* gcc.dg/store_merging_30.c: New test.

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/store_merging_30.c [new file with mode: 0644]

index 051dcb15f482b3239bf3d5617f8a2f7dbba13462..64ee01b943c7c974fe89349946075c610cf19222 100644 (file)
@@ -1,4 +1,9 @@
-2020-04-14  Yang Yang <yangyang305@huawei.com>
+2020-04-14  Jakub Jelinek  <jakub@redhat.com>
+
+       PR tree-optimization/94573
+       * gcc.dg/store_merging_30.c: New test.
+
+2020-04-14  Yang Yang  <yangyang305@huawei.com>
 
        PR tree-optimization/94574
        * gcc.dg/pr94574.c: New test.
diff --git a/gcc/testsuite/gcc.dg/store_merging_30.c b/gcc/testsuite/gcc.dg/store_merging_30.c
new file mode 100644 (file)
index 0000000..694d560
--- /dev/null
@@ -0,0 +1,20 @@
+/* PR tree-optimization/94573 */
+/* { dg-do compile } */
+/* { dg-require-effective-target store_merge } */
+/* { dg-options "-O2 -fdump-tree-store-merging-details" } */
+/* { dg-final { scan-tree-dump "New sequence of 4 stores to replace old one of 8 stores" "store-merging" { target lp64 } } } */
+
+int var[43][12];
+
+void
+foo (int x)
+{
+  var[x][0] = 0;
+  var[x][1] = 0;
+  var[x][2] = 0;
+  var[x][3] = 0;
+  var[x][4] = 0;
+  var[x][5] = 0;
+  var[x][6] = 0;
+  var[x][7] = 0;
+}
This page took 0.111991 seconds and 5 git commands to generate.