about summary refs log tree commit diff
path: root/math
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2012-05-26 13:49:49 +0200
committerMarek Polacek <polacek@redhat.com>2012-05-26 13:49:49 +0200
commitd81dcb356909937b0c8e9c69ff0be27f51aaa07a (patch)
tree8d5c885d6d3ea9088fcc32bcd7b90e737ab93b33 /math
parent9c6ea9facbba4d430807bd21fa82892d713b1ecd (diff)
downloadglibc-d81dcb356909937b0c8e9c69ff0be27f51aaa07a.tar.gz
glibc-d81dcb356909937b0c8e9c69ff0be27f51aaa07a.tar.xz
glibc-d81dcb356909937b0c8e9c69ff0be27f51aaa07a.zip
Fix fma test for underflow.
Diffstat (limited to 'math')
-rw-r--r--math/libm-test.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/math/libm-test.inc b/math/libm-test.inc
index ed13f53ec8..bb19dee350 100644
--- a/math/libm-test.inc
+++ b/math/libm-test.inc
@@ -3970,7 +3970,8 @@ fma_test (void)
   TEST_fff_f (fma, 0x1.4000004p-967, 0x1p-106, 0x0.000001p-1022, 0x0.0000010000003p-1022, UNDERFLOW_EXCEPTION);
   TEST_fff_f (fma, 0x1.4p-967, -0x1p-106, -0x0.000001p-1022, -0x0.0000010000002p-1022, UNDERFLOW_EXCEPTION);
   TEST_fff_f (fma, -0x1.19cab66d73e17p-959, 0x1.c7108a8c5ff51p-107, -0x0.80b0ad65d9b64p-1022, -0x0.80b0ad65d9d59p-1022, UNDERFLOW_EXCEPTION);
-  TEST_fff_f (fma, -0x1.d2eaed6e8e9d3p-979, -0x1.4e066c62ac9ddp-63, -0x0.9245e6b003454p-1022, -0x0.9245c09c5fb5dp-1022, UNDERFLOW_EXCEPTION);
+  /* Sometimes the FE_UNDERFLOW is not set, so be prepared.  See Bug 14152.  */
+  TEST_fff_f (fma, -0x1.d2eaed6e8e9d3p-979, -0x1.4e066c62ac9ddp-63, -0x0.9245e6b003454p-1022, -0x0.9245c09c5fb5dp-1022, UNDERFLOW_EXCEPTION_OK);
   TEST_fff_f (fma, 0x1.153d650bb9f06p-907, 0x1.2d01230d48407p-125, -0x0.b278d5acfc3cp-1022, -0x0.b22757123bbe9p-1022, UNDERFLOW_EXCEPTION);
   TEST_fff_f (fma, -0x1.fffffffffffffp-711, 0x1.fffffffffffffp-275, 0x1.fffffe00007ffp-983, 0x1.7ffffe00007ffp-983);
 #endif