Module Name:src
Committed By: bouyer
Date: Sun Mar 20 21:31:33 UTC 2011
Modified Files:
src/sys/arch/mips/mips [netbsd-5]: fp.S
Log Message:
Pull up following revision(s) (requested by tsutsui in ticket #1572):
sys/arch/mips/mips/fp.S: revision 1.40 via patch
Fix cvt.d.s per analysis by Marcus Comstedt in PR port-mips/36251.
Confirmed on ews4800mips.
To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.33.30.1 src/sys/arch/mips/mips/fp.S
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/mips/mips/fp.S
diff -u src/sys/arch/mips/mips/fp.S:1.33 src/sys/arch/mips/mips/fp.S:1.33.30.1
--- src/sys/arch/mips/mips/fp.S:1.33 Wed Oct 17 19:55:37 2007
+++ src/sys/arch/mips/mips/fp.S Sun Mar 20 21:31:32 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: fp.S,v 1.33 2007/10/17 19:55:37 garbled Exp $ */
+/* $NetBSD: fp.S,v 1.33.30.1 2011/03/20 21:31:32 bouyer Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -1619,6 +1619,8 @@
beq t2, zero, result_fs_d # is FS zero?
jal _C_LABEL(renorm_fs_s)
move t8, 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