projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07c324e
)
- currently we support IEEE 754 only, so change the condition
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Tue, 9 Sep 2008 10:10:09 +0000
(10:10 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Tue, 9 Sep 2008 10:10:09 +0000
(10:10 +0000)
[r21774]
ir/ir/iropt.c
patch
|
blob
|
history
diff --git
a/ir/ir/iropt.c
b/ir/ir/iropt.c
index
d6f6d3b
..
f096012
100644
(file)
--- a/
ir/ir/iropt.c
+++ b/
ir/ir/iropt.c
@@
-1259,7
+1259,7
@@
restart:
}
}
}
- if (mode_is_int(n_mode) &&
mode_is_float(a_mode)
) {
+ if (mode_is_int(n_mode) &&
get_mode_arithmetic(a_mode) == irma_ieee754
) {
/* ConvI(ConvF(I)) -> I, iff float mantissa >= int mode */
size_t int_mantissa = get_mode_size_bits(n_mode) - (mode_is_signed(n_mode) ? 1 : 0);
size_t float_mantissa = tarval_ieee754_get_mantissa_size(a_mode);