Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/mips Fix cvt.d.s per analysis by Marcus Comste...
details: https://anonhg.NetBSD.org/src/rev/f33cb3c35765
branches: trunk
changeset: 762669:f33cb3c35765
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Fri Feb 25 11:44:56 2011 +0000
description:
Fix cvt.d.s per analysis by Marcus Comstedt in PR port-mips/36251.
Confirmed on ews4800mips.
diffstat:
sys/arch/mips/mips/fp.S | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (18 lines):
diff -r edbb30324164 -r f33cb3c35765 sys/arch/mips/mips/fp.S
--- a/sys/arch/mips/mips/fp.S Fri Feb 25 10:59:32 2011 +0000
+++ b/sys/arch/mips/mips/fp.S Fri Feb 25 11:44:56 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fp.S,v 1.39 2011/02/24 16:49:15 tsutsui Exp $ */
+/* $NetBSD: fp.S,v 1.40 2011/02/25 11:44:56 tsutsui Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -1827,6 +1827,8 @@
beq t2, zero, result_fs_d # is FS zero?
jal _C_LABEL(renorm_fs_s)
move t9, zero
+ sll t3, t2, 32 - 3 # convert S fraction to D
+ srl t2, t2, 3
b norm_d
2:
addu t1, t1, DEXP_BIAS - SEXP_BIAS # bias exponent correctly
Home |
Main Index |
Thread Index |
Old Index