Shift the exception mask in the right position.
authorUlrich Drepper <drepper@redhat.com>
Fri, 11 Jul 1997 01:13:11 +0000 (01:13 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 11 Jul 1997 01:13:11 +0000 (01:13 +0000)
sysdeps/m68k/fpu/feholdexcpt.c

index 351fa8a..d8e2d8a 100644 (file)
@@ -32,7 +32,7 @@ feholdexcept (fenv_t *envp)
   fpsr = envp->status_register & ~FE_ALL_EXCEPT;
   __asm__ __volatile__ ("fmove%.l %0,%/fpsr" : : "dm" (fpsr));
   /* And set all exceptions to non-stop.  */
-  fpcr = envp->control_register & ~(FE_ALL_EXCEPT << 5);
+  fpcr = envp->control_register & ~(FE_ALL_EXCEPT << 6);
   __asm__ __volatile__ ("fmove%.l %0,%!" : : "dm" (fpcr));
 
   return 1;