summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-08-20 16:42:35 +0000
committerUlrich Drepper <drepper@redhat.com>2000-08-20 16:42:35 +0000
commit479a9deb9a5130c4e718e807b954587b792582cb (patch)
treeec9d9ce87d56fe79fdb1ca3d8f42940760e10277
parent768b07329efb344cfcedf684560c8020fad7f429 (diff)
downloadglibc-479a9deb9a5130c4e718e807b954587b792582cb.tar.gz
glibc-479a9deb9a5130c4e718e807b954587b792582cb.tar.xz
glibc-479a9deb9a5130c4e718e807b954587b792582cb.zip
(_FPU_GETCW): Allow gcc to generic postinc/postdec instruction. (_FPU_SETCW): Likewise.
-rw-r--r--sysdeps/powerpc/fpu_control.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/powerpc/fpu_control.h b/sysdeps/powerpc/fpu_control.h
index cb6a772dd2..33a74fb723 100644
--- a/sysdeps/powerpc/fpu_control.h
+++ b/sysdeps/powerpc/fpu_control.h
@@ -51,14 +51,14 @@ typedef unsigned int fpu_control_t __attribute__ ((__mode__ (__SI__)));
 /* Macros for accessing the hardware control word.  */
 #define _FPU_GETCW(cw) ( { \
   union { double d; fpu_control_t cw[2]; } tmp __attribute__ ((__aligned__(8))); \
-  __asm__ ("mffs 0; stfd 0,%0" : "=m" (tmp.d) : : "fr0"); \
+  __asm__ ("mffs 0; stfd%U0 0,%0" : "=m" (tmp.d) : : "fr0"); \
   (cw)=tmp.cw[1]; \
   tmp.cw[1]; } )
 #define _FPU_SETCW(cw) { \
   union { double d; fpu_control_t cw[2]; } tmp __attribute__ ((__aligned__(8))); \
   tmp.cw[0] = 0xFFF80000; /* More-or-less arbitrary; this is a QNaN. */ \
   tmp.cw[1] = cw; \
-  __asm__ ("lfd 0,%0; mtfsf 255,0" : : "m" (tmp.d) : "fr0"); \
+  __asm__ ("lfd%U0 0,%0; mtfsf 255,0" : : "m" (tmp.d) : "fr0"); \
 }
 
 /* Default control word set at startup.  */