From: Jim Wilson Date: Tue, 1 Jul 1997 22:33:05 +0000 (-0700) Subject: (float_to_usi): Move code for negative numbers before code for infinity. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f953dd66a29dc819ef8a60ab35804b7d1aac6859;p=gcc.git (float_to_usi): Move code for negative numbers before code for infinity. (float_to_usi): Move code for negative numbers before code for infinity. Modify infinty code to only handle positive infinities. From-SVN: r14368 --- diff --git a/gcc/config/fp-bit.c b/gcc/config/fp-bit.c index bc3ad51ec93..1f6e4082bca 100644 --- a/gcc/config/fp-bit.c +++ b/gcc/config/fp-bit.c @@ -1300,12 +1300,12 @@ float_to_usi (FLO_type arg_a) return 0; if (isnan (&a)) return 0; - /* get reasonable MAX_USI_INT... */ - if (isinf (&a)) - return a.sign ? MAX_USI_INT : 0; /* it is a negative number */ if (a.sign) return 0; + /* get reasonable MAX_USI_INT... */ + if (isinf (&a)) + return MAX_USI_INT; /* it is a number, but a small one */ if (a.normal_exp < 0) return 0;