-
-
Notifications
You must be signed in to change notification settings - Fork 836
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
fix[codegen]: range bound check for signed integers #3814
fix[codegen]: range bound check for signed integers #3814
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #3814 +/- ##
==========================================
+ Coverage 85.19% 85.22% +0.03%
==========================================
Files 92 92
Lines 13914 13916 +2
Branches 3118 3118
==========================================
+ Hits 11854 11860 +6
+ Misses 1565 1561 -4
Partials 495 495 ☔ View full report in Codecov by Sentry. |
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.
haha, we used to have dedicated clample
instructions in the IR before i removed them (they did something slightly different than here though).
i think a bit longer-term the right refactor here is to have dedicated helper functions like def LE(is_signed), def GT(is_signed):
etc. but it's probably out of scope for this PR.
@DanielSchiavini could you merge in the CI fixes from master? and then i can merge
What I did
How I did it
How to verify it
Commit message
Fix range overflow when using signed integers
Description for the changelog
Fix range overflow when using signed integers
Cute Animal Picture