repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
tree-optimization/111233 - loop splitting miscompile
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
pr110243.c
blob
07dffd95d4d4ac9edbb90c50d89bdd2742510585
1
/* { dg-do run } */
2
/* { dg-require-effective-target lp64 } */
3
4
#define X 1100000000
5
unsigned char
a
;
6
long
b
=
X
;
7
int
c
[
9
][
1
];
8
unsigned
d
;
9
static long
*
e
= &
b
, *
f
= &
b
;
10
int
g
() {
11
if
(
a
&&
a
<=
'9'
)
12
return
'0'
;
13
if
(
a
)
14
return
10
;
15
return
-
1
;
16
}
17
int
main
() {
18
d
=
0
;
19
for
(; (
int
)*
f
-(
X
-
1
) +
d
<
9
;
d
++)
20
c
[
g
() + (
int
)*
f
+ ((
int
)*
e
-
X
) -(
X
-
1
) +
d
]
21
[
0
] =
0
;
22
}