Clear the exception flags, not the enable flags.
authorUlrich Drepper <drepper@redhat.com>
Wed, 25 Apr 2001 18:27:55 +0000 (18:27 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 25 Apr 2001 18:27:55 +0000 (18:27 +0000)
sysdeps/hppa/fpu/fclrexcpt.c

index 4c64027..e8049e6 100644 (file)
@@ -29,7 +29,7 @@ feclearexcept (int excepts)
   __asm__ ("fstd %%fr0,0(%1)" : "=m" (*sw) : "r" (sw));
 
   /* Clear all the relevant bits. */
-  sw[0] &= ~(excepts & FE_ALL_EXCEPT);
+  sw[0] &= ~(excepts & FE_ALL_EXCEPT) << 27;
   __asm__ ("fldd 0(%0),%%fr0" : : "r" (sw));
 
   /* Success.  */