summaryrefslogtreecommitdiff
path: root/gcc/config/fp-bit.c
diff options
context:
space:
mode:
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1997-07-01 22:33:05 +0000
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1997-07-01 22:33:05 +0000
commit5db742dde8722e720fe91d8c9b29a2a107f74a3a (patch)
tree2c0741238f78d6293ba7bde7c4c7da25c43366e1 /gcc/config/fp-bit.c
parent392b5450aa1020aeb1ba7abeafce60f2bb9ed332 (diff)
downloadgcc-5db742dde8722e720fe91d8c9b29a2a107f74a3a.tar.gz
(float_to_usi): Move code for negative numbers before code
for infinity. Modify infinty code to only handle positive infinities. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14368 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/fp-bit.c')
-rw-r--r--gcc/config/fp-bit.c6
1 files changed, 3 insertions, 3 deletions
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;