Got quoting of parens wrong. Tested on x86_64-unknown-linux-gnu, applied.
Richard. 2018-02-09 Richard Biener <rguent...@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\\\)" } } */