]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ARM/testsuite: Use non-capturing parentheses with pr53447-5.c
authorMaciej W. Rozycki <macro@embecosm.com>
Thu, 23 Nov 2023 16:13:58 +0000 (16:13 +0000)
committerMaciej W. Rozycki <macro@embecosm.com>
Thu, 23 Nov 2023 16:13:58 +0000 (16:13 +0000)
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'.

gcc/testsuite/gcc.target/arm/pr53447-5.c

index da91811710af1e3960a2fc808040cacab9415136..e428361341101ec7b743588d693d5dc0032ad998 100644 (file)
@@ -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 } } */