[v2] testsuite: Mark non-optimized variants as expensive
Checks
Context |
Check |
Description |
linaro-tcwg-bot/tcwg_gcc_build--master-arm |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_gcc_check--master-arm |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_gcc_check--master-aarch64 |
success
|
Testing passed
|
Commit Message
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.
Ok for trunk?
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>
---
Changes since V1:
- Mark as expensive instead of outright disabling variants
which are not optimized for speed.
gcc/testsuite/gcc.dg/torture/pr112344.c | 1 +
1 file changed, 1 insertion(+)
Comments
On Sat, Feb 17, 2024 at 10:15:55PM +0200, Dimitar Dimitrov wrote:
> 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.
>
> Ok for trunk?
>
> PR middle-end/112344
>
> gcc/testsuite/ChangeLog:
>
> * gcc.dg/torture/pr112344.c: Run non-optimized variants only
> if expensive tests are allowed.
Ok, thanks.
Jakub
@@ -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 ()