X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firopt.c;h=2bfb87c9ab6e44f13a9f36fc0b3f6e4119054748;hb=52684e8ee70083c7ba5b25f51f33c6b5de78c7cf;hp=16d006dcec91c983f0bad9153f4187f2204fca31;hpb=8b0cea6a7df0f22699b5975bee8282ffe8c10483;p=libfirm 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);