Move misplaced llround test and add lround test from bug 2561.
authorJoseph Myers <joseph@codesourcery.com>
Wed, 29 Feb 2012 01:55:42 +0000 (01:55 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Wed, 29 Feb 2012 01:55:42 +0000 (01:55 +0000)
ChangeLog
math/libm-test.inc

index eecc50b..c665b94 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-02-29  Joseph Myers  <joseph@codesourcery.com>
+
+       * math/libm-test.inc (llround_test): Move one test from
+       lround_test.  Use TEST_f_L in moved test.
+       (lround_test): Move misplaced test to llround_test.  Add testcase
+       from bug 2561.
+
 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
 
        * sysdeps/x86_64/fpu/e_expf.S: New file.
index 1016753..54d1aca 100644 (file)
@@ -4395,7 +4395,7 @@ lround_test (void)
   TEST_f_l (lround, 1073741824.01, 1073741824);
 # if LONG_MAX > 281474976710656
   TEST_f_l (lround, 281474976710656.025, 281474976710656);
-  TEST_f_l (llround, -3.65309740835E17, -365309740835000000);
+  TEST_f_l (lround, 18014398509481974, 18014398509481974);
 # endif
   TEST_f_l (lround, 2097152.5, 2097153);
   TEST_f_l (lround, -2097152.5, -2097153);
@@ -4438,6 +4438,7 @@ llround_test (void)
   TEST_f_L (llround, -2097152.5, -2097153);
   TEST_f_L (llround, 34359738368.5, 34359738369ll);
   TEST_f_L (llround, -34359738368.5, -34359738369ll);
+  TEST_f_L (llround, -3.65309740835E17, -365309740835000000LL);
 #endif
 
   /* Test boundary conditions.  */