summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.dg/simd10447.d
blob: e0064c423068ff5132f9d3d8fefba1834ba0357d (plain)
1
2
3
4
5
6
7
8
9
10
11
// https://issues.dlang.org/show_bug.cgi?id=10447
// { dg-additional-options "-mavx" { target avx_runtime } }
// { dg-do compile { target { avx_runtime || vect_sizes_16B_8B } } }

void test10447()
{
    immutable __vector(double[2]) a = [1.0, 2.0];
    __vector(double[2]) r;
    r += a;
    r = r * a;
}