]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Mark non-optimized variants as expensive
authorDimitar Dimitrov <dimitar@dinux.eu>
Thu, 15 Feb 2024 19:02:37 +0000 (21:02 +0200)
committerDimitar Dimitrov <dimitar@dinux.eu>
Sun, 18 Feb 2024 09:07:53 +0000 (11:07 +0200)
When not optimized for speed, the test for PR112344 takes several
seconds to execute on native x86_64, and 15 minutes on PRU target
simulator.  Thus mark those variants as expensive.  The -O2 variant
which originally triggered the PR is not expensive, hence it is
still run by default.

PR middle-end/112344

gcc/testsuite/ChangeLog:

* gcc.dg/torture/pr112344.c: Run non-optimized variants only
if expensive tests are allowed.

Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
gcc/testsuite/gcc.dg/torture/pr112344.c

index c52d2c8304bab188d9abaf3e0ea01e58383a4a64..657322caed07874ee39835cda56e2539be48e960 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do run } */
 /* { dg-require-effective-target int32plus } */
+/* { dg-skip-if "non-optimized code is too slow" { ! run_expensive_tests } { "*" } { "-O2" "-O3" } } */
 
 int
 main ()