projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
602a065
)
beware of NaN's
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Sun, 24 Aug 2008 11:26:58 +0000
(11:26 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Sun, 24 Aug 2008 11:26:58 +0000
(11:26 +0000)
[r21405]
ir/stat/const_stat.c
patch
|
blob
|
history
diff --git
a/ir/stat/const_stat.c
b/ir/stat/const_stat.c
index
4fd5b20
..
7ff898a
100644
(file)
--- a/
ir/stat/const_stat.c
+++ b/
ir/stat/const_stat.c
@@
-72,7
+72,7
@@
static float_classify_t classify_float_value(tarval *tv) {
return STAT_FC_1;
else if (tv == get_mode_one(mode))
return STAT_FC_1;
- else if (tarval_ieee754_zero_mantissa(tv)) {
+ else if (tarval_i
s_finite(tv) && tarval_i
eee754_zero_mantissa(tv)) {
int exp = tarval_ieee754_get_exponent(tv);
if (exp == 1)