aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr80583.c
blob: 6fe3212b65ce5971f5953d150351be8e0613a7d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* PR target/80583 */
/* { dg-do compile } */
/* { dg-options "-O0 -mno-avx" } */

typedef int V __attribute__((__vector_size__(32)));
struct S { V a; };

V __attribute__((target ("avx")))
foo (struct S *b)
{
  V x = b->a;
  return x;
}