c++: fix explicit/copy problem [PR109247]
[official-gcc.git] / gcc / testsuite / gdc.dg / torture / simd23084.d
blobad18813a562c341a84551ae87d0a7f60403c3880
1 // https://issues.dlang.org/show_bug.cgi?id=23084
2 // { dg-additional-options "-mavx" { target avx_runtime } }
3 // { dg-do compile { target { avx_runtime || vect_sizes_16B_8B } } }
4 // { dg-skip-if "needs gcc/config.d" { ! d_runtime } }
6 __vector(int[4]) test23084a(__vector(int[4]) a)
8 __vector(short[8]) r = cast(short)(a.array[0]);
9 return cast(__vector(int[4]))r;
12 __vector(int[4]) test23084b(__vector(int[4]) a)
14 __vector(byte[16]) r = cast(byte)(a.array[0]);
15 return cast(__vector(int[4]))r;