Debian Codegraph @

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

raw
1 // https://issues.dlang.org/show_bug.cgi?id=7411
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 BaseTypeOfVector(T : __vector(T[N]), size_t N)(int i)
8 {
9 assert(is(T == int));
10 assert(N == 4);
11 }
12
13 void main()
14 {
15 BaseTypeOfVector!(__vector(int[4]))(3);
16 }