-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[RISC-V] Fix Int32 to Unsigned overflow check #107024
Open
Bajtazar
wants to merge
27
commits into
dotnet:main
Choose a base branch
from
Bajtazar:riscv-positive-int-overflow-fix
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
b112859
[RISC-V] Allowed CHECK_POSITIVE to have temporary register
Bajtazar f3fb8b3
[RISC-V] Fixed CHECK_POSITIVE in genIntCastOverflowCheck
Bajtazar 9054a4e
[RISC-V] Improved J pseudoinstruction printing
Bajtazar 1f7c669
[RISC-V] Added ret pseudoinstruction to disasm
Bajtazar 4dcc555
[RISC-V] Fixed register type in disasm
Bajtazar 144629f
[RISC-V] Fixed ins_Load
Bajtazar 0a595fb
[RISC-V] Formatted code
Bajtazar 87105a9
Merge branch 'main' into riscv-positive-int-overflow-fix
Bajtazar c68c1cd
[RISC-V] Fixed format bug
Bajtazar 9b268e9
Merge branch 'riscv-positive-int-overflow-fix' of github.com:Bajtazar…
Bajtazar bd678ee
Revert "[RISC-V] Fixed ins_Load"
Bajtazar 4bef7fb
[RISC-V] Fixed comment in codegenlinear
Bajtazar eea0be5
[RISC-V] Fixed sextw attribute type
Bajtazar cdb7924
[RISC-V] Simplified casts logic
Bajtazar 1b4907e
[RISC-V] Improved CHECK_SMALL_INT_RANGE casts
Bajtazar d063b64
[RISC-V] Optimized check int range
Bajtazar 4dffd5f
[RISC-V] Fixes in codegenriscv64
Bajtazar 74868f2
[RISC-V] Removed unused comment
Bajtazar bc09d23
[RISC-V] Fixed long/ulong casts
Bajtazar 44e7411
[RISC-V] Added some comments
Bajtazar 75d7405
[RISC-V] Fixes in CHECK_SMALL_INT_RANGE
Bajtazar eba998a
[RISC-V] More bugfixes in int casts
Bajtazar 5fdc67f
[RISC-V] Generalized CHECK_SMALL_INT_RANGE a little bit
Bajtazar 209a8b1
Merge branch 'main' into riscv-positive-int-overflow-fix
Bajtazar 5db2482
[RISC-V] Fixed typo
Bajtazar 97c951c
Merge branch 'main' into riscv-positive-int-overflow-fix
Bajtazar daa73aa
Merge branch 'main' into riscv-positive-int-overflow-fix
Bajtazar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
If I am correct this piece of code is invoked during
uint
->int
conversion. That would mean that if theuint > 0x7f'ff'ff'ff
the old comparation wouldn't work since it wouldn't be classified as an overflow