about summary refs log tree commit diff
path: root/math
diff options
context:
space:
mode:
Diffstat (limited to 'math')
-rw-r--r--math/test-fpucw.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/math/test-fpucw.c b/math/test-fpucw.c
index a702d17330..0294a42bb5 100644
--- a/math/test-fpucw.c
+++ b/math/test-fpucw.c
@@ -29,10 +29,13 @@ main (void)
 
   _FPU_GETCW (cw);
 
-  if (cw != _FPU_DEFAULT)
-    printf ("control word is 0x%x but should be 0x%x.\n", cw, _FPU_DEFAULT);
+  cw &= ~_FPU_RESERVED;
 
-  return (cw != _FPU_DEFAULT);
+  if (cw != (_FPU_DEFAULT & ~_FPU_RESERVED))
+    printf ("control word is 0x%x but should be 0x%x.\n",
+	    cw, (_FPU_DEFAULT & ~_FPU_RESERVED));
+
+  return cw != (_FPU_DEFAULT & ~_FPU_RESERVED);
 
 #else
   return 0;