aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2021-03-05 23:01:07 +0100
committerHans-Peter Nilsson <hp@axis.com>2021-03-06 04:14:30 +0100
commit3c297921e80cd8caab3dd2da89bcef97a910bb31 (patch)
tree2910a841b2a30c201d6ac6911aecfb1672d51d28
parentceae9533826aabaf4c78d173c60e3bedeffc6955 (diff)
downloadgcc-3c297921e80cd8caab3dd2da89bcef97a910bb31.zip
gcc-3c297921e80cd8caab3dd2da89bcef97a910bb31.tar.gz
gcc-3c297921e80cd8caab3dd2da89bcef97a910bb31.tar.bz2
gcc.target/cris/pr93372-1.c: Adjust expectations for eliminated stack-frame
See comment. * gcc.target/cris/pr93372-1.c: Adjust expected assembler result to allow an eliminated stack-frame.
-rw-r--r--gcc/testsuite/gcc.target/cris/pr93372-1.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.target/cris/pr93372-1.c b/gcc/testsuite/gcc.target/cris/pr93372-1.c
index 20aa65e..bc63730 100644
--- a/gcc/testsuite/gcc.target/cris/pr93372-1.c
+++ b/gcc/testsuite/gcc.target/cris/pr93372-1.c
@@ -2,7 +2,16 @@
are filled. */
/* { dg-do compile } */
/* { dg-options "-O2" } */
-/* { dg-final { scan-assembler-not "\tnop" } } */
+/* { dg-final { scan-assembler-times "\tnop|addq 8,|subq 8," 2 } } */
+
+/* The reason for the weird variant of scan-assembler-not "\tnop" is that we
+ used to have an unused DWunion temp on stack in xlshrdi3 and delay-slots for
+ the conditional jumps filled by the addq 8/subq setting up that, but with a
+ MAX_FIXED_MODE_SIZE no longer 32, but the default 64, that stack-frame is
+ eliminated, but we no longer have eligible insns to fill the delay-slots.
+ Not wanting to tweak the code in the test-case, this is second best: allowing
+ two nops -or- an addq 8 + subq 8 assuming code generation is otherwise
+ reasonably sane. */
void *f(void **p)
{