https://gcc.gnu.org/g:60ba989220d9dec07d82009b0dafe684e652577f

commit r15-2036-g60ba989220d9dec07d82009b0dafe684e652577f
Author: Surya Kumari Jangala <jskum...@linux.ibm.com>
Date:   Mon Jul 15 00:03:06 2024 -0500

    arm: Fix the expected output of the test pr111235.c  [PR115894]
    
    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  <jskum...@linux.ibm.com>
    
    gcc/testsuite:
            PR testsuite/115894
            * gcc.target/arm/pr111235.c: Update expected output.

Diff:
---
 gcc/testsuite/gcc.target/arm/pr111235.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.target/arm/pr111235.c 
b/gcc/testsuite/gcc.target/arm/pr111235.c
index b06a5bfb8e29..1f732cab983a 100644
--- a/gcc/testsuite/gcc.target/arm/pr111235.c
+++ b/gcc/testsuite/gcc.target/arm/pr111235.c
@@ -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" } } */

Reply via email to