about summary refs log tree commit diff
path: root/sysdeps/powerpc/fpu/fgetexcptflg.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/powerpc/fpu/fgetexcptflg.c')
-rw-r--r--sysdeps/powerpc/fpu/fgetexcptflg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/powerpc/fpu/fgetexcptflg.c b/sysdeps/powerpc/fpu/fgetexcptflg.c
index ddd71f9d93..a652eb8e50 100644
--- a/sysdeps/powerpc/fpu/fgetexcptflg.c
+++ b/sysdeps/powerpc/fpu/fgetexcptflg.c
@@ -29,7 +29,7 @@ __fegetexceptflag (fexcept_t *flagp, int excepts)
   u.fenv = fegetenv_register ();
 
   /* Return (all of) it.  */
-  *flagp = u.l[1];
+  *flagp = u.l[1] & excepts & FE_ALL_EXCEPT;
 
   /* Success.  */
   return 0;