about summary refs log tree commit diff
path: root/math/libm-test.inc
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2015-11-10 17:34:13 +0000
committerJoseph Myers <joseph@codesourcery.com>2015-11-10 17:34:13 +0000
commit685312298fcc5b24ed9700bcc43787d5f83553c5 (patch)
tree98c4fe12f8634c62d5357a5137292e8e1987072a /math/libm-test.inc
parent71bbdde7f53951f6a1d59492f36f80769090a8b3 (diff)
downloadglibc-685312298fcc5b24ed9700bcc43787d5f83553c5.tar.gz
glibc-685312298fcc5b24ed9700bcc43787d5f83553c5.tar.xz
glibc-685312298fcc5b24ed9700bcc43787d5f83553c5.zip
Add more tests of pow.
Prompted by a gcc-patches discussion, this patch adds tests of pow for
the cases where pow (x, 0.5) is required to return a different result
from sqrt (x), as those cases were previously missing from the tests
(although they worked correctly).

Tested for x86_64 and x86.

	* math/auto-libm-test-in: Add another test of pow.
	* math/auto-libm-test-out: Regenerated.
	* math/libm-test.inc (pow_test_data): Add another test.
Diffstat (limited to 'math/libm-test.inc')
-rw-r--r--math/libm-test.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/math/libm-test.inc b/math/libm-test.inc
index 669b060dc9..a09cf90826 100644
--- a/math/libm-test.inc
+++ b/math/libm-test.inc
@@ -10285,6 +10285,7 @@ static const struct test_ff_f_data pow_test_data[] =
 #endif
 
     /* pow (-inf, y) == +inf for y > 0 and not an odd integer.  */
+    TEST_ff_f (pow, minus_infty, 0.5, plus_infty, ERRNO_UNCHANGED),
     TEST_ff_f (pow, minus_infty, 28, plus_infty, ERRNO_UNCHANGED),
     TEST_ff_f (pow, minus_infty, 0x1p24, plus_infty, ERRNO_UNCHANGED),
     TEST_ff_f (pow, minus_infty, 0x1p127, plus_infty, ERRNO_UNCHANGED),