Debian Codegraph @

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

raw
1 // https://issues.dlang.org/show_bug.cgi?id=9200
2 // { dg-additional-options "-mavx" { target avx_runtime } }
3 // { dg-do run { target { avx_runtime || vect_sizes_16B_8B } } }
4 // { dg-skip-if "needs gcc/config.d" { ! d_runtime } }
5 import core.simd;
6
7 void bar9200(double[2] a)
8 {
9 assert(a[0] == 1);
10 assert(a[1] == 2);
11 }
12
13 double2 * v9200(double2* a)
14 {
15 return a;
16 }
17
18 void main()
19 {
20 double2 a = [1, 2];
21
22 *v9200(&a) = a;
23
24 bar9200(a.array);
25 }