annotate gcc/testsuite/gcc.dg/pr80170.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children 1830386684a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-do run } */
kono
parents:
diff changeset
2 /* { dg-options "-fgimple -O2 -ftree-slp-vectorize" } */
kono
parents:
diff changeset
3 /* { dg-require-effective-target ptr32plus } */
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 struct A
kono
parents:
diff changeset
6 {
kono
parents:
diff changeset
7 void * a;
kono
parents:
diff changeset
8 void * b;
kono
parents:
diff changeset
9 };
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 struct __attribute__((aligned(16))) B
kono
parents:
diff changeset
12 {
kono
parents:
diff changeset
13 void * pad;
kono
parents:
diff changeset
14 void * misaligned;
kono
parents:
diff changeset
15 void * pad2;
kono
parents:
diff changeset
16
kono
parents:
diff changeset
17 struct A a;
kono
parents:
diff changeset
18 };
kono
parents:
diff changeset
19
kono
parents:
diff changeset
20 __attribute__((noclone, noinline))
kono
parents:
diff changeset
21 void __GIMPLE (startwith("slp"))
kono
parents:
diff changeset
22 NullB (void * misalignedPtr)
kono
parents:
diff changeset
23 {
kono
parents:
diff changeset
24 struct B * b;
kono
parents:
diff changeset
25
kono
parents:
diff changeset
26 bb_2:
kono
parents:
diff changeset
27 #if __SIZEOF_LONG__ == 8
kono
parents:
diff changeset
28 b_2 = misalignedPtr_1(D) + 18446744073709551608ul;
kono
parents:
diff changeset
29 #else
kono
parents:
diff changeset
30 b_2 = misalignedPtr_1(D) + 4294967292ul;
kono
parents:
diff changeset
31 #endif
kono
parents:
diff changeset
32 __MEM <struct B> (b_2).a.a = _Literal (void *) 0;
kono
parents:
diff changeset
33 __MEM <struct B> (b_2).a.b = _Literal (void *) 0;
kono
parents:
diff changeset
34 return;
kono
parents:
diff changeset
35
kono
parents:
diff changeset
36 }
kono
parents:
diff changeset
37
kono
parents:
diff changeset
38 int main()
kono
parents:
diff changeset
39 {
kono
parents:
diff changeset
40 struct B b;
kono
parents:
diff changeset
41 NullB (&b.misaligned);
kono
parents:
diff changeset
42 return 0;
kono
parents:
diff changeset
43 }