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 Explicitly set noat around instructio...



details:   https://anonhg.NetBSD.org/src/rev/cf52de46d7ac
branches:  trunk
changeset: 332345:cf52de46d7ac
user:      joerg <joerg%NetBSD.org@localhost>
date:      Wed Sep 17 11:02:55 2014 +0000

description:
Explicitly set noat around instructions using $at.

diffstat:

 lib/libc/arch/mips/gen/flt_rounds.c  |  6 +++---
 lib/libc/arch/mips/gen/fpgetmask.c   |  6 +++---
 lib/libc/arch/mips/gen/fpgetround.c  |  6 +++---
 lib/libc/arch/mips/gen/fpgetsticky.c |  6 +++---
 lib/libc/arch/mips/gen/fpsetmask.c   |  8 ++++----
 lib/libc/arch/mips/gen/fpsetround.c  |  8 ++++----
 lib/libc/arch/mips/gen/fpsetsticky.c |  8 ++++----
 7 files changed, 24 insertions(+), 24 deletions(-)

diffs (204 lines):

diff -r 7de4ff5b3e62 -r cf52de46d7ac lib/libc/arch/mips/gen/flt_rounds.c
--- a/lib/libc/arch/mips/gen/flt_rounds.c       Wed Sep 17 11:01:05 2014 +0000
+++ b/lib/libc/arch/mips/gen/flt_rounds.c       Wed Sep 17 11:02:55 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: flt_rounds.c,v 1.7 2012/06/24 15:26:02 christos Exp $  */
+/*     $NetBSD: flt_rounds.c,v 1.8 2014/09/17 11:02:55 joerg 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: flt_rounds.c,v 1.7 2012/06/24 15:26:02 christos Exp $");
+__RCSID("$NetBSD: flt_rounds.c,v 1.8 2014/09/17 11:02:55 joerg Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include <machine/float.h>
@@ -28,7 +28,7 @@
 #else
        int x;
 
-       __asm("cfc1\t%0,$31" : "=r" (x));
+       __asm(".set push; .set noat; cfc1 %0,$31; .set pop" : "=r" (x));
        return map[x & 0x03];
 #endif
 }
diff -r 7de4ff5b3e62 -r cf52de46d7ac lib/libc/arch/mips/gen/fpgetmask.c
--- a/lib/libc/arch/mips/gen/fpgetmask.c        Wed Sep 17 11:01:05 2014 +0000
+++ b/lib/libc/arch/mips/gen/fpgetmask.c        Wed Sep 17 11:02:55 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpgetmask.c,v 1.8 2012/03/20 16:19:56 matt Exp $       */
+/*     $NetBSD: fpgetmask.c,v 1.9 2014/09/17 11:02:55 joerg 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: fpgetmask.c,v 1.8 2012/03/20 16:19:56 matt Exp $");
+__RCSID("$NetBSD: fpgetmask.c,v 1.9 2014/09/17 11:02:55 joerg Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "namespace.h"
@@ -23,6 +23,6 @@
 {
        fp_except x;
 
-       __asm("cfc1 %0,$31" : "=r" (x));
+       __asm(".set push; .set noat; cfc1 %0,$31; .set pop" : "=r" (x));
        return (x >> 7) & 0x1f;
 }
diff -r 7de4ff5b3e62 -r cf52de46d7ac lib/libc/arch/mips/gen/fpgetround.c
--- a/lib/libc/arch/mips/gen/fpgetround.c       Wed Sep 17 11:01:05 2014 +0000
+++ b/lib/libc/arch/mips/gen/fpgetround.c       Wed Sep 17 11:02:55 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpgetround.c,v 1.6 2012/03/19 22:23:10 matt Exp $      */
+/*     $NetBSD: fpgetround.c,v 1.7 2014/09/17 11:02:55 joerg 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: fpgetround.c,v 1.6 2012/03/19 22:23:10 matt Exp $");
+__RCSID("$NetBSD: fpgetround.c,v 1.7 2014/09/17 11:02:55 joerg Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "namespace.h"
@@ -23,6 +23,6 @@
 {
        fp_rnd x;
 
-       __asm("cfc1 %0,$31" : "=r" (x));
+       __asm(".set push; .set noat; cfc1 %0,$31; .set pop" : "=r" (x));
        return x & 0x03;
 }
diff -r 7de4ff5b3e62 -r cf52de46d7ac lib/libc/arch/mips/gen/fpgetsticky.c
--- a/lib/libc/arch/mips/gen/fpgetsticky.c      Wed Sep 17 11:01:05 2014 +0000
+++ b/lib/libc/arch/mips/gen/fpgetsticky.c      Wed Sep 17 11:02:55 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpgetsticky.c,v 1.8 2012/03/20 16:19:56 matt Exp $     */
+/*     $NetBSD: fpgetsticky.c,v 1.9 2014/09/17 11:02:55 joerg 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: fpgetsticky.c,v 1.8 2012/03/20 16:19:56 matt Exp $");
+__RCSID("$NetBSD: fpgetsticky.c,v 1.9 2014/09/17 11:02:55 joerg Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "namespace.h"
@@ -23,6 +23,6 @@
 {
        fp_except x;
 
-       __asm("cfc1 %0,$31" : "=r" (x));
+       __asm(".set push; .set noat; cfc1 %0,$31; .set pop" : "=r" (x));
        return (x >> 2) & 0x1f;
 }
diff -r 7de4ff5b3e62 -r cf52de46d7ac lib/libc/arch/mips/gen/fpsetmask.c
--- a/lib/libc/arch/mips/gen/fpsetmask.c        Wed Sep 17 11:01:05 2014 +0000
+++ b/lib/libc/arch/mips/gen/fpsetmask.c        Wed Sep 17 11:02:55 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpsetmask.c,v 1.8 2012/03/20 16:19:56 matt Exp $       */
+/*     $NetBSD: fpsetmask.c,v 1.9 2014/09/17 11:02:55 joerg 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.8 2012/03/20 16:19:56 matt Exp $");
+__RCSID("$NetBSD: fpsetmask.c,v 1.9 2014/09/17 11:02:55 joerg Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "namespace.h"
@@ -24,12 +24,12 @@
        fp_except old;
        fp_except new;
 
-       __asm("cfc1 %0,$31" : "=r" (old));
+       __asm(".set push; .set noat; cfc1 %0,$31; .set pop" : "=r" (old));
 
        new = old & ~(0x1f << 7); 
        new |= ((mask & 0x1f) << 7);
 
-       __asm("ctc1 %0,$31" : : "r" (new));
+       __asm(".set push; .set noat; ctc1 %0,$31; .set pop" : "=r" (new));
 
        return (old >> 7) & 0x1f;
 }
diff -r 7de4ff5b3e62 -r cf52de46d7ac lib/libc/arch/mips/gen/fpsetround.c
--- a/lib/libc/arch/mips/gen/fpsetround.c       Wed Sep 17 11:01:05 2014 +0000
+++ b/lib/libc/arch/mips/gen/fpsetround.c       Wed Sep 17 11:02:55 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpsetround.c,v 1.6 2012/03/19 22:23:10 matt Exp $      */
+/*     $NetBSD: fpsetround.c,v 1.7 2014/09/17 11:02:55 joerg 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.6 2012/03/19 22:23:10 matt Exp $");
+__RCSID("$NetBSD: fpsetround.c,v 1.7 2014/09/17 11:02:55 joerg Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "namespace.h"
@@ -24,12 +24,12 @@
        fp_rnd old;
        fp_rnd new;
 
-       __asm("cfc1 %0,$31" : "=r" (old));
+       __asm(".set push; .set noat; cfc1 %0,$31; .set pop" : "=r" (old));
 
        new = old & ~0x03;
        new |= rnd_dir & 0x03;
 
-       __asm("ctc1 %0,$31" : : "r" (new));
+       __asm(".set push; .set noat; ctc1 %0,$31; .set pop" : "=r" (new));
 
        return old & 0x03;
 }
diff -r 7de4ff5b3e62 -r cf52de46d7ac lib/libc/arch/mips/gen/fpsetsticky.c
--- a/lib/libc/arch/mips/gen/fpsetsticky.c      Wed Sep 17 11:01:05 2014 +0000
+++ b/lib/libc/arch/mips/gen/fpsetsticky.c      Wed Sep 17 11:02:55 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpsetsticky.c,v 1.8 2012/03/20 16:19:56 matt Exp $     */
+/*     $NetBSD: fpsetsticky.c,v 1.9 2014/09/17 11:02:55 joerg 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.8 2012/03/20 16:19:56 matt Exp $");
+__RCSID("$NetBSD: fpsetsticky.c,v 1.9 2014/09/17 11:02:55 joerg Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "namespace.h"
@@ -24,12 +24,12 @@
        fp_except old;
        fp_except new;
 
-       __asm("cfc1 %0,$31" : "=r" (old));
+       __asm(".set push; .set noat; cfc1 %0,$31; .set pop" : "=r" (old));
 
        new = old & ~(0x1f << 2); 
        new |= (sticky & 0x1f) << 2;
 
-       __asm("ctc1 %0,$31" : : "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