Debian Codegraph @

gcc/testsuite/gdc.dg/torture/simd23084.d

raw
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 } }
5
6 __vector(int[4]) test23084a(__vector(int[4]) a)
7 {
8 __vector(short[8]) r = cast(short)(a.array[0]);
9 return cast(__vector(int[4]))r;
10 }
11
12 __vector(int[4]) test23084b(__vector(int[4]) a)
13 {
14 __vector(byte[16]) r = cast(byte)(a.array[0]);
15 return cast(__vector(int[4]))r;
16 }