summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/avx-vzeroupper-16.c
blob: b64add14e6bf453ddde9e3707391f48387491e79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile { target lp64 } } */
/* { dg-options "-O2 -mavx -mabi=ms -maccumulate-outgoing-args -dp" } */

typedef float __m256 __attribute__ ((__vector_size__ (32), __may_alias__));

extern __m256 x;

extern __m256 __attribute__ ((sysv_abi)) bar (__m256);

void
foo (void)
{
  bar (x);
}

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