diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/avx-vzeroupper-8.c')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/avx-vzeroupper-8.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/avx-vzeroupper-8.c b/gcc/testsuite/gcc.target/i386/avx-vzeroupper-8.c new file mode 100644 index 000000000..0a821c24a --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/avx-vzeroupper-8.c @@ -0,0 +1,16 @@ +/* { dg-do compile } */ +/* { dg-options "-O0 -mavx -mvzeroupper -dp" } */ + +#include <immintrin.h> + +extern __m256 x, y; + +void +foo () +{ + x = y; + _mm256_zeroall (); + _mm256_zeroupper (); +} + +/* { dg-final { scan-assembler-not "avx_vzeroupper" } } */ |