From: Surya Kumari Jangala Date: Mon, 15 Jul 2024 05:03:06 +0000 (-0500) Subject: arm: Fix the expected output of the test pr111235.c [PR115894] X-Git-Tag: basepoints/gcc-16~7517 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60ba989220d9dec07d82009b0dafe684e652577f;p=thirdparty%2Fgcc.git 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. --- diff --git a/gcc/testsuite/gcc.target/arm/pr111235.c b/gcc/testsuite/gcc.target/arm/pr111235.c index b06a5bfb8e2..1f732cab983 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" } } */