annotate gcc/testsuite/gcc.dg/pr80170.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
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:
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
27 b_2 = misalignedPtr_1(D) + _Literal (__SIZETYPE__) -__SIZEOF_POINTER__;
111
kono
parents:
diff changeset
28 __MEM <struct B> (b_2).a.a = _Literal (void *) 0;
kono
parents:
diff changeset
29 __MEM <struct B> (b_2).a.b = _Literal (void *) 0;
kono
parents:
diff changeset
30 return;
kono
parents:
diff changeset
31
kono
parents:
diff changeset
32 }
kono
parents:
diff changeset
33
kono
parents:
diff changeset
34 int main()
kono
parents:
diff changeset
35 {
kono
parents:
diff changeset
36 struct B b;
kono
parents:
diff changeset
37 NullB (&b.misaligned);
kono
parents:
diff changeset
38 return 0;
kono
parents:
diff changeset
39 }