-
Notifications
You must be signed in to change notification settings - Fork 15.1k
[RISCV] Support .option {no}exact #122483
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
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
8d8ed46
[RISCV] Support .option (no)autocompress
lenary eba37b2
fixup! [RISCV] Support .option (no)autocompress
lenary f6b0186
Merge branch 'main' into pr/riscv-noautocompress
lenary 546f52c
Merge branch 'main' into pr/riscv-noautocompress
lenary 3d9113d
Merge remote-tracking branch 'origin/main' into pr/riscv-noautocompress
lenary dece4a6
Merge remote-tracking branch 'origin/main' into pr/riscv-noautocompress
lenary c70f679
Update implementation to match proposal
lenary 4e2aaee
fixup! Update implementation to match proposal
lenary b832095
Fix option-invalid.s test
lenary 32f3944
Address Review Feedback
lenary 8133e9d
fixup! Address Review Feedback
lenary 3fc5749
Serial Comma
lenary c8bf695
Address review feedback
lenary 7dc2322
Release Note
lenary 61bdfeb
Merge remote-tracking branch 'origin/main' into pr/riscv-noautocompress
lenary 2c62a5b
Fix features-info.ll
lenary 318afee
Move LLC test to test/CodeGen
lenary 58a0f1b
Alphabetize directiveOption declarations
lenary a764474
Combine exact test files
lenary 859b430
Merge remote-tracking branch 'origin/main' into pr/riscv-noautocompress
lenary 6c10814
clang-format
lenary 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| ; RUN: llc -mtriple=riscv32 -mattr=+relax,+c %s --filetype=obj -o - \ | ||
| ; RUN: | llvm-objdump --triple=riscv32 --mattr=+c -M no-aliases -dr - \ | ||
| ; RUN: | FileCheck %s | ||
|
|
||
| define i32 @foo(ptr noundef %f) nounwind { | ||
| ; CHECK-LABEL: <foo>: | ||
| ; CHECK: auipc ra, 0x0 | ||
| ; CHECK-NEXT: R_RISCV_CALL_PLT undefined | ||
| ; CHECK-NEXT: jalr ra, 0x0(ra) | ||
| ; CHECK-NEXT: lw a0, 0x0(a0) | ||
| ; CHECK-NEXT: c.jr ra | ||
|
|
||
| entry: | ||
| %0 = tail call i32 asm sideeffect " | ||
| .option exact | ||
| call undefined@plt | ||
| lw $0, ($1) | ||
| .option noexact", "=^cr,^cr"(ptr %f) | ||
| ret i32 %0 | ||
| } |
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.
Uh oh!
There was an error while loading. Please reload this page.