Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.target / i386 / avx-vzeroupper-2.c
blob66df90f14672f6472f36f5be67a4048bdc0b7768
1 /* { dg-do run } */
2 /* { dg-require-effective-target avx } */
3 /* { dg-options "-O2 -mavx -mtune=generic" } */
5 #include "avx-check.h"
7 static int s[4] = {234566, 8723467, 6576856, 19832468};
8 static int d[4] = {1,1,1,1};
10 static void
11 avx_test (void)
13 __m128i src;
15 src = _mm_loadu_si128 ((__m128i*) s);
16 _mm256_zeroupper ();
17 _mm_storeu_si128 ((__m128i*) d, src);
19 if (__builtin_memcmp (d, s, sizeof (d)))
20 abort ();