aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr84811.c
blob: 7cf7cf2cbcd67ca7b1790e53c41ac394ac3f3bcc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do compile { target lp64 } } */

int a;
long b[1][9];
typedef long V __attribute__((vector_size (16), may_alias));

void
foo ()
{
  V *c = (V *) ((char *) b + -9060696663385964544);
  *c = (V) { 1, 1 };
  c++;
  *c = (V) { 1, 1 };
  c++;
  *c = (V) { 1, 1 };
  c++;
  *c = (V) { 1, 1 };
  long __attribute__((may_alias)) *d = (long *) ((char *) b + 162675373468811328);
  *d = 1;
}