2016-12-21 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx-vzeroupper-12.c
blobe694d4048bdbd0be746fdafed0fcb77c1b9e3714
1 /* { dg-do compile } */
2 /* { dg-options "-O0 -mavx -mvzeroupper -dp" } */
4 #include <immintrin.h>
6 extern __m256 x, y;
8 void
9 foo ()
11 _mm256_zeroall ();
12 _mm256_zeroupper ();
13 x = y;
14 _mm256_zeroupper ();
15 _mm256_zeroupper ();
16 _mm256_zeroupper ();
19 /* { dg-final { scan-assembler-times "avx_vzeroupper" 4 } } */
20 /* { dg-final { scan-assembler-times "\\*avx_vzeroall" 1 } } */