summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr46253.c
blob: 406790aba6e99e5ab1dfbb5439cb5c77ef541396 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-O -g -mf16c -mtune=generic -dp" } */

typedef __m256i __attribute__ ((__vector_size__ (32)));

__m256i bar (void);
void foo (void)
{
  int i = 0;
  bar ();
  __builtin_ia32_vzeroupper ();
  while (++i);
}

/* { dg-final { scan-assembler-times "avx_vzeroupper" 1 } } */