PR target/80969 - Fix ICE with -mabi=ms -mavx512f, reduce wasted space when realignin...
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx2-vpcmpeqd-2.c
blob0cc10458fda077313ce8c8dc19f63290059d2a0e
1 /* { dg-do run } */
2 /* { dg-options "-mavx2 -O2" } */
3 /* { dg-require-effective-target avx2 } */
5 #include "avx2-check.h"
7 static void
8 avx2_test (void)
10 union256i_d u, s1, s2;
11 int e[8];
12 int i;
14 s1.x = _mm256_set_epi32 (1, 2, 3, 4, 10, 20, 30, 90000);
16 s2.x = _mm256_set_epi32 (88, 44, 3, 22, 11, 98, 76, -100);
18 u.x = _mm256_cmpeq_epi32 (s1.x, s2.x);
20 for (i = 0; i < 8; i++)
21 e[i] = (s1.a[i] == s2.a[i]) ? -1 : 0;
23 if (check_union256i_d (u, e))
24 abort ();