Skip to content

Commit 4e80432

Browse files
committed
testsuite: Skip pr112305.c for -O[01] on simulators
gcc.dg/torture/pr112305.c contains an inner loop that executes 0x8000_0014 times and an outer loop that executes 5 times, giving about 10 billion total executions of the inner loop body. At -O2 and above we are able to remove the inner loop, but at -O1 we keep a no-op loop: dls lr, r3 .L3: subs r3, r3, #1 le lr, .L3 and at -O0 we of course don't optimise. This can lead to long execution times on simulators, possibly triggering a timeout. gcc/testsuite * gcc.dg/torture/pr112305.c: Skip at -O0 and -O1 for simulators.
1 parent 9f9afc6 commit 4e80432

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gcc/testsuite/gcc.dg/torture/pr112305.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* { dg-do run } */
22
/* { dg-require-effective-target int32plus } */
3+
/* { dg-skip-if "long-running loop" { simulator } { "-O0" "-O1" } } */
34

45
int a;
56
void b()

0 commit comments

Comments
 (0)