vrp101.c: Fix scan-tree-dump regex.
authorJakub Jelinek <jakub@redhat.com>
Wed, 14 Jun 2017 06:25:06 +0000 (08:25 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 14 Jun 2017 06:25:06 +0000 (08:25 +0200)
* gcc.dg/tree-ssa/vrp101.c: Fix scan-tree-dump regex.
* gcc.dg/tree-ssa/builtin-sprintf-2.c: Likewise.  Adjust comment.

From-SVN: r249180

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-2.c
gcc/testsuite/gcc.dg/tree-ssa/vrp101.c

index f32b8c8258680c61325196a981924a2613ebb808..1378dc8946c471ee8defff46890883eb0298df03 100644 (file)
@@ -1,3 +1,8 @@
+2017-06-14  Jakub Jelinek  <jakub@redhat.com>
+
+       * gcc.dg/tree-ssa/vrp101.c: Fix scan-tree-dump regex.
+       * gcc.dg/tree-ssa/builtin-sprintf-2.c: Likewise.  Adjust comment.
+
 2017-06-13  Jakub Jelinek  <jakub@redhat.com>
 
        PR c++/80973
index e15d88b7341df201e8b80f8a6c0251a5d021c035..17908ac6c41a360cebb2200b64e71747d3612023 100644 (file)
@@ -279,18 +279,18 @@ RNG (0,  6,   8, "%s%ls", "1", L"2");
    <bb 2>:
    result_3 = __builtin_sprintf (&MEM[(void *)&buf8k + 8192B], "%c", 32);
    if (result_3 != 0)
-     goto <bb 3>; [50.0%]
+     goto <bb 3>; [50.0%] [count: INV]
    else
-     goto <bb 4>; [50.0%]
+     goto <bb 4>; [50.0%] [count: INV]
 
-   <bb 3>[50.0%]:
+   <bb 3>[50.0%] [count: INV]:
    must_not_eliminate ();
 
 */
 
 /*  Only conditional calls to must_not_eliminate must be made (with
     any probability):
-    { dg-final { scan-tree-dump-times "> \\\[\[0-9.\]+%\\\]\\ \\\[count:\\[^:\\]*\\\]:\n *must_not_eliminate" 127 "optimized" { target { ilp32 || lp64 } } } }
-    { dg-final { scan-tree-dump-times "> \\\[\[0-9.\]+%\\\]\\ \\\[count:\\[^:\\]*\\\]:\n *must_not_eliminate" 96 "optimized" { target { { ! ilp32 } && { ! lp64 } } } } }
+    { dg-final { scan-tree-dump-times "> \\\[\[0-9.\]+%\\\] \\\[count: \[^0-9INV\]*\\\]:\n *must_not_eliminate" 127 "optimized" { target { ilp32 || lp64 } } } }
+    { dg-final { scan-tree-dump-times "> \\\[\[0-9.\]+%\\\] \\\[count: \[^0-9INV\]*\\\]:\n *must_not_eliminate" 96 "optimized" { target { { ! ilp32 } && { ! lp64 } } } } }
     No unconditional calls to abort should be made:
     { dg-final { scan-tree-dump-not ";\n *must_not_eliminate" "optimized" } } */
index e7cad2897632b6a9cc2446f01b985dd09ee83360..c9feb2568578dbacb84f6ae3036340dd61526e72 100644 (file)
@@ -10,4 +10,4 @@ int main ()
   return 0;
 }
 
-/* { dg-final { scan-tree-dump "<bb 2> \\\[\[0-9.\]+%\\\] \\\[count: \\[^:\\]*\\\]:\[\n\r \]*return 0;" "optimized" } } */
+/* { dg-final { scan-tree-dump "<bb 2> \\\[\[0-9.\]+%\\\] \\\[count: \[0-9INV\]*\\\]:\[\n\r \]*return 0;" "optimized" } } */