History log of /src/tests/lib/libm/Makefile
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.54 16-Sep-2025 nat

Revert to previous as requested by Rin.

As I found out the hack only applies to libc/softfloat which has issues on
m68k.

The hack should not have been applied to all m68k configurations.


# 1.53 11-Sep-2025 nat

Opps...Fix build.


# 1.52 11-Sep-2025 nat

Fix segfaults of libm tests noticable on m68k.

Also document it in doc/HACKS.


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base
# 1.51 19-Sep-2024 gdt

tests: Add test for remquo

This test currently fails, because remquo has bugs. (A bugfix will be
committed soon.) Test vectors derived from results from code by
Charles Karney in GeodesicLib/proj, and manually inspected.


# 1.50 09-Sep-2024 riastradh

math.h: Add math_errhandling, MATH_ERRNO, MATH_ERREXCEPT.

XXX Should maybe put a __math_errhandling in machine/math.h, but only
VAX uses MATH_ERRNO and that's not likely to change any time soon, so
this will serve for now with less churn.

PR standards/56234: missing C99 frobs in <math.h>


Revision tags: perseant-exfatfs-base-20240630 perseant-exfatfs-base
# 1.49 05-May-2024 riastradh

branches: 1.49.2;
tests/lib/libm: Test nextafter/nexttoward and variants.

The tests are fairly trivial but should work without any conditionals
about floating-point formats.


Revision tags: netbsd-10-0-RELEASE netbsd-10-0-RC6 netbsd-10-0-RC5 netbsd-10-0-RC4 netbsd-10-0-RC3 netbsd-10-0-RC2 netbsd-10-0-RC1 netbsd-10-base
# 1.48 27-Aug-2022 christos

branches: 1.48.2;
Add sincos{,f,l} from FreeBSD


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.47 21-Jun-2020 lukem

fix build of t_cabsl from t_cabsl.cxx

t_cabsl source is in t_cabsl.cxx not t_cabsl.cc - the latter
is what bsd.tests.mk defaults to.

This only broke after my commit of share/mk/bsd.dep.mk rev 1.85
but I don't know why it didn't cause a problem previously.


Revision tags: netbsd-9-4-RELEASE netbsd-9-3-RELEASE netbsd-9-2-RELEASE netbsd-9-1-RELEASE phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609
# 1.46 26-Apr-2019 maya

branches: 1.46.2;
Add a test case for signbit.
(paranoia prior to a libm change)


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126
# 1.45 07-Nov-2018 riastradh

Build libm tests with -fno-builtin.

This way they test libm, not whatever the compiler does.

We should _also_ have automatic integration tests for what the
compiler does, as a separate thing.


Revision tags: pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625
# 1.44 20-Jun-2018 maya

branches: 1.44.2;
Add test case for PR lib/50646.

Make sure that cabsl (aka __c99_cabsl) is usable from C++.


# 1.43 04-Jun-2018 maya

Blindly add __TEST_FENV in the hope of fixing the vax build.

(So we can include fenv.h, and then not use it - we ifdef vax out
for OS-portability reasons.)


Revision tags: netbsd-8-3-RELEASE netbsd-8-2-RELEASE netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107
# 1.42 20-Dec-2016 maya

branches: 1.42.12;
define __TEST_FENV in the makefile for t_fe_round
should fix vax build (it doesn't have fenv.h)


# 1.41 19-Dec-2016 maya

add test for fesetround/fegetround that uses lrint (and tests it a bunch).
It doesn't fail on amd64.


Revision tags: pgoyette-localcount-20161104 localcount-20160914
# 1.40 31-Aug-2016 maya

Add failing test for casinh


# 1.39 23-Aug-2016 christos

portability fixes


# 1.38 22-Aug-2016 maya

add failing test for PR lib/51427
ilogb(INFINITY)=-INT_MAX, it should be INT_MAX

while here, test raised exceptions, other values.

XXX some platforms don't have exceptions


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.37 24-Jan-2016 gson

branches: 1.37.2;
Add some tests of hypot() and hypotf()


# 1.36 22-Dec-2015 christos

add __TEST_FENV


# 1.35 22-Dec-2015 christos

put have fenv stuff elsewhere.


# 1.34 22-Dec-2015 martin

Sync list of fenv enabled architectures again (PR 48633), this time for mips
addition.


# 1.33 21-Dec-2015 martin

While PR 48633 is not properly fixed, keep the additional lists of
fenv-enabled architectures in sync.


# 1.32 20-Jan-2015 snj

Remove stale comment about ARM fenv support.


# 1.31 03-Jan-2015 gson

Mark the lib/libm/t_fmod test as an expected failure under QEMU,
with a reference to PR misc/44767.


# 1.30 27-Dec-2014 martin

Enable fenv.h on arm again


# 1.29 27-Dec-2014 martin

fenv(3) support for hppa


# 1.28 22-Dec-2014 martin

Disabel fenv tests for arm, the implementation is incomplete.


# 1.27 21-Dec-2014 martin

Add a test program for basic fenv.h rounding mode/exception mask testing.


Revision tags: netbsd-7-base tls-maxphys-base
# 1.26 10-Aug-2014 martin

branches: 1.26.2;
Use the same condition for HAVE_FENV


Revision tags: tls-earlyentropy-base
# 1.25 16-Jun-2014 joerg

Add modfl(3). From FreeBSD.


# 1.24 18-May-2014 martin

Re-enable alpha IEEE compiler options


Revision tags: yamt-pagecache-base9
# 1.23 05-May-2014 martin

Comment out the ieee fp flags for alpha for now - something (tm) is not
working right, see PR port-alpha/48782.


# 1.22 28-Apr-2014 martin

Tune COPTS for alpha


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.21 03-Mar-2014 martin

branches: 1.21.2;
Define HAVE_FENV_H on architectures that support it.
What a mess, we need a central place for this!


# 1.20 12-Nov-2013 joerg

Initial version of fmodl from FreeBSD.
Basic test case for the fmod family.


# 1.19 11-Nov-2013 joerg

NetBSD 6.99.26: Switch i386 and amd64 to the x87 default control word
as initial value for new processes. This means that long double
computations get the expected 63bit mantissa. Binaries tagged as
compiled for 6.99.25 and older get the old value.

Add a simple test case to ensure that double and long double computation
are working correctly.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6 yamt-pagecache-base5 yamt-pagecache-base4
# 1.18 13-Apr-2012 njoly

branches: 1.18.2;
Do not re-add -mieee option on alpha, it's already set by default.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 netbsd-6-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.17 16-Oct-2011 jruoho

branches: 1.17.2;
Remove 't_rint' as it was committed accidentally.


# 1.16 16-Oct-2011 jruoho

As couple of checks fails on i386/qemu, reduce tolerance.


# 1.15 16-Oct-2011 jruoho

Add t_sqrt and t_cbrt.


# 1.14 16-Oct-2011 jruoho

Basic IEEE tests for the hyperbolic sine and cosine.


# 1.13 18-Sep-2011 jruoho

IEEE checks for the exponential family.


# 1.12 17-Sep-2011 jruoho

IEEE checks for the arcus functions.


# 1.11 17-Sep-2011 jruoho

Few tests for the error functions.


# 1.10 17-Sep-2011 jruoho

IEEE corner case tests for the pow(3) family (incl. PR lib/45372).


# 1.9 14-Sep-2011 jruoho

Some tests for sine, cosine, and tangent.


# 1.8 12-Sep-2011 jruoho

Merge 't_floor' to 't_ceil', and simplify.


# 1.7 12-Sep-2011 jruoho

Start systematic testing of libm(3) by first evaluating the corner cases
(NaN, +0.0, -0.0, +Inf, -Inf) for the ldexp(3) and scalbn(3) families.


Revision tags: cherry-xenmp-base
# 1.6 11-Apr-2011 martin

Try to generate infinite values in all available floating point formats
on the FPU and check isinf() and fpclassify() results. This is
different from the libc internal consistency checks testing PR
lib/33262.


# 1.5 10-Apr-2011 jruoho

Add a test case for PR lib/41931 reported by he@. It was verified that these
fail on NetBSD 5.99.48 amd64 but pass on amd64 Linux (glibc 2.7).


# 1.4 08-Apr-2011 jruoho

Move the round(3) checks from 't_libm' to their own 't_round'
for consistency. Add -Wfloat-equal and fix comparisons.


# 1.3 06-Apr-2011 jruoho

A test case for PR lib/44057.


# 1.2 24-Mar-2011 jruoho

Add dummy test cases for ceil(3) and floor(3). It is expected that at least
one of these will fail on guest x86_64 NetBSD under Qemu. Thanks to pgoyette@
for checking the broken floor(16.999999...) = 17.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
# 1.1 20-Dec-2010 pgoyette

Move the only regress/lib/libm test to the new atf format