-
Notifications
You must be signed in to change notification settings - Fork 16.8k
[RISCV] Make MOP/HINT-based instruction mnemonics always available #178609
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 4 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
dfd8b99
[RISCV] Make MOP/HINT-based instruction mnemonics always available
kito-cheng 3ed3d12
!fixup address review comments
kito-cheng 1a97531
!fixup make c.mop.1/c.mop.5 aliases for c.sspush/c.sspopchk
kito-cheng 6839ea2
Merge remote-tracking branch 'origin/main' into kitoc/mop-hint
kito-cheng 5d4e6ac
!fixup Fix test issues: use CHECK-ASM-AND-OBJ and fix lowercase prefixes
kito-cheng 9ba09f4
Merge remote-tracking branch 'origin/main' into kitoc/mop-hint
kito-cheng 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,42 +1,52 @@ | ||
| # RUN: llvm-mc %s -triple=riscv32 -mattr=+zcmop -show-encoding \ | ||
| # RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s | ||
| # RUN: | FileCheck -check-prefixes=CHECK-ASM %s | ||
| # RUN: llvm-mc %s -triple=riscv64 -mattr=+zcmop -show-encoding \ | ||
| # RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s | ||
| # RUN: | FileCheck -check-prefixes=CHECK-ASM %s | ||
| # RUN: llvm-mc -filetype=obj -triple=riscv32 -mattr=+zcmop < %s \ | ||
| # RUN: | llvm-objdump --mattr=+zcmop -d -r - \ | ||
| # RUN: | FileCheck --check-prefix=CHECK-ASM-AND-OBJ %s | ||
| # RUN: | FileCheck --check-prefix=CHECK-OBJ %s | ||
| # RUN: llvm-mc -filetype=obj -triple=riscv64 -mattr=+zcmop < %s \ | ||
| # RUN: | llvm-objdump --mattr=+zcmop -d -r - \ | ||
| # RUN: | FileCheck --check-prefix=CHECK-ASM-AND-OBJ %s | ||
| # RUN: | FileCheck --check-prefix=CHECK-OBJ %s | ||
|
|
||
| # CHECK-ASM-AND-OBJ: c.mop.1 | ||
| # c.mop.1 is an alias for c.sspush ra. | ||
| # CHECK-OBJ: c.sspush ra | ||
| # CHECK-ASM: c.sspush ra | ||
| # CHECK-ASM: encoding: [0x81,0x60] | ||
| c.mop.1 | ||
|
|
||
| # CHECK-ASM-AND-OBJ: c.mop.3 | ||
| # CHECK-OBJ: c.mop.3 | ||
| # CHECK-ASM: c.mop.3 | ||
| # CHECK-ASM: encoding: [0x81,0x61] | ||
| c.mop.3 | ||
|
|
||
| # CHECK-ASM-AND-OBJ: c.mop.5 | ||
| # c.mop.5 is an alias for c.sspopchk t0. | ||
| # CHECK-OBJ: c.sspopchk t0 | ||
| # CHECK-ASM: c.sspopchk t0 | ||
| # CHECK-ASM: encoding: [0x81,0x62] | ||
| c.mop.5 | ||
|
|
||
| # CHECK-ASM-AND-OBJ: c.mop.7 | ||
| # CHECK-OBJ: c.mop.7 | ||
| # CHECK-ASM: c.mop.7 | ||
| # CHECK-ASM: encoding: [0x81,0x63] | ||
| c.mop.7 | ||
|
|
||
| # CHECK-ASM-AND-OBJ: c.mop.9 | ||
| # CHECK-OBJ: c.mop.9 | ||
| # CHECK-ASM: c.mop.9 | ||
| # CHECK-ASM: encoding: [0x81,0x64] | ||
| c.mop.9 | ||
|
|
||
| # CHECK-ASM-AND-OBJ: c.mop.11 | ||
| # CHECK-OBJ: c.mop.11 | ||
| # CHECK-ASM: c.mop.11 | ||
| # CHECK-ASM: encoding: [0x81,0x65] | ||
| c.mop.11 | ||
|
|
||
| # CHECK-ASM-AND-OBJ: c.mop.13 | ||
| # CHECK-OBJ: c.mop.13 | ||
| # CHECK-ASM: c.mop.13 | ||
| # CHECK-ASM: encoding: [0x81,0x66] | ||
| c.mop.13 | ||
|
|
||
| # CHECK-ASM-AND-OBJ: c.mop.15 | ||
| # CHECK-OBJ: c.mop.15 | ||
| # CHECK-ASM: c.mop.15 | ||
| # CHECK-ASM: encoding: [0x81,0x67] | ||
| c.mop.15 | ||
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
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.