This is an archive of the discontinued LLVM Phabricator instance.

[libc] Specify rounding mode for strto[f|d] tests
ClosedPublic

Authored by abrachet on Jul 13 2022, 12:27 PM.

Details

Summary

The specified rounding mode will be used and restored to what it was before the test ran.

Additionally, it moves ForceRoundingMode and RoundingMode out of MPFRUtils to be used in more places.

Diff Detail

Event Timeline

abrachet created this revision.Jul 13 2022, 12:27 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 13 2022, 12:27 PM
abrachet requested review of this revision.Jul 13 2022, 12:27 PM
lntue added inline comments.Jul 13 2022, 12:34 PM
libc/utils/testutils/RoundingModeUtils.h
29

typo?

abrachet updated this revision to Diff 444391.Jul 13 2022, 12:39 PM
abrachet edited the summary of this revision. (Show Details)
abrachet added a subscriber: libc-commits.

Fix typo

abrachet marked an inline comment as done.Jul 13 2022, 12:39 PM
abrachet added inline comments.
libc/utils/testutils/RoundingModeUtils.h
29

Yes. Thanks

lntue accepted this revision.Jul 13 2022, 12:43 PM
This revision is now accepted and ready to land.Jul 13 2022, 12:43 PM
This revision was automatically updated to reflect the committed changes.
abrachet marked an inline comment as done.
Herald added a project: Restricted Project. · View Herald TranscriptJul 13 2022, 1:21 PM