gcc/testsuite/gdc.dg/torture/simd9304.d
raw| 1 | // https://issues.dlang.org/show_bug.cgi?id=9304 |
| 2 | // https://issues.dlang.org/show_bug.cgi?id=9322 |
| 3 | // { dg-additional-options "-mavx" { target avx_runtime } } |
| 4 | // { dg-do run { target { avx_runtime || vect_sizes_16B_8B } } } |
| 5 | // { dg-skip-if "needs gcc/config.d" { ! d_runtime } } |
| 6 | import core.simd; |
| 7 | |
| 8 | float4 foo9304(float4 a) |
| 9 | { |
| 10 | return -a; |
| 11 | } |
| 12 | |
| 13 | void main() |
| 14 | { |
| 15 | auto a = foo9304([0, 1, 2, 3]); |
| 16 | assert(a.array == [0,-1,-2,-3]); |
| 17 | } |