diff mbox series

[committed] d: Compile simd_ctfe.d only on avx_runtime or vect_sizes_16B_8B targets

Message ID 20220404092331.1753601-1-ibuclaw@gdcproject.org
State New
Headers show
Series [committed] d: Compile simd_ctfe.d only on avx_runtime or vect_sizes_16B_8B targets | expand

Commit Message

Iain Buclaw April 4, 2022, 9:23 a.m. UTC
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 mbox series

Patch

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