projects
/
libfirm
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Short example of graph, which needs RN reduction.
[libfirm]
/
ir
/
be
/
test
/
fehler149.c
1
unsigned short tdenm = 0xff;
2
unsigned int ui = 0xffffffff;
3
4
int test(void) {
5
6
unsigned int tnum = ui;
7
8
/* Do not execute the divide instruction if it will overflow. */
9
if ((tdenm * 0xffffL) < tnum)
10
return 0;
11
return 1;
12
}
13
14
int main(int argc, char *argv[]) {
15
return test();
16
}