Re: [PATCH] Adjust PR84278 testcase

2018-02-09 Thread Richard Sandiford
Richard Biener  writes:
> Got quoting of parens wrong.
>
> Tested on x86_64-unknown-linux-gnu, applied.
>
> Richard.
>
> 2018-02-09  Richard Biener  
>
>   PR tree-optimization/84278
>   * gcc.target/i386/pr84278.c: Adjust regex.
>
> Index: gcc/testsuite/gcc.target/i386/pr84278.c
> ===
> --- gcc/testsuite/gcc.target/i386/pr84278.c   (revision 257491)
> +++ gcc/testsuite/gcc.target/i386/pr84278.c   (working copy)
> @@ -15,4 +15,4 @@ void foo(void)
>  }
>  }
>  
> -/* { dg-final { scan-assembler-not "\(%.sp\)" } } */
> +/* { dg-final { scan-assembler-not "\\\(%.sp\\\)" } } */

FWIW:

/* { dg-final { scan-assembler-not {\(%.sp\)} } } */

works too and has saner escaping rules.

Richard


[PATCH] Adjust PR84278 testcase

2018-02-09 Thread Richard Biener

Got quoting of parens wrong.

Tested on x86_64-unknown-linux-gnu, applied.

Richard.

2018-02-09  Richard Biener  

PR tree-optimization/84278
* gcc.target/i386/pr84278.c: Adjust regex.

Index: gcc/testsuite/gcc.target/i386/pr84278.c
===
--- gcc/testsuite/gcc.target/i386/pr84278.c (revision 257491)
+++ gcc/testsuite/gcc.target/i386/pr84278.c (working copy)
@@ -15,4 +15,4 @@ void foo(void)
 }
 }
 
-/* { dg-final { scan-assembler-not "\(%.sp\)" } } */
+/* { dg-final { scan-assembler-not "\\\(%.sp\\\)" } } */