]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
vect/testsuite: Fix vect-simd-clone-1[02].c when dg-do default is compile [PR113899]
authorAndrew Pinski <quic_apinski@quicinc.com>
Tue, 13 Feb 2024 21:39:16 +0000 (13:39 -0800)
committerAndrew Pinski <quic_apinski@quicinc.com>
Wed, 14 Feb 2024 13:41:32 +0000 (05:41 -0800)
The vect testsuite will chose the dg-do default based on if it knows the
running target does not support running with the vector extensions enabled
(for easy of testing). The problem is when it is decided the default is compile
instead of run, dg-additional-sources does not work. So the fix is to set
dg-do on these two testcases to run explicitly.

Tested on x86_64 with a hack to check_vect_support_and_set_flags to set the dg-default
to compile.

gcc/testsuite/ChangeLog:

PR testsuite/113899
* gcc.dg/vect/vect-simd-clone-10.c: Add `dg-do run`
* gcc.dg/vect/vect-simd-clone-12.c: Likewise.

Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
gcc/testsuite/gcc.dg/vect/vect-simd-clone-10.c
gcc/testsuite/gcc.dg/vect/vect-simd-clone-12.c

index ed63ff59cc05e5f0a240376c4ca0985213a7eb48..009c849b7e7ea8e5de054f1575eb29e67ad981af 100644 (file)
@@ -1,3 +1,5 @@
+/* Since this uses dg-additional-sources, need to specify `dg-do run` instead of the default. */
+/* { dg-do run } */
 /* { dg-require-effective-target vect_simd_clones } */
 /* { dg-additional-options "-fopenmp-simd" } */
 /* { dg-additional-options "-mavx" { target avx_runtime } } */
index c44471e35bc1a946212bec1781a0189c60ac0a94..4699a3f3c8001671a180b93b206df2ad98686c4e 100644 (file)
@@ -1,3 +1,5 @@
+/* Since this uses dg-additional-sources, need to specify `dg-do run` instead of the default. */
+/* { dg-do run } */
 /* { dg-require-effective-target vect_simd_clones } */
 /* { dg-additional-options "-fopenmp-simd" } */
 /* { dg-additional-options "-mavx" { target avx_runtime } } */