diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/avx512f-setzero-ps-1.c')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/avx512f-setzero-ps-1.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/avx512f-setzero-ps-1.c b/gcc/testsuite/gcc.target/i386/avx512f-setzero-ps-1.c new file mode 100644 index 00000000000..5b1ee29e340 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/avx512f-setzero-ps-1.c @@ -0,0 +1,21 @@ +/* { dg-do run } */ +/* { dg-options "-O2 -mavx512f" } */ +/* { dg-require-effective-target avx512f } */ + +#include "avx512f-check.h" + +void static +avx512f_test (void) +{ + int i; + union512 res; + float res_ref[16]; + + res.x = _mm512_setzero_ps (); + + for (i = 0; i < 16; i++) + res_ref[i] = 0.0; + + if (check_union512 (res, res_ref)) + abort (); +} |