Module Name: src
Committed By: simonb
Date: Thu Apr 29 08:11:38 UTC 2021
Modified Files:
src/sys/arch/mips/mips: fp.S
Log Message:
Move a branch target in cvt_d_w() to where it will be hit for either
case of an #ifdef block of code. Fixes an FP emulation problem if
compiled with -mips32 or -mips64.
To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 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.51 src/sys/arch/mips/mips/fp.S:1.52
--- src/sys/arch/mips/mips/fp.S:1.51 Thu Jun 25 11:48:39 2020
+++ src/sys/arch/mips/mips/fp.S Thu Apr 29 08:11:38 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: fp.S,v 1.51 2020/06/25 11:48:39 simonb Exp $ */
+/* $NetBSD: fp.S,v 1.52 2021/04/29 08:11:38 simonb Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -1850,11 +1850,11 @@ cvt_d_w:
/*
* Find out how many leading zero bits are in t2 and put in v1.
*/
+1:
#if __mips == 32 || __mips == 64
clz v1, t2
#else /* __mips == 32 || __mips == 64 */
.set noat
-1:
move v0, t2
move v1, zero
srl AT, v0, 16