* g++.dg/other/i386-2.C (dg-options): Add -mavx512pf.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx2-vpmovzxwq-2.c
blob8a9250aeca53621d30161f1095b80be1241ed339
1 /* { dg-do run } */
2 /* { dg-options "-mavx2 -O2" } */
3 /* { dg-require-effective-target avx2 } */
5 #include "avx2-check.h"
7 static void
8 compute_movzxwq (unsigned short *s, long long int *r)
10 int i;
12 for (i = 0; i < 4; i++)
13 r[i] = s[i];
16 static void
17 avx2_test (void)
19 union128i_w s;
20 union256i_q res;
21 long long int res_ref[4];
23 s.x = _mm_set_epi16 (1, 2, 3, 4, 200, 5000, 6, 8);
25 res.x = _mm256_cvtepu16_epi64 (s.x);
27 compute_movzxwq (s.a, res_ref);
29 if (check_union256i_q (res, res_ref))
30 abort ();