From: Michael Beck Date: Fri, 12 Sep 2008 00:14:14 +0000 (+0000) Subject: reverted r21775: too restrictive because ieee 754 uses binary representation for... X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=e3809f62e42f4abafe698ae348a1354bbdc1d3e6;p=libfirm reverted r21775: too restrictive because ieee 754 uses binary representation for the mantissa [r21867] --- diff --git a/ir/ir/iropt.c b/ir/ir/iropt.c index 16d006dce..2bfb87c9a 100644 --- a/ir/ir/iropt.c +++ b/ir/ir/iropt.c @@ -1259,8 +1259,7 @@ restart: } } } - if (get_mode_arithmetic(n_mode) == irma_twos_complement && - get_mode_arithmetic(a_mode) == irma_ieee754) { + if (mode_is_int(n_mode) && get_mode_arithmetic(a_mode) == irma_ieee754) { /* ConvI(ConvF(I)) -> I, iff float mantissa >= int mode */ unsigned int_mantissa = get_mode_size_bits(n_mode) - (mode_is_signed(n_mode) ? 1 : 0); unsigned float_mantissa = tarval_ieee754_get_mantissa_size(a_mode);