beware of NaN's
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Sun, 24 Aug 2008 11:26:58 +0000 (11:26 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Sun, 24 Aug 2008 11:26:58 +0000 (11:26 +0000)
[r21405]

ir/stat/const_stat.c

index 4fd5b20..7ff898a 100644 (file)
@@ -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_is_finite(tv) && tarval_ieee754_zero_mantissa(tv)) {
                int exp = tarval_ieee754_get_exponent(tv);
 
                if (exp == 1)