repo.or.cz
/
qemu-kvm
/
fedora.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fix raw_pread_aligned return value
[qemu-kvm/fedora.git]
/
tests
/
cris
/
check_gcctorture_pr28634-1.c
blob
45ecd159b3caf586b3998198ee83ccd14690a94f
1
/* PR rtl-optimization/28634. On targets with delayed branches,
2
dbr_schedule could do the next iteration's addition in the
3
branch delay slot, then subtract the value again if the branch
4
wasn't taken. This can lead to rounding errors. */
5
int
x
= -
1
;
6
int
y
=
1
;
7
int
8
main
(
void
)
9
{
10
while
(
y
>
0
)
11
y
+=
x
;
12
if
(
y
!=
x
+
1
)
13
abort
();
14
exit
(
0
);
15
}