projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a6913a
)
simplified and improved
author
Matthias Braun
<matze@braunis.de>
Thu, 4 Sep 2008 12:15:39 +0000
(12:15 +0000)
committer
Matthias Braun
<matze@braunis.de>
Thu, 4 Sep 2008 12:15:39 +0000
(12:15 +0000)
[r21699]
ir/be/test/fehler149.c
patch
|
blob
|
history
diff --git
a/ir/be/test/fehler149.c
b/ir/be/test/fehler149.c
index
3b7f995
..
0c8bb8d
100644
(file)
--- a/
ir/be/test/fehler149.c
+++ b/
ir/be/test/fehler149.c
@@
-1,14
+1,16
@@
-unsigned short tdenm, tquot;
+unsigned short tdenm = 0xff;
+unsigned int ui = 0xffffffff;
-
void test(unsigned short num[]
) {
+
int test(void
) {
- unsigned int tnum =
(((unsigned int) num[0]) << 16) + num[1]
;
+ unsigned int tnum =
ui
;
/* Do not execute the divide instruction if it will overflow. */
if ((tdenm * 0xffffL) < tnum)
- tquot = 0xffff;
+ return 0;
+ return 1;
}
int main(int argc, char *argv[]) {
- return
0
;
+ return
test()
;
}