]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r289332:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 26 Oct 2015 00:06:04 +0000 (00:06 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 26 Oct 2015 00:06:04 +0000 (00:06 +0000)
commit2064747ca38b969ef12afd7b88623249c89d18bb
treeba0b71e50cda9caeea75f6bbd7090822a5476ad2
parent1eebe769c931b0a449d5477168bf23833dc213ef
MFC r289332:

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)
Sponsored by: EMC / Isilon Storage Division
Reported by: Bill Morchin <wmorchin@isilon.com>

git-svn-id: svn://svn.freebsd.org/base/stable/10@289970 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
tools/regression/lib/msun/test-fenv.c