testsuite: Fix up tree-ssa/divide-7.c testcase [PR95424]
authorJakub Jelinek <jakub@redhat.com>
Sat, 29 Jan 2022 16:55:51 +0000 (17:55 +0100)
committerJakub Jelinek <jakub@redhat.com>
Sat, 29 Jan 2022 16:55:51 +0000 (17:55 +0100)
This test fails everywhere, because ? doesn't match literal ?.
It should use \\? instead.  I've also changed those .s in there.

2022-01-29  Jakub Jelinek  <jakub@redhat.com>

PR tree-optimization/95424
* gcc.dg/tree-ssa/divide-7.c: Fix up regexps in scan-tree-dump{,-not}.

gcc/testsuite/gcc.dg/tree-ssa/divide-7.c

index 285279a..c605515 100644 (file)
@@ -5,5 +5,5 @@ int f(int x) {
   return 1 / x;
 }
 
-/* { dg-final { scan-tree-dump-not "1 / x_..D.;" "optimized" } } */
-/* { dg-final { scan-tree-dump ".. <= 2 ? x_..D. : 0;" "optimized" } } */
+/* { dg-final { scan-tree-dump-not "1 / x_\[0-9]\+\\\(D\\\);" "optimized" } } */
+/* { dg-final { scan-tree-dump " <= 2 \\? x_\[0-9]\+\\\(D\\\) : 0;" "optimized" } } */