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

Verilog: add rounding mode to casts to real/shortreal #891

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

kroening
Copy link
Member

Casts to real/shortreal may need to round, hence add the rounding mode during lowering.

@kroening kroening force-pushed the floatbv-typecast branch 2 times, most recently from c7ac554 to 1ec10e8 Compare December 20, 2024 14:46
@kroening kroening marked this pull request as ready for review December 20, 2024 14:46
@tautschnig
Copy link
Collaborator

Should there also be a test that newly passes? As is right now, this adds both a KNOWNBUG test and code changes, the effect of the latter not being very clear as far as their impact on tests is concerned.

@kroening
Copy link
Member Author

Should there also be a test that newly passes? As is right now, this adds both a KNOWNBUG test and code changes, the effect of the latter not being very clear as far as their impact on tests is concerned.

I've split up the test.

Casts to real/shortreal may need to round, hence add the rounding mode
during lowering.
@tautschnig tautschnig merged commit 3d95eaa into main Dec 20, 2024
9 checks passed
@tautschnig tautschnig deleted the floatbv-typecast branch December 20, 2024 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants