Adjust PR84278 testcase

Message ID alpine.LSU.2.20.1802091016560.18265@zhemvz.fhfr.qr
State New
Headers show
Series
  • Adjust PR84278 testcase
Related show

Commit Message

Richard Biener Feb. 9, 2018, 9:19 a.m.
Got quoting of parens wrong.

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

Richard.

2018-02-09  Richard Biener  <rguenther@suse.de>

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

Comments

Richard Sandiford Feb. 9, 2018, 5:05 p.m. | #1
Richard Biener <rguenther@suse.de> writes:
> Got quoting of parens wrong.
>
> Tested on x86_64-unknown-linux-gnu, applied.
>
> Richard.
>
> 2018-02-09  Richard Biener  <rguenther@suse.de>
>
> 	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

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\\\)" } } */