opnsense-src/tools/regression/lib/msun
Enji Cooper d63d2d29cb Fix test-fenv:test_dfl_env when run on some amd64 CPUs
Compare the fields that the AMD [1] and Intel [2] specs say will be
set once fnstenv returns.

Not all amd64 capable processors zero out the env.__x87.__other field
(example: AMD Opteron 6308). The AMD64/x64 specs aren't explicit on what the
env.__x87.__other field will contain after fnstenv is executed, so the values
in env.__x87.__other could be filled with arbitrary data depending on how the
CPU-specific implementation of fnstenv.

1. http://support.amd.com/TechDocs/26569_APM_v5.pdf
2. http://www.intel.com/Assets/en_US/PDF/manual/253666.pdf

Discussed with: kib, Anton Rang <anton.rang@isilon.com>
Reviewed by: Daniel O'Connor <darius@dons.net.au> (earlier patch; pre-generalization)
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
Reported by: Bill Morchin <wmorchin@isilon.com>
2015-10-14 20:22:12 +00:00
..
Makefile Factor out some common code from the libm tests. This is a bit messy 2013-06-02 04:30:03 +00:00
test-cexp.c - Replace N(a)/N(i)/N(T)/LEN(a)/ARRAY_SIZE(a) with nitems() 2015-08-29 19:47:20 +00:00
test-cexp.t Add some tests for cexp() and cexpf(). (I need to clean up all of 2011-03-07 03:15:49 +00:00
test-conj.c Be ANSI-C compliant when defining CX_LIMITED_RANGE #pragma 2014-09-09 02:58:58 +00:00
test-conj.t Add tests for conj{,f,l}() that I wrote some time ago. These test the 2009-01-31 18:31:57 +00:00
test-csqrt.c - Replace N(a)/N(i)/N(T)/LEN(a)/ARRAY_SIZE(a) with nitems() 2015-08-29 19:47:20 +00:00
test-csqrt.t Regression tests for csqrt(3). 2007-12-15 09:16:26 +00:00
test-ctrig.c Fix some bugs in the complex trig tests so that they test both double 2013-06-10 06:03:03 +00:00
test-ctrig.t Tests for complex trig and hyperbolic functions. 2011-10-21 06:34:38 +00:00
test-exponential.c Factor out some common code from the libm tests. This is a bit messy 2013-06-02 04:30:03 +00:00
test-exponential.t Add some regression tests for libm's exponential functions. These 2008-01-18 21:46:54 +00:00
test-fenv.c Fix test-fenv:test_dfl_env when run on some amd64 CPUs 2015-10-14 20:22:12 +00:00
test-fenv.t
test-fma.c Factor out some common code from the libm tests. This is a bit messy 2013-06-02 04:30:03 +00:00
test-fma.t Add some tests for fma(), fmaf(), and fmal(). 2008-04-03 06:15:58 +00:00
test-fmaxmin.c Factor out some common code from the libm tests. This is a bit messy 2013-06-02 04:30:03 +00:00
test-fmaxmin.t Add regression tests for fmin{,f,l} and fmax{,f,l}. 2008-07-03 23:06:06 +00:00
test-ilogb.c
test-ilogb.t
test-invctrig.c Expand the tests structure in test_small(..) to workaround the 2014-09-09 22:14:15 +00:00
test-invtrig.c - Replace N(a)/N(i)/N(T)/LEN(a)/ARRAY_SIZE(a) with nitems() 2015-08-29 19:47:20 +00:00
test-invtrig.t Add some tests for acos*(), asin*(), atan*(), and atan2*(). 2008-07-31 22:43:38 +00:00
test-logarithm.c Add more tests for log functions. A few are commented out because the 2013-06-03 09:15:15 +00:00
test-logarithm.t Add regression tests for logarithmic functions in the math library. 2010-12-05 22:18:35 +00:00
test-lrint.c Work around gcc constant folding bugs. 2010-12-06 00:19:56 +00:00
test-lrint.t
test-lround.c gcc 4 does some overzealous constant folding, and since it doesn't 2007-12-09 20:16:48 +00:00
test-lround.t
test-nan.c Regression tests for nan{,f,l}(). 2007-12-16 21:19:51 +00:00
test-nan.t Regression tests for nan{,f,l}(). 2007-12-16 21:19:51 +00:00
test-nearbyint.c Factor out some common code from the libm tests. This is a bit messy 2013-06-02 04:30:03 +00:00
test-nearbyint.t Add some basic regression tests for nearbyint(). 2010-12-03 00:44:31 +00:00
test-next.c Factor out some common code from the libm tests. This is a bit messy 2013-06-02 04:30:03 +00:00
test-next.t
test-rem.c Fix some harmless bugs in a test. 2013-05-30 04:47:03 +00:00
test-rem.t Add missing test-rem.t. 2005-04-02 12:50:28 +00:00
test-trig.c - Replace N(a)/N(i)/N(T)/LEN(a)/ARRAY_SIZE(a) with nitems() 2015-08-29 19:47:20 +00:00
test-trig.t Some basic regression tests for {sin,cos,tan}{,f,l}(). 2008-02-18 02:00:16 +00:00
test-utils.h Factor out some common code from the libm tests. This is a bit messy 2013-06-02 04:30:03 +00:00