public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-9055] testsuite: Mark non-optimized variants as expensive
@ 2024-02-18 10:06 Dimitar Dimitrov
  0 siblings, 0 replies; only message in thread
From: Dimitar Dimitrov @ 2024-02-18 10:06 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:3796216bfa49b5ca288afe0760931a4c5b8ea346

commit r14-9055-g3796216bfa49b5ca288afe0760931a4c5b8ea346
Author: Dimitar Dimitrov <dimitar@dinux.eu>
Date:   Thu Feb 15 21:02:37 2024 +0200

    testsuite: Mark non-optimized variants as expensive
    
    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>

Diff:
---
 gcc/testsuite/gcc.dg/torture/pr112344.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/testsuite/gcc.dg/torture/pr112344.c b/gcc/testsuite/gcc.dg/torture/pr112344.c
index c52d2c8304ba..657322caed07 100644
--- a/gcc/testsuite/gcc.dg/torture/pr112344.c
+++ b/gcc/testsuite/gcc.dg/torture/pr112344.c
@@ -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 ()

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-02-18 10:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-18 10:06 [gcc r14-9055] testsuite: Mark non-optimized variants as expensive Dimitar Dimitrov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).