about summary refs log tree commit diff
path: root/math/gen-auto-libm-tests.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2013-12-05 13:54:50 +0000
committerJoseph Myers <joseph@codesourcery.com>2013-12-05 13:54:50 +0000
commitbbf37bdc12c0370a0ac2fa597cddd660bad6ec5e (patch)
treededd0ec1962d0cdbe638a5ae3fb556dfa97db3a8 /math/gen-auto-libm-tests.c
parentc6bb4f23b036ab3ae972583bf1186a6131ce4968 (diff)
downloadglibc-bbf37bdc12c0370a0ac2fa597cddd660bad6ec5e.tar.gz
glibc-bbf37bdc12c0370a0ac2fa597cddd660bad6ec5e.tar.xz
glibc-bbf37bdc12c0370a0ac2fa597cddd660bad6ec5e.zip
Move TEST_f_f tests for [l-y]* functions from libm-test.inc to auto-libm-test-in.
Diffstat (limited to 'math/gen-auto-libm-tests.c')
-rw-r--r--math/gen-auto-libm-tests.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/math/gen-auto-libm-tests.c b/math/gen-auto-libm-tests.c
index 206a5d7475..5c631e099b 100644
--- a/math/gen-auto-libm-tests.c
+++ b/math/gen-auto-libm-tests.c
@@ -697,6 +697,18 @@ special_fill_minus_pi_2 (mpfr_t res0, mpfr_t res1, fp_format format)
 }
 
 static size_t
+special_fill_pi_4 (mpfr_t res0, mpfr_t res1, fp_format format)
+{
+  mpfr_init2 (res0, fp_formats[format].mant_dig);
+  assert_exact (mpfr_set_si (res0, 1, MPFR_RNDN));
+  mpfr_atan (res0, res0, MPFR_RNDU);
+  mpfr_init2 (res1, fp_formats[format].mant_dig);
+  assert_exact (mpfr_set_si (res1, 1, MPFR_RNDN));
+  mpfr_atan (res1, res1, MPFR_RNDD);
+  return 2;
+}
+
+static size_t
 special_fill_pi_6 (mpfr_t res0, mpfr_t res1, fp_format format)
 {
   mpfr_init2 (res0, fp_formats[format].mant_dig);
@@ -801,6 +813,7 @@ static const special_real_input special_real_inputs[] =
     { "-pi", special_fill_minus_pi },
     { "pi/2", special_fill_pi_2 },
     { "-pi/2", special_fill_minus_pi_2 },
+    { "pi/4", special_fill_pi_4 },
     { "pi/6", special_fill_pi_6 },
     { "-pi/6", special_fill_minus_pi_6 },
     { "pi/3", special_fill_pi_3 },