Module Name: src
Committed By: tsutsui
Date: Fri Feb 25 11:44:56 UTC 2011
Modified Files:
src/sys/arch/mips/mips: fp.S
Log Message:
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.39 -r1.40 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.39 src/sys/arch/mips/mips/fp.S:1.40
--- src/sys/arch/mips/mips/fp.S:1.39 Thu Feb 24 16:49:15 2011
+++ src/sys/arch/mips/mips/fp.S Fri Feb 25 11:44:56 2011
@@ -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