Debian Codegraph @

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

raw
1 // { dg-additional-options "-mavx" { target avx_runtime } }
2 // { dg-do run { target { avx_runtime || vect_sizes_16B_8B } } }
3 // { dg-skip-if "needs gcc/config.d" { ! d_runtime } }
4 import core.simd;
5
6 void main()
7 {
8 int4 c = 7;
9 (cast(int[4])c)[3] = 4;
10 (cast(int*)&c)[2] = 4;
11 c.array[1] = 4;
12 c.ptr[3] = 4;
13 assert(c.length == 4);
14 }