gcc/testsuite/gdc.dg/simd10447.d
raw| 1 | // https://issues.dlang.org/show_bug.cgi?id=10447 |
| 2 | // { dg-additional-options "-mavx" { target avx_runtime } } |
| 3 | // { dg-do compile { target { avx_runtime || vect_sizes_16B_8B } } } |
| 4 | |
| 5 | void test10447() |
| 6 | { |
| 7 | immutable __vector(double[2]) a = [1.0, 2.0]; |
| 8 | __vector(double[2]) r; |
| 9 | r += a; |
| 10 | r = r * a; |
| 11 | } |