From 60ba989220d9dec07d82009b0dafe684e652577f Mon Sep 17 00:00:00 2001 From: Surya Kumari Jangala Date: Mon, 15 Jul 2024 00:03:06 -0500 Subject: 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 gcc/testsuite: PR testsuite/115894 * gcc.target/arm/pr111235.c: Update expected output. --- 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 b06a5bf..1f732ca 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" } } */ -- cgit v1.1