Tweak tests to avoid fallout from MEM_REF changes on targets that don't enable...
authorMartin Sebor <msebor@redhat.com>
Wed, 12 Jun 2019 20:43:27 +0000 (20:43 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Wed, 12 Jun 2019 20:43:27 +0000 (14:43 -0600)
Tweak tests to avoid fallout from MEM_REF changes on targets that don't
enable store merging but achieve the same effect by other means (DSE).

gcc/testsuite?ChangeLog:

PR middle-end/90676
* gcc.dg/tree-ssa/pr30375.c: Adjust and simplify expected test
output some more.
* gcc.dg/tree-ssa/slsr-27.c: Ditto.
* gcc.dg/tree-ssa/slsr-28.c: Ditto.
* gcc.dg/tree-ssa/slsr-29.c: Ditto.
* gcc.dg/tree-ssa/ssa-dse-24.c: Ditto.

From-SVN: r272218

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr30375.c
gcc/testsuite/gcc.dg/tree-ssa/slsr-27.c
gcc/testsuite/gcc.dg/tree-ssa/slsr-28.c
gcc/testsuite/gcc.dg/tree-ssa/slsr-29.c
gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-24.c

index ebc738bfc05db94af0cffab00b1fa1e4933590d6..9dc9ee8bd6aecf5316d79383adfee5e77e71a1d5 100644 (file)
@@ -1,3 +1,13 @@
+2019-06-12  Martin Sebor  <msebor@redhat.com>
+
+       PR middle-end/90676
+       * gcc.dg/tree-ssa/pr30375.c: Adjust and simplify expected test
+       output some more.
+       * gcc.dg/tree-ssa/slsr-27.c: Ditto.
+       * gcc.dg/tree-ssa/slsr-28.c: Ditto.
+       * gcc.dg/tree-ssa/slsr-29.c: Ditto.
+       * gcc.dg/tree-ssa/ssa-dse-24.c: Ditto.
+
 2019-06-12  Marek Polacek  <polacek@redhat.com>
 
        PR c++/90736 - bogus error with alignof.
index 5c068a3ddc00b4209439c3cbbf3c695bd3c24455..b3ac2c397e37eed2c44b7951db6b8633bc4701c3 100644 (file)
@@ -22,6 +22,4 @@ void test_signed_msg_encoding(void)
     f();
 }
 
-/* { dg-final { scan-tree-dump-times "MEM\\\[\\(struct _s \\*\\)&signInfo \\+ \[0-9\]+B\\\] = {}" 1 "dse1" { target { ! store_merge } } } }
-   { dg-final { scan-tree-dump-times "MEM <char\\\[8]> \\\[\\(struct _s \\*\\)&signInfo \\+ \[0-9\]+B\\\] = {}" 1 "dse1" { target { store_merge } } } } */
-
+/* { dg-final { scan-tree-dump-times "MEM <char\\\[\[0-9\]+]> \\\[\\(struct _s \\*\\)&signInfo \\+ \[0-9\]+B\\\] = {}" 1 "dse1"  } } */
index e3560ee5d9aeb8ce96f4686ee5770d858e26537b..c8f8e612da2da2676edd08b6e314bf30502a602c 100644 (file)
@@ -19,5 +19,5 @@ f (struct x *p, unsigned int n)
 /* { dg-final { scan-tree-dump-times "\\* 4;" 1 "dom3" { target { int32 } } } } */
 /* { dg-final { scan-tree-dump-times "\\* 2;" 1 "dom3" { target { int16 } } } } */
 /* { dg-final { scan-tree-dump-times "p_\\d\+\\(D\\) \\+ \[^\r\n\]*_\\d\+;" 1 "dom3" } } */
-/* { dg-final { scan-tree-dump-times "MEM\\\[\\(struct x \\*\\)\[^\r\n\]*_\\d\+" 3 "dom3" { target { ! store_merge } } } } */
-/* { dg-final { scan-tree-dump-times "MEM <int> \\\[\\(struct x \\*\\)\[^\r\n\]*_\\d\+" 3 "dom3" { target { store_merge } } } } */
+/*
+  { dg-final { scan-tree-dump-times "MEM *<int>? *\\\[\\(struct x \\*\\)\[^\r\n\]*_\\d\+" 3 "dom3" } } */
index 0db27af76ce54753ce31f9343d8da1cbf4fbc467..b18e9c1fe215e64a847a8391b1a345dc74a54da1 100644 (file)
@@ -23,5 +23,4 @@ f (struct x *p, unsigned int n)
 /* { dg-final { scan-tree-dump-times "\\* 4;" 1 "dom3" { target { int32 } } } } */
 /* { dg-final { scan-tree-dump-times "\\* 2;" 1 "dom3" { target { int16 } } } } */
 /* { dg-final { scan-tree-dump-times "p_\\d\+\\(D\\) \\+ \[^\r\n\]*_\\d\+" 1 "dom3" } } */
-/* { dg-final { scan-tree-dump-times "MEM\\\[\\(struct x \\*\\)\[^\r\n\]*_\\d\+" 9 "dom3" { target { ! store_merge } } } } */
-/* { dg-final { scan-tree-dump-times "MEM <int> \\\[\\(struct x \\*\\)\[^\r\n\]*_\\d\+" 9 "dom3" { target { store_merge } } } } */
+/* { dg-final { scan-tree-dump-times "MEM *<int>? *\\\[\\(struct x \\*\\)\[^\r\n\]*_\\d\+" 9 "dom3" } } */
index 0f6169df3127a5b6fadaa4aa891f0535a92fa935..00e8d2b52b342d7528dda702bcd3ed03763323ba 100644 (file)
@@ -25,5 +25,4 @@ f (struct x *p, unsigned int n)
 /* { dg-final { scan-tree-dump-times "\\* 4;" 1 "dom3" { target { int32 } } } } */
 /* { dg-final { scan-tree-dump-times "\\* 2;" 1 "dom3" { target { int16 } } } } */
 /* { dg-final { scan-tree-dump-times "p_\\d\+\\(D\\) \\+ \[^\r\n\]*_\\d\+" 1 "dom3" } } */
-/* { dg-final { scan-tree-dump-times "MEM\\\[\\(struct x \\*\\)\[^\r\n\]*_\\d\+" 9 "dom3" { target { ! store_merge } } } } */
-/* { dg-final { scan-tree-dump-times "MEM <int> \\\[\\(struct x \\*\\)\[^\r\n\]*_\\d\+" 9 "dom3" { target { store_merge } } } } */
+/* { dg-final { scan-tree-dump-times "MEM *<int>? *\\\[\\(struct x \\*\\)\[^\r\n\]*_\\d\+" 9 "dom3" } } */
index 240c90637171d2774195108b284f6b59de2ca010..bc4b071b616d8b1133de84103344e3df9ad549bc 100644 (file)
@@ -59,5 +59,4 @@ void foo(int prec,
     bar (&info);
 }
 
-/* { dg-final { scan-tree-dump-times "MEM\\\[\\(struct printf_info \\*\\)&info \\+ \[0-9\]+B\\\] = {}" 1 "dse1" { target { ! store_merge } } } }
-   { dg-final { scan-tree-dump-times "MEM <char[4]> \\\[\\(struct printf_info \\*\\)&info \\+ \[0-9\]+B\\\] = {}" 1 "dse1" { target { store_merge } } } } */
+/* { dg-final { scan-tree-dump-times "MEM <char\\\[\[0-9\]+]> \\\[\\(struct printf_info \\*\\)&info \\+ \[0-9\]+B\\\] = {}" 1 "dse1" } } */