* [committed] d: Compile simd_ctfe.d only on avx_runtime or vect_sizes_16B_8B targets
@ 2022-04-04 9:23 Iain Buclaw
0 siblings, 0 replies; only message in thread
From: Iain Buclaw @ 2022-04-04 9:23 UTC (permalink / raw)
To: gcc-patches
Hi,
This test makes use of the `__vector(int[4])' type, which is not
supported on all targets, so guard the test with target avx_runtime ||
vect_sizes_16B_8B, fixing PR104740.
Regression tested on x86_64-linux-gnu, committed to mainline.
Regards,
Iain.
---
PR d/104740
gcc/testsuite/ChangeLog:
* gdc.dg/simd_ctfe.d: Compile with target avx_runtime or
vect_sizes_16B_8B.
---
gcc/testsuite/gdc.dg/simd_ctfe.d | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gcc/testsuite/gdc.dg/simd_ctfe.d b/gcc/testsuite/gdc.dg/simd_ctfe.d
index b254cf312cb..507de17baa2 100644
--- a/gcc/testsuite/gdc.dg/simd_ctfe.d
+++ b/gcc/testsuite/gdc.dg/simd_ctfe.d
@@ -1,4 +1,5 @@
-// { dg-do compile }
+// { dg-additional-options "-mavx" { target avx_runtime } }
+// { dg-do compile { target { avx_runtime || vect_sizes_16B_8B } } }
import core.simd;
// https://issues.dlang.org/show_bug.cgi?id=19627
--
2.32.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-04-04 9:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-04 9:23 [committed] d: Compile simd_ctfe.d only on avx_runtime or vect_sizes_16B_8B targets Iain Buclaw
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).