summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr59794-7.c
blob: a1799ddbfbe2e5698d488d54842925d5ef57dfca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* PR target/59794 */
/* { dg-do compile } */
/* { dg-options "-O2 -mno-avx" } */
/* { dg-skip-if "no AVX vector" { *-*-mingw* } } */

typedef int __v8si __attribute__ ((__vector_size__ (32)));

extern __v8si x;

__v8si
foo (void)
{ /* { dg-warning "AVX vector return without AVX enabled changes the ABI" } */
  return x;
}