summaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/pr59032.c
blob: 327f5aeb6bc2898e44ac2333d0ee44a2dee79226 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* { dg-do compile } */
/* { dg-options "-O2" } */

void
foo()
{
  float v __attribute__((vector_size(8)));
  v++;
}

void
foo2 ()
{
  float v __attribute__((vector_size(8)));
  ++v;
}

void
foo3 ()
{
  float v __attribute__((vector_size(8)));
  v--;
}

void
foo4 ()
{
  float v __attribute__((vector_size(8)));
  --v;
}