]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
AArch64/testsuite: Use non-capturing parentheses with ccmp_1.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/aarch64/ccmp_1.c: Use non-capturing parentheses
with `scan-assembler-times'.

gcc/testsuite/gcc.target/aarch64/ccmp_1.c

index fd38b2cfdb834c6395ddb939b54d23345c51b8d9..9b68c070f9d7c220eaa581cc91fab85eca405aac 100644 (file)
@@ -86,8 +86,8 @@ f13 (int a, int b)
 /* { dg-final { scan-assembler "cmp\t(.)+35" } } */
 
 /* { dg-final { scan-assembler-times "\tcmp\tw\[0-9\]+, 0" 4 } } */
-/* { dg-final { scan-assembler-times "fcmpe\t(.)+0\\.0" 2 } } */
-/* { dg-final { scan-assembler-times "fcmp\t(.)+0\\.0" 2 } } */
+/* { dg-final { scan-assembler-times "fcmpe\t(?:.)+0\\.0" 1 } } */
+/* { dg-final { scan-assembler-times "fcmp\t(?:.)+0\\.0" 1 } } */
 
 /* { dg-final { scan-assembler "adds\t" } } */
 /* { dg-final { scan-assembler-times "\tccmp\t" 11 } } */