-
Notifications
You must be signed in to change notification settings - Fork 214
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
Correcting IO assertion macros #426
Conversation
Not sure on the checklists here. Let me know if you need help from me on it, but it's a fairly trivial change that should not break anything™ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a bit puzzled as to what is going on here, because I don't see the code you're fixing in the repo. The current version I see doesn't use RVMODEL_IO_ASSERT_SFPR_EQ, it uses RVMODEL_IO_ASSERT_GPR_EQ - which is wrong, but it isn't what this PR is updating. What is the source of this?
The current version of the repo already has this fix.
The correct fix for the first change would be to change it to be a model defined RVMODEL_IO_ASSERT_FPR_EQ, which should use the FLREG/FSREG macros that take into account the current FLEN, just as your fix (and other macros) does.
Signed-off-by: Dan Petrisko <[email protected]>
Signed-off-by: Dan Petrisko <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is correctr now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is correct now
Thanks! |
Description
This PR corrects the IO assertion macros in TEST_CASE_F and TEST_CASE_FID. Currently, they call GPR comparison, but these are floating point test cases. This causes predictable errors when compiling with any reasonable implementation of RVMODEL_IO_ASSERT_GPR_EQ.
Related Issues
NA
Ratified/Unratified Extensions
List Extensions
F,D
Reference Model Used
Mandatory Checklist:
Optional Checklist: