]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/tree-ssa/pr88775-1.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr88775-1.c
CommitLineData
93aa3c4a
JJ
1/* PR tree-optimization/88775 */
2/* { dg-do compile } */
3/* { dg-options "-O2 -fdump-tree-optimized" } */
4/* { dg-final { scan-tree-dump-times "return 1;" 10 "optimized" } } */
5
6int a[64] = {};
7int b[64] = {};
8
9int
10f1 (void)
11{
12 return (__UINTPTR_TYPE__) &a[2] != (__UINTPTR_TYPE__) &b[2];
13}
14
15int
16f2 (void)
17{
18 return (__UINTPTR_TYPE__) &a[2] != (__UINTPTR_TYPE__) &b[10];
19}
20
21int
22f3 (void)
23{
24 return (__UINTPTR_TYPE__) &a[0] != (__UINTPTR_TYPE__) &b[0];
25}
26
27int
28f4 (void)
29{
30 return (__UINTPTR_TYPE__) &a[64] != (__UINTPTR_TYPE__) &b[64];
31}
32
33int
34f5 (void)
35{
36 int c[64] = {};
37 return (__UINTPTR_TYPE__) &a[0] != (__UINTPTR_TYPE__) &c[64];
38}
39
40int
41f6 (void)
42{
43 int c[64] = {};
44 return (__UINTPTR_TYPE__) &b[64] != (__UINTPTR_TYPE__) &c[0];
45}
46
47int
48f7 (void)
49{
50 int c[64] = {}, d[64] = {};
51 return (__UINTPTR_TYPE__) &c[2] != (__UINTPTR_TYPE__) &d[2];
52}
53
54int
55f8 (void)
56{
57 int c[64] = {}, d[64] = {};
58 return (__UINTPTR_TYPE__) &c[2] != (__UINTPTR_TYPE__) &d[10];
59}
60
61int
62f9 (void)
63{
64 int c[64] = {}, d[64] = {};
65 return (__UINTPTR_TYPE__) &c[0] != (__UINTPTR_TYPE__) &d[0];
66}
67
68int
69f10 (void)
70{
71 int c[64] = {}, d[64] = {};
72 return (__UINTPTR_TYPE__) &c[64] != (__UINTPTR_TYPE__) &d[64];
73}