diff options
author | Surya Kumari Jangala <jskumari@linux.ibm.com> | 2024-07-15 00:03:06 -0500 |
---|---|---|
committer | Surya Kumari Jangala <jskumari@linux.ibm.com> | 2024-07-15 01:39:42 -0500 |
commit | 60ba989220d9dec07d82009b0dafe684e652577f (patch) | |
tree | 10ed4e175ef0f7a61132172fa9bc200313f1e5da | |
parent | bf26413fc4081dfd18b915580b35bdb71481327e (diff) | |
download | gcc-60ba989220d9dec07d82009b0dafe684e652577f.zip gcc-60ba989220d9dec07d82009b0dafe684e652577f.tar.gz gcc-60ba989220d9dec07d82009b0dafe684e652577f.tar.bz2 |
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 <jskumari@linux.ibm.com>
gcc/testsuite:
PR testsuite/115894
* gcc.target/arm/pr111235.c: Update expected output.
-rw-r--r-- | gcc/testsuite/gcc.target/arm/pr111235.c | 2 |
1 files changed, 1 insertions, 1 deletions
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" } } */ |