test(softfloat): add IEEE 754 edge cases for min/max functions#96
test(softfloat): add IEEE 754 edge cases for min/max functions#96euinharry wants to merge 2 commits intogevico:mainfrom
Conversation
|
@codex Please help review this PR. |
Code Standards ReviewPR: test(softfloat): add IEEE 754 edge cases for min/max functions (#96) The following issues were found
RustSBI contribution requirements:
Please amend the offending commits and force-push before requesting merge. Automated review by PR Monitor. |
Signed-off-by: euinharry <3411893753@qq.com> tests(softfloat): add min/max IEEE 754 edge cases for gevico#61
dd8a53e to
6ec4f3f
Compare
|
@codex Please review this PR |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6ec4f3f288
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| let mx = snan.max(finite, &mut e); | ||
| assert_eq!(mx.to_f32(), 3.14); | ||
| assert!(e.flags().contains(ExcFlags::INVALID)); |
There was a problem hiding this comment.
Clear flags before asserting max(sNaN, finite) behavior
FloatEnv exception flags are sticky, so after snan.min(finite, &mut e) sets INVALID, the later assert!(e.flags().contains(ExcFlags::INVALID)) will pass even if max stops raising INVALID. In this test, that makes the max check non-independent and can hide regressions in the max path; reset flags (or use a fresh env) before the max call so the assertion verifies the second operation itself.
Useful? React with 👍 / 👎.
Code Standards ReviewCommit Fix: git commit --amend -m "test(softfloat): add min/max IEEE 754 edge cases for #61" -s
git push --force-with-leaseReviewed against machina contribution guidelines. |
|
please fix: |
Modify monitor.rs and service.rs in tests/src to complete test logic and verify module functionality as required. Signed-off-by: euinharry <3411893753@qq.com> Signed-off-by: euinharry <3411893753@qq.com>
Code Standards ReviewNew commit Note: the existing Reviewed against machina contribution guidelines. |
Add test cases to validate softfloat min/max operations against IEEE 754-2008.
The new tests cover the missing scenarios mentioned in issue #61:
These cases ensure the operations adhere to the standard's requirements.
Fix: #61
Signed-off-by: euinharry 3411893753@qq.com