Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/arch/mips/gen fix asm operands: "ctc1" uses the reg...
details: https://anonhg.NetBSD.org/src/rev/41cb0b4ef0dd
branches: trunk
changeset: 351791:41cb0b4ef0dd
user: chs <chs%NetBSD.org@localhost>
date: Mon Feb 27 06:55:26 2017 +0000
description:
fix asm operands: "ctc1" uses the register as an input, not an output.
diffstat:
lib/libc/arch/mips/gen/fpsetmask.c | 6 +++---
lib/libc/arch/mips/gen/fpsetround.c | 6 +++---
lib/libc/arch/mips/gen/fpsetsticky.c | 6 +++---
3 files changed, 9 insertions(+), 9 deletions(-)
diffs (81 lines):
diff -r e18f1c923a34 -r 41cb0b4ef0dd lib/libc/arch/mips/gen/fpsetmask.c
--- a/lib/libc/arch/mips/gen/fpsetmask.c Mon Feb 27 06:54:42 2017 +0000
+++ b/lib/libc/arch/mips/gen/fpsetmask.c Mon Feb 27 06:55:26 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpsetmask.c,v 1.9 2014/09/17 11:02:55 joerg Exp $ */
+/* $NetBSD: fpsetmask.c,v 1.10 2017/02/27 06:55:26 chs Exp $ */
/*
* Written by J.T. Conklin, Apr 11, 1995
@@ -7,7 +7,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: fpsetmask.c,v 1.9 2014/09/17 11:02:55 joerg Exp $");
+__RCSID("$NetBSD: fpsetmask.c,v 1.10 2017/02/27 06:55:26 chs Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -29,7 +29,7 @@
new = old & ~(0x1f << 7);
new |= ((mask & 0x1f) << 7);
- __asm(".set push; .set noat; ctc1 %0,$31; .set pop" : "=r" (new));
+ __asm(".set push; .set noat; ctc1 %0,$31; .set pop" : : "r" (new));
return (old >> 7) & 0x1f;
}
diff -r e18f1c923a34 -r 41cb0b4ef0dd lib/libc/arch/mips/gen/fpsetround.c
--- a/lib/libc/arch/mips/gen/fpsetround.c Mon Feb 27 06:54:42 2017 +0000
+++ b/lib/libc/arch/mips/gen/fpsetround.c Mon Feb 27 06:55:26 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpsetround.c,v 1.7 2014/09/17 11:02:55 joerg Exp $ */
+/* $NetBSD: fpsetround.c,v 1.8 2017/02/27 06:55:26 chs Exp $ */
/*
* Written by J.T. Conklin, Apr 11, 1995
@@ -7,7 +7,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: fpsetround.c,v 1.7 2014/09/17 11:02:55 joerg Exp $");
+__RCSID("$NetBSD: fpsetround.c,v 1.8 2017/02/27 06:55:26 chs Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -29,7 +29,7 @@
new = old & ~0x03;
new |= rnd_dir & 0x03;
- __asm(".set push; .set noat; ctc1 %0,$31; .set pop" : "=r" (new));
+ __asm(".set push; .set noat; ctc1 %0,$31; .set pop" : : "r" (new));
return old & 0x03;
}
diff -r e18f1c923a34 -r 41cb0b4ef0dd lib/libc/arch/mips/gen/fpsetsticky.c
--- a/lib/libc/arch/mips/gen/fpsetsticky.c Mon Feb 27 06:54:42 2017 +0000
+++ b/lib/libc/arch/mips/gen/fpsetsticky.c Mon Feb 27 06:55:26 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpsetsticky.c,v 1.9 2014/09/17 11:02:55 joerg Exp $ */
+/* $NetBSD: fpsetsticky.c,v 1.10 2017/02/27 06:55:26 chs Exp $ */
/*
* Written by J.T. Conklin, Apr 11, 1995
@@ -7,7 +7,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: fpsetsticky.c,v 1.9 2014/09/17 11:02:55 joerg Exp $");
+__RCSID("$NetBSD: fpsetsticky.c,v 1.10 2017/02/27 06:55:26 chs Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -29,7 +29,7 @@
new = old & ~(0x1f << 2);
new |= (sticky & 0x1f) << 2;
- __asm(".set push; .set noat; ctc1 %0,$31; .set pop" : "=r" (new));
+ __asm(".set push; .set noat; ctc1 %0,$31; .set pop" : : "r" (new));
return (old >> 2) & 0x1f;
}
Home |
Main Index |
Thread Index |
Old Index