]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
arm: Fix the expected output of the test pr111235.c [PR115894]
authorSurya Kumari Jangala <jskumari@linux.ibm.com>
Mon, 15 Jul 2024 05:03:06 +0000 (00:03 -0500)
committerSurya Kumari Jangala <jskumari@linux.ibm.com>
Mon, 15 Jul 2024 06:39:42 +0000 (01:39 -0500)
With r15-1619-g3b9b8d6cfdf593, pr111235.c fails due to different
registers used in ldrexd instruction. The key part of this test is that
the compiler generates LDREXD. The registers used for that are pretty
much irrelevant as they are not matched with any other operations within
the test. This patch changes the test to test only for the mnemonic and
not for any of the operands.

2024-07-15  Surya Kumari Jangala  <jskumari@linux.ibm.com>

gcc/testsuite:
PR testsuite/115894
* gcc.target/arm/pr111235.c: Update expected output.

gcc/testsuite/gcc.target/arm/pr111235.c

index b06a5bfb8e294edf04ec9b7b6d8fe5d1ac73b1e7..1f732cab983ad9085d1d07335ca781689d280a1e 100644 (file)
@@ -31,7 +31,7 @@ void t3 (long long *p, int x)
     atomic_store_explicit (p, x, memory_order_relaxed);
 }
 
-/* { dg-final { scan-assembler-times "ldrexd\tr\[0-9\]+, r\[0-9\]+, \\\[r\[0-9\]+\\\]" 2 } } */
+/* { dg-final { scan-assembler-times "ldrexd\t" 2 } } */
 /* { dg-final { scan-assembler-not "ldrgt" } } */
 /* { dg-final { scan-assembler-not "ldrdgt" } } */
 /* { dg-final { scan-assembler-not "ldrexdgt" } } */