Repository navigation
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Change: Other Merge Risk:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
guest_mathfails on macOS since boykopovar#23972 addedCheckTinyInverseTrigFlags:The check compares
std::fetestexcept(FE_ALL_EXCEPT)withFE_INEXACT. On x86_64 macOS,FE_ALL_EXCEPTis0x3fand includesFE_DENORMALOPERAND(0x02). An SSE operation on a subnormal input sets that flag, so for±denorm_minthe test reads0x22where it expects0x20. With temporary logging, the four failing cases areasinandatanof0x1p-1074and-0x1p-1074: the result bits anderrnoare as expected, the flags are0x22. glibc'sFE_ALL_EXCEPThas no such flag, so Linux passes.The file already defines
StandardExceptions, the five C exception flags, for this. The check now uses it, as boykopovar#20503 did for two other tests. The library is unchanged, and the check still requires exactlyFE_INEXACTfor nonzero inputs and no flag for zeros.Tested
Apple M4, macOS 27.0.1, Apple clang (Command Line Tools), x86_64 Release build under Rosetta 2.
main0a025bd3c6with boykopovar#17425 and boykopovar#11049, which the macOS build needs.guest_mathmainGuestMath.cpp:4794Not run on Linux or Windows. The change only drops non-standard flags from the comparison, so a platform whose
FE_ALL_EXCEPTis the five standard flags reads the same value as before.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Summary by CodeRabbit