]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - math/auto-libm-test-in
Add inputs that generate larger error bounds
[thirdparty/glibc.git] / math / auto-libm-test-in
index 785328562ff58aaa1e3e19eddb6bfff8d238d2b1..4edaaa8ee198333de78a384df85d562f506ff6d2 100644 (file)
@@ -1,5 +1,5 @@
 # libm test inputs for gen-auto-libm-tests.c.
-# Copyright (C) 1997-2018 Free Software Foundation, Inc.
+# Copyright (C) 1997-2021 Free Software Foundation, Inc.
 # This file is part of the GNU C Library.
 #
 # The GNU C Library is free software; you can redistribute it and/or
@@ -14,7 +14,7 @@
 #
 # You should have received a copy of the GNU Lesser General Public
 # License along with the GNU C Library; if not, see
-# <http://www.gnu.org/licenses/>.  */
+# <https://www.gnu.org/licenses/>.  */
 
 acos 0
 acos -0
@@ -79,6 +79,10 @@ acos 0xe.17513589de79b75p-4
 acos 0x3.e57821d368ebap-4
 acos 0x2.0bee8p-4
 acos -0x1.da00d8p-4
+# the next value generates larger error bounds on x86_64 (binary64)
+acos 0x1.fffff3634acd6p-1
+# the next value generates larger error bounds on x86_64 (ldbl-96)
+acos 0xf.fe00271d507ee5dp-4
 acos min
 acos -min
 acos min_subnorm
@@ -86,10 +90,10 @@ acos -min_subnorm
 
 acosh 1
 acosh 0x1.000002p0
-acosh 0x1.0000000000001p0 no-test-inline
-acosh 0x1.0000000000000002p0 no-test-inline
-acosh 0x1.000000000000000000000000008p0 no-test-inline
-acosh 0x1.0000000000000000000000000001p0 no-test-inline
+acosh 0x1.0000000000001p0
+acosh 0x1.0000000000000002p0
+acosh 0x1.000000000000000000000000008p0
+acosh 0x1.0000000000000000000000000001p0
 acosh 1.625
 acosh 7
 acosh 100
@@ -140,7 +144,11 @@ acosh 0x1.1b836p+0
 acosh 0x1.07c956p+0
 acosh 0x1.1808eep+0
 acosh 0x1.1052c4p+0
-acosh max no-test-inline
+# the next value generates larger error bounds on x86_64 (ldbl-96)
+acosh 0x1.1ecbdf374bce01cap+0
+# the next value generates larger error bounds on x86_64 (binary128)
+acosh 0x1.0f97586eba090200118df0902f99p+0
+acosh max
 
 add 0 0
 add 0 -0
@@ -282,6 +290,8 @@ asin 0xd.805e5p-4
 asin -0x2.1a02dcp-4
 asin -0x8.1c120ac3e495p-4
 asin -0xb.36dacp-4
+# the next value generates larger error bounds on x86_64 (binary64)
+asin 0x1.f6041ffe89d7dp-4
 asin min
 asin -min
 asin min_subnorm
@@ -371,12 +381,18 @@ asinh -0x6.e26358p-4
 asinh 0x6.c92c08p-4
 asinh 0x1p-500
 asinh 0x1p-5000
+# the next value generates larger error bounds on x86_64 (binary32)
+asinh 0xf.96c69p-8
+# the next value generates larger error bounds on x86_64 (binary64)
+asinh 0x1.023cfeab10a13p-2
+# the next value generates larger error bounds on x86_64 (binary128)
+asinh -0x5.a95683e302a71be88a35649b24ep-4
 asinh min
 asinh -min
 asinh min_subnorm
 asinh -min_subnorm
-asinh max no-test-inline
-asinh -max no-test-inline
+asinh max
+asinh -max
 
 atan 0
 atan -0
@@ -412,6 +428,8 @@ atan -0x1.ad4c0ap+0
 atan -0x3.eb8e18p+0
 atan 0x3.53c188p+0
 atan -0x1.58c83p+0
+# the next value generates larger error bounds on x86_64 (binary32)
+atan 0x1.626772p-1
 atan min
 atan -min
 atan min_subnorm
@@ -468,6 +486,10 @@ atan2 -0x6.b0794p-4 0x3.8ff10cp+0
 atan2 -0x7.15e7af0a1780cp-724 0xf.fffffp+124
 atan2 0x3.f16f1p+0 -0x1.546056p+0
 atan2 -0x1.9e657cp-24 0x7.40bb4p-52
+# the next value generates larger error bounds on x86_64 (binary32)
+atan2 -0x1.f9cf48p+49 0x1.f60598p+51
+# the next value generates larger error bounds on x86_64 (binary128)
+atan2 0x1.41df5aa214612c7e019fa6ade88p-13316 0x5.e53b26a270a29eb9f77ef8ef7af8p-13316
 atan2 min min
 atan2 min -min
 atan2 -min min
@@ -547,24 +569,24 @@ atanh 0x1p-600
 atanh -0x1p-600
 atanh 0x1p-10000
 atanh -0x1p-10000
-atanh 0x0.ffffffp0 no-test-inline
-atanh -0x0.ffffffp0 no-test-inline
-atanh 0x0.ffffffff8p0 no-test-inline
-atanh -0x0.ffffffff8p0 no-test-inline
-atanh 0x0.ffffffffffffp0 no-test-inline
-atanh -0x0.ffffffffffffp0 no-test-inline
-atanh 0x0.fffffffffffff8p0 no-test-inline
-atanh -0x0.fffffffffffff8p0 no-test-inline
-atanh 0x0.ffffffffffffffffp0 no-test-inline
-atanh -0x0.ffffffffffffffffp0 no-test-inline
-atanh 0x0.ffffffffffffffffffffffffffcp0 no-test-inline
-atanh -0x0.ffffffffffffffffffffffffffcp0 no-test-inline
-atanh 0x0.ffffffffffffffffffffffffffff8p0 no-test-inline
-atanh -0x0.ffffffffffffffffffffffffffff8p0 no-test-inline
+atanh 0x0.ffffffp0
+atanh -0x0.ffffffp0
+atanh 0x0.ffffffff8p0
+atanh -0x0.ffffffff8p0
+atanh 0x0.ffffffffffffp0
+atanh -0x0.ffffffffffffp0
+atanh 0x0.fffffffffffff8p0
+atanh -0x0.fffffffffffff8p0
+atanh 0x0.ffffffffffffffffp0
+atanh -0x0.ffffffffffffffffp0
+atanh 0x0.ffffffffffffffffffffffffffcp0
+atanh -0x0.ffffffffffffffffffffffffffcp0
+atanh 0x0.ffffffffffffffffffffffffffff8p0
+atanh -0x0.ffffffffffffffffffffffffffff8p0
 atanh -0x6.e6c77p-20
 atanh 0x3.2ca824p-4
 atanh -0x1.cc1d66p-4
-atanh -0xf.cd3809ca8fd28p-4 no-test-inline
+atanh -0xf.cd3809ca8fd28p-4
 atanh -0x1.04f386p-4
 atanh -0x2.084568p-4
 atanh -0x3.e0a5d8p-4
@@ -587,6 +609,8 @@ atanh -0x3.98eaf4p-4
 atanh 0x2.c1085p-4
 atanh 0x1p-500
 atanh 0x1p-5000
+# the next value generates larger error bounds on x86_64 (binary128)
+atanh 0x2.c02a24f3472c7840afbd8cfb68bap-4
 atanh min
 atanh -min
 atanh min_subnorm
@@ -3861,6 +3885,8 @@ cbrt 0x1.bd0098p-104
 cbrt -0x3.300d34p+0
 cbrt 0x6.247f5p-4
 cbrt -0x3.48648028cb464p+0
+# the next value generates larger error bounds on x86_64 (binary64)
+cbrt -0x1.7cec1dab41272p-230
 cbrt max xfail:ibm128-libgcc
 cbrt -max xfail:ibm128-libgcc
 cbrt min
@@ -4421,6 +4447,10 @@ cos 0x3.042d88p+0
 cos 0x1.8475e5afd4481p+0
 cos 1.57079697
 cos -1.57079697
+# the next value generates larger error bounds on x86_64 (binary32)
+cos 0x2.3c6ef4p-12
+# the next value generates larger error bounds on x86_64 (binary128)
+cos 0xe.6672d458b05edf50af4fab1a42p+40
 
 cosh 0
 cosh -0
@@ -4451,8 +4481,8 @@ cosh 0x2.f5d128p+0
 cosh -0xd.0c03p+0
 cosh -0x3.d04328728b72cp-4
 cosh 0x1.629188p+4
-cosh max no-test-inline
-cosh -max no-test-inline
+cosh max
+cosh -max
 cosh min
 cosh -min
 cosh min_subnorm
@@ -4474,14 +4504,22 @@ cosh 0x2.c679d1f73f0fb624d358b213a7p+8 xfail-rounding:ibm128-libgcc
 cosh 0x2.c679d1f73f0fb624d358b213a8p+8 xfail-rounding:ibm128-libgcc
 cosh -0x2.c679d1f73f0fb624d358b213a7p+8 xfail-rounding:ibm128-libgcc
 cosh -0x2.c679d1f73f0fb624d358b213a8p+8 xfail-rounding:ibm128-libgcc
-cosh 0x2.c5d37700c6bb03a4p+12 no-test-inline
-cosh 0x2.c5d37700c6bb03a8p+12 no-test-inline
-cosh -0x2.c5d37700c6bb03a4p+12 no-test-inline
-cosh -0x2.c5d37700c6bb03a8p+12 no-test-inline
-cosh 0x2.c5d37700c6bb03a6c24b6c9b494cp+12 no-test-inline
-cosh 0x2.c5d37700c6bb03a6c24b6c9b494ep+12 no-test-inline
-cosh -0x2.c5d37700c6bb03a6c24b6c9b494cp+12 no-test-inline
-cosh -0x2.c5d37700c6bb03a6c24b6c9b494ep+12 no-test-inline
+cosh 0x2.c5d37700c6bb03a4p+12
+cosh 0x2.c5d37700c6bb03a8p+12
+cosh -0x2.c5d37700c6bb03a4p+12
+cosh -0x2.c5d37700c6bb03a8p+12
+cosh 0x2.c5d37700c6bb03a6c24b6c9b494cp+12
+cosh 0x2.c5d37700c6bb03a6c24b6c9b494ep+12
+cosh -0x2.c5d37700c6bb03a6c24b6c9b494cp+12
+cosh -0x2.c5d37700c6bb03a6c24b6c9b494ep+12
+# the next value generates larger error bounds on x86_64 (binary32)
+cosh 0x5.8bfe6p+4
+# the next value generates larger error bounds on x86_64 (binary64)
+cosh 0x1.633c457f1e66bp+9
+# the next value generates larger error bounds on x86_64 (ldbl-96)
+cosh 0x2.c5d376167f4052f4p+12
+# the next value generates larger error bounds on x86_64 (binary128)
+cosh -0x2.c5d376eefcd4bbeb000452d84662p+12
 
 cpow 1 0 0 0 ignore-zero-inf-sign
 cpow 2 0 10 0 ignore-zero-inf-sign
@@ -4982,6 +5020,12 @@ erfc 0x6.a8a0561d8bbe942p+4
 erfc 0x6.a8a0561d8bbe9428p+4
 erfc 0x6.a893032db905274042fb05c665dcp+4
 erfc 0x6.a893032db905274042fb05c665ep+4
+# the next value generates larger error bounds on x86_64 (binary32)
+erfc 0xd.03d06p-4
+# the next value generates larger error bounds on x86_64 (ldbl-96)
+erfc 0x1.5cf2167efe9207d2p+0
+# the next value generates larger error bounds on x86_64 (binary128)
+erfc 0x1.5166e0efc44a9dfc79b8c8873a99p+0
 erfc min
 erfc -min
 erfc min_subnorm
@@ -5012,6 +5056,8 @@ erfc 0x2.56af04p+0
 erfc 0x2.b7f8cb76737d2af98dead7c4c5eep+0
 erfc 0x2.dfb9b4p+0
 erfc 0x1.e33c9ep+0
+# the next value generates larger error bounds on x86_64 (binary64)
+erfc 0x1.3ffcbf39febb4p+0
 
 exp 0
 exp -0
@@ -5096,6 +5142,10 @@ exp 0x3.248524p+0
 exp 0x1.f0b362p+0
 exp 0xd.89746a799ac4eedp+0
 exp -0x6.58b64p-4
+# the next value generates larger error bounds on x86_64 (binary32)
+exp 0x1.fefe02p-16
+# the next value generates larger error bounds on x86_64 (binary64)
+exp -0x1.0c4af1ad4ee36p+9
 
 exp10 0
 exp10 -0
@@ -5159,6 +5209,8 @@ exp10 0x1.34413509f79fef311f12b35816f9p+12
 exp10 0x1.34413509f79fef311f12b35816fap+12
 exp10 -0x1.343793004f503231a589bac27c39p+12
 exp10 -0x1.343793004f503231a589bac27c38p+12
+# the next value generates larger error bounds on x86_64 (binary32)
+exp10 -0xa.6f431p+0
 exp10 min
 exp10 -min
 exp10 min_subnorm
@@ -5352,6 +5404,10 @@ expm1 -0x7.d6c50b469d404p+0
 expm1 0x4.857de8p+4
 expm1 0x5.dfeb68p-4
 expm1 0x4.0000000000000028p-16384
+# the next value generates larger error bounds on x86_64 (ldbl-96)
+expm1 0x5.8b911eb6733469c8p-4
+# the next value generates larger error bounds on x86_64 (binary128)
+expm1 0x5.a343df0d680099a7a1a873a751a8p-4
 expm1 min
 expm1 -min
 expm1 min_subnorm
@@ -5659,42 +5715,42 @@ hypot 0.75 1.25
 hypot 1.0 0x1p-61
 hypot 0x1p+0 0x1.fp-129
 hypot 0x1.23456789abcdef0123456789ab8p-500 0x1.23456789abcdef0123456789ab8p-500
-hypot 0x3p125 0x4p125 no-test-inline:binary32
-hypot 0x1.234566p-126 0x1.234566p-126 no-test-inline:binary32
-hypot 0x3p1021 0x4p1021 no-test-inline:binary64
-hypot 0x1p+0 0x0.3ep-1022 no-test-inline:binary64
-hypot 0x3p16381 0x4p16381 no-test-inline
+hypot 0x3p125 0x4p125
+hypot 0x1.234566p-126 0x1.234566p-126
+hypot 0x3p1021 0x4p1021
+hypot 0x1p+0 0x0.3ep-1022
+hypot 0x3p16381 0x4p16381
 hypot 0x1p-149 0x1p-149
 hypot 0x1p-1074 0x1p-1074
-hypot 0x1p-16445 0x1p-16445 no-test-inline
-hypot 0x1p-16494 0x1p-16494 no-test-inline
+hypot 0x1p-16445 0x1p-16445
+hypot 0x1p-16494 0x1p-16494
 hypot 0x0.fffffep-126 0x0.fp-127
 hypot 0x0.fffffep-126 0x0.fp-130
 hypot 0x0.fffffffffffffp-1022 0x0.fp-1023
 hypot 0x0.fffffffffffffp-1022 0x0.fp-1026
-hypot 0x0.ffffffp-16382 0x0.fp-16383 no-test-inline
-hypot 0x0.ffffffp-16382 0x0.fp-16386 no-test-inline
-hypot 0 min no-test-inline
-hypot 0 min_subnorm no-test-inline
-hypot 0 -min no-test-inline
-hypot 0 -min_subnorm no-test-inline
-hypot min 0 no-test-inline
-hypot min_subnorm 0 no-test-inline
-hypot -min 0 no-test-inline
-hypot -min_subnorm 0 no-test-inline
-hypot min min no-test-inline
-hypot min_subnorm min_subnorm no-test-inline
-hypot min min_subnorm no-test-inline
+hypot 0x0.ffffffp-16382 0x0.fp-16383
+hypot 0x0.ffffffp-16382 0x0.fp-16386
+hypot 0 min
+hypot 0 min_subnorm
+hypot 0 -min
+hypot 0 -min_subnorm
+hypot min 0
+hypot min_subnorm 0
+hypot -min 0
+hypot -min_subnorm 0
+hypot min min
+hypot min_subnorm min_subnorm
+hypot min min_subnorm
 hypot 0x1.fp127 0x1.fp127
 hypot 0x1.fp1023 0x1.fp1023
-hypot 0x1.fp16383 0x1.fp16383 no-test-inline xfail-rounding:ibm128-libgcc
+hypot 0x1.fp16383 0x1.fp16383 xfail-rounding:ibm128-libgcc
 
 hypot 0x1p-127 0x1p-149
 hypot 0x1p-1023 0x1p-1074
 hypot 0x1p-970 0x1p-1074
-hypot 0x1p-16383 0x1p-16445 no-test-inline
-hypot 0x1p-16384 0x1p-16446 no-test-inline
-hypot 0x1p-16383 0x1p-16494 no-test-inline
+hypot 0x1p-16383 0x1p-16445
+hypot 0x1p-16384 0x1p-16446
+hypot 0x1p-16383 0x1p-16494
 
 hypot -0x1.fa7deap+0 0x1.a761bab383ac8p+0
 
@@ -5734,6 +5790,10 @@ j0 -0x1.001000001p+593
 j0 0x1p1023
 j0 0x1p16382
 j0 0x1p16383
+# the next value generates larger error bounds on x86_64 (binary32)
+j0 0x2.602774p+0 xfail-rounding:ibm128-libgcc
+# the next value exercises the flt-32 code path for x >= 2^127
+j0 0x8.2f4ecp+124
 
 j1 -1.0
 j1 0.0
@@ -5765,6 +5825,8 @@ j1 0x1p-60
 j1 0x1p-100
 j1 0x1p-600
 j1 0x1p-10000
+# the next value generates larger error bounds on x86_64 (binary32)
+j1 0x3.ae4b2p+0 xfail-rounding:ibm128-libgcc
 j1 min
 j1 -min
 j1 min_subnorm
@@ -5903,6 +5965,8 @@ lgamma 0x1p-16445
 lgamma -0x1p-16445
 lgamma 0x1p-16494
 lgamma -0x1p-16494
+# the next value generates larger error bounds on x86_64 (binary32)
+lgamma -0x3.ec4298p+0
 
 # Values +/- 10ulp from overflow threshold.  (Values very close to
 # overflow threshold produce results very close of that threshold,
@@ -6404,6 +6468,8 @@ log 0x1.0b5c1ep+36
 log 0x2.1b17c2887e938p+928
 log 0x1.929d9cp+0
 log 0x1.770072p+0
+# the next value generates larger error bounds on x86_64 (binary64)
+log 0x1.d405118796bd8p-1
 
 log10 1
 log10 0.1
@@ -6422,6 +6488,8 @@ log10 0x0.fffffffffffff8p0
 log10 0x0.ffffffffffffffffp0
 log10 0x0.ffffffffffffffffffffffffffcp0
 log10 0x0.ffffffffffffffffffffffffffff8p0
+# the next value generates larger error bounds on x86_64 (binary128)
+log10 0x1.6a291ea0aa11fb374f1df8b3ac6bp+0
 log10 min
 log10 min_subnorm
 log10 max
@@ -6466,6 +6534,8 @@ log1p 0x1p50
 log1p 0x1p60
 log1p 0x1p100
 log1p 0x1p1000
+# the next value generates larger error bounds on x86_64 (binary128)
+log1p 0x6.a0cf42befce9ed4085ef59254b48p-4
 log1p max
 
 log1p 0x7.2a4368p-4
@@ -6515,6 +6585,8 @@ log2 0xb.e132ap-4
 log2 0xb.5bf82dc51f02035p-4
 log2 0xb.7704dc9beb05p-4
 log2 0xb.56f63c18e93eecdp-4
+# the next value generates larger error bounds on x86_64 (binary128)
+log2 0xb.54170d5cfa8fd72a47d6bda19068p-4
 log2 min
 log2 min_subnorm
 log2 max
@@ -7154,6 +7226,8 @@ pow 0x1.430d4cp+0 0x5.0e462p+4
 pow 0x9.8b82ap-4 -0x1.99907ap+12
 pow 0xd.73035p-4 -0x1.47bb8p+8
 pow 0x1.059c76p+0 0x1.ff80bep+11
+pow 0x1.7ac7cp+5 23
+pow -0x1.7ac7cp+5 23
 
 sin 0
 sin -0
@@ -7203,6 +7277,12 @@ sin 0x6.287cc8749212e72p+0
 sin -0x1.02e34cp+0
 sin 0xf.f0274p+4
 sin 0x3.042d88p+0
+# the next value generates larger error bounds on x86_64 (binary32)
+sin 0x1.d12ed2p-12
+# the next value generates larger error bounds on x86_64 (ldbl-96)
+sin -0x6.e2368c006c018228p+16
+# the next value generates larger error bounds on x86_64 (binary128)
+sin 0x5.6a5005df4363833413fa44f74ae8p+64
 sin max
 sin -max
 sin min
@@ -7299,8 +7379,10 @@ sinh -0x1.3dda8ap+0
 sinh -0x5.ee9218p-4
 sinh -0x1.bcfc98p+0
 sinh -0x6.9bbb6df7c5d08p-4
-sinh max no-test-inline
-sinh -max no-test-inline
+# the next value generates larger error bounds on x86_64 (ldbl-96)
+sinh 0x2.c5d376167f4052f4p+12
+sinh max
+sinh -max
 sinh min
 sinh -min
 sinh min_subnorm
@@ -7312,10 +7394,12 @@ sinh 0x2.c679d1f73f0fap+8
 sinh 0x2.c679d1f73f0fcp+8
 sinh 0x2.c679d1f73f0fb624d358b213a7p+8 xfail-rounding:ibm128-libgcc
 sinh 0x2.c679d1f73f0fb624d358b213a8p+8 xfail-rounding:ibm128-libgcc
-sinh 0x2.c5d37700c6bb03a4p+12 no-test-inline
-sinh 0x2.c5d37700c6bb03a8p+12 no-test-inline
-sinh 0x2.c5d37700c6bb03a6c24b6c9b494cp+12 no-test-inline
-sinh 0x2.c5d37700c6bb03a6c24b6c9b494ep+12 no-test-inline
+sinh 0x2.c5d37700c6bb03a4p+12
+sinh 0x2.c5d37700c6bb03a8p+12
+sinh 0x2.c5d37700c6bb03a6c24b6c9b494cp+12
+sinh 0x2.c5d37700c6bb03a6c24b6c9b494ep+12
+# the next value generates larger error bounds on x86_64 (binary64)
+sinh -0x1.633c62890fa14p+9
 
 sub 0 0
 sub 0 -0
@@ -7649,6 +7733,8 @@ tanh 0x1p-60
 tanh 0x1p-100
 tanh 0x1p-600
 tanh 0x1p-10000
+# the next value generates larger error bounds on x86_64 (ldbl-96)
+tanh 0x3.b9979a543d0fbfa8p-4
 tanh max
 tanh -max
 tanh min
@@ -8157,6 +8243,10 @@ tgamma -0xa.ccfcep+0
 tgamma -0x9.418c8p+0
 tgamma -0x6.ce9158p+0
 tgamma -0xd.cbf53d0e7d06p+0
+# the next value generates larger error bounds on x86_64 (binary32)
+tgamma -0x3.0aa534p+0
+# the next value generates larger error bounds on x86_64 (binary64)
+tgamma -0x1.62b8c36c7180bp+4
 
 y0 0.125
 y0 0.75
@@ -8183,6 +8273,8 @@ y0 0x1p-100
 y0 0x1p-110
 y0 0x1p-600
 y0 0x1p-10000
+# the next value generates larger error bounds on x86_64 (binary32)
+y0 0xd.3432bp-4
 y0 min
 y0 min_subnorm