From: Maciej W. Rozycki Date: Thu, 23 Nov 2023 16:13:58 +0000 (+0000) Subject: ARM/testsuite: Use non-capturing parentheses with pr53447-5.c X-Git-Tag: basepoints/gcc-15~4352 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a74b9be0bb2879d87a43e78ec8db133c8f64faac;p=thirdparty%2Fgcc.git ARM/testsuite: Use non-capturing parentheses with pr53447-5.c Use non-capturing parentheses for the subexpressions used with `scan-assembler-times', to avoid a quirk with double-counting. gcc/testsuite/ * gcc.target/arm/pr53447-5.c: Use non-capturing parentheses with `scan-assembler-times'. --- diff --git a/gcc/testsuite/gcc.target/arm/pr53447-5.c b/gcc/testsuite/gcc.target/arm/pr53447-5.c index da91811710af..e42836134110 100644 --- a/gcc/testsuite/gcc.target/arm/pr53447-5.c +++ b/gcc/testsuite/gcc.target/arm/pr53447-5.c @@ -15,8 +15,6 @@ void foo(long long* p) p[9] -= p[10]; } -/* We accept neon instructions vldr.64 and vstr.64 as well. - Note: DejaGnu counts patterns with alternatives twice, - so actually there are only 10 loads and 9 stores. */ -/* { dg-final { scan-assembler-times "(ldrd|vldr\\.64)" 20 } } */ -/* { dg-final { scan-assembler-times "(strd|vstr\\.64)" 18 } } */ +/* We accept neon instructions vldr.64 and vstr.64 as well. */ +/* { dg-final { scan-assembler-times "(?:ldrd|vldr\\.64)" 10 } } */ +/* { dg-final { scan-assembler-times "(?:strd|vstr\\.64)" 9 } } */