gcc/testsuite/gcc.target/i386/avx-setzero-pd-256-1.c
raw| 1 | /* { dg-do run } */ |
| 2 | /* { dg-require-effective-target avx } */ |
| 3 | /* { dg-options "-O2 -mavx" } */ |
| 4 | |
| 5 | #include "avx-check.h" |
| 6 | |
| 7 | void static |
| 8 | avx_test (void) |
| 9 | { |
| 10 | int i; |
| 11 | union256d u; |
| 12 | double e [4]; |
| 13 | |
| 14 | u.x = _mm256_setzero_pd (); |
| 15 | |
| 16 | for (i = 0; i < 4; i++) |
| 17 | e[i] = 0.0; |
| 18 | |
| 19 | if (check_union256d (u, e)) |
| 20 | abort (); |
| 21 | } |