From 02f5da72d6dc3994960a2dc2c2ee648c6d8fcb63 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Sun, 24 Aug 2008 11:26:58 +0000 Subject: [PATCH] beware of NaN's [r21405] --- ir/stat/const_stat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ir/stat/const_stat.c b/ir/stat/const_stat.c index 4fd5b200b..7ff898a21 100644 --- 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_is_finite(tv) && tarval_ieee754_zero_mantissa(tv)) { int exp = tarval_ieee754_get_exponent(tv); if (exp == 1) -- 2.20.1