Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/alpha/alpha IEEE SQRTS / SQRTT is fix_float opclass...
details: https://anonhg.NetBSD.org/src/rev/871e1d20d2b6
branches: trunk
changeset: 1022507:871e1d20d2b6
user: thorpej <thorpej%NetBSD.org@localhost>
date: Fri Jul 23 03:57:06 2021 +0000
description:
IEEE SQRTS / SQRTT is fix_float opclass 11, not fix_float opclass 10
(which is VAX SQRTF / SQRTG).
diffstat:
sys/arch/alpha/alpha/fp_complete.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 299f83824f40 -r 871e1d20d2b6 sys/arch/alpha/alpha/fp_complete.c
--- a/sys/arch/alpha/alpha/fp_complete.c Fri Jul 23 03:50:32 2021 +0000
+++ b/sys/arch/alpha/alpha/fp_complete.c Fri Jul 23 03:57:06 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fp_complete.c,v 1.26 2021/07/23 03:50:32 thorpej Exp $ */
+/* $NetBSD: fp_complete.c,v 1.27 2021/07/23 03:57:06 thorpej Exp $ */
/*-
* Copyright (c) 2001 Ross Harvey
@@ -37,7 +37,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: fp_complete.c,v 1.26 2021/07/23 03:50:32 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fp_complete.c,v 1.27 2021/07/23 03:57:06 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -588,7 +588,7 @@
switch(inst.float_detail.src) {
case op_src_sf:
sts(inst.float_detail.fb, &sfb, l);
- if (inst.float_detail.opclass == 10)
+ if (inst.float_detail.opclass == 11)
sfc.i = float32_sqrt(sfb.i);
else if (inst.float_detail.opclass & ~3) {
this_cannot_happen(1, inst.bits);
@@ -607,7 +607,7 @@
inst.bits, l);
else {
stt(inst.float_detail.fb, &tfb, l);
- if (inst.float_detail.opclass == 10)
+ if (inst.float_detail.opclass == 11)
tfc.i = float64_sqrt(tfb.i);
else {
stt(inst.float_detail.fa, &tfa, l);
Home |
Main Index |
Thread Index |
Old Index