aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/vector-subscript-5.c
blob: 66ed87a4d0bfe41550b9d3f5f9341615609cf603 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile } */

typedef int U __attribute__ ((vector_size (16)));

int
foo (int i)
{
#if __SSE2__
  register
#endif
    U u
#if __SSE2__
      asm ("xmm0")
#endif
      ;
  return u[i];
}