repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
20031020-1.c
blob
526ca0402f91117b3fd54cd09f507c2898f7e78b
1
/* PR target/12654
2
The Alpha backend tried to do a >= 1024 as (a - 1024) >= 0, which fails
3
for very large negative values. */
4
/* Origin: tg@swox.com */
5
6
#include <limits.h>
7
8
extern
void
abort
(
void
);
9
10
void
__attribute__
((
noinline
))
11
foo
(
long
x
)
12
{
13
if
(
x
>=
1024
)
14
abort
();
15
}
16
17
int
18
main
()
19
{
20
foo
(
LONG_MIN
);
21
foo
(
LONG_MIN
+
10000
);
22
return
0
;
23
}