summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/avx-vzeroupper-22.c
blob: b4e4a5806b0577fbada0e8bde0d57448c0072c1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile } */
/* { dg-options "-O2 -mavx -mtune=generic -dp" } */

extern void exit (int) __attribute__ ((__noreturn__));
extern void bar (void);

int
foo (int i)
{
  if (i == 0)
    {
      bar ();
      exit (1);
    }
  return 0;
}

/* { dg-final { scan-assembler-not "avx_vzeroupper" } } */