Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

math_brute_force: remove spurious tan skip check #1992

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

svenvh
Copy link
Member

@svenvh svenvh commented Jun 27, 2024

The skipTestingRelaxed check suffers the following problems:

  • The use of skipTestingRelaxed in the if seems reversed: when skipping correctness testing using the -l command line option, this variable causes correctness testing to be run for relaxed-mode tan regardless.

  • Accuracy testing should only be skipped for derived tan implementations. Non-derived tan implementations must still be tested for accuracy, so the condition for setting the skipTestingRelaxed variable is incomplete.

  • It is unclear why only tan is conditionalized here. There are other functions such as tanpi for which one would expect identical behaviour.

The actual skipping of accuracy checks for derived implementations happens in Test(), so just remove skipTestingRelaxed as it does not seem to add any value.

The `skipTestingRelaxed` check suffers the following problems:

 - The use of `skipTestingRelaxed` in the `if` seems reversed:
   when skipping correctness testing using the `-l` command line
   option, this variable causes correctness testing to be run for
   relaxed-mode `tan` regardless.

 - Accuracy testing should only be skipped for derived `tan`
   implementations.  Non-derived `tan` implementations must still be
   tested for accuracy, so the condition for setting the
   `skipTestingRelaxed` variable is incomplete.

 - It is unclear why only `tan` is conditionalized here.  There are
   other functions such as `tanpi` for which one would expect
   identical behaviour.

The actual skipping of accuracy checks for derived implementations
happens in `Test()`, so just remove `skipTestingRelaxed` as it does
not seem to add any value.

Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
@bashbaug
Copy link
Contributor

Merging as discussed in the July 16th teleconference.

@bashbaug bashbaug merged commit 39fa6e6 into KhronosGroup:main Jul 16, 2024
7 checks passed
@svenvh svenvh deleted the math-skiptanrlx branch July 17, 2024 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants