-
Notifications
You must be signed in to change notification settings - Fork 1
[otbn] OTBN instruction set for gnu-as #1
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
Open
andrea-caforio
wants to merge
1
commit into
lowRISC:binutils-2_44-unratified-bitmanip
Choose a base branch
from
andrea-caforio:gnu-as-otbn
base: binutils-2_44-unratified-bitmanip
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1335,6 +1335,7 @@ static struct riscv_supported_ext riscv_supported_std_ext[] = | |
| {"b", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 }, | ||
| {"v", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 }, | ||
| {"h", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 }, | ||
| {"+", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 }, | ||
| {NULL, 0, 0, 0, 0} | ||
| }; | ||
|
|
||
|
|
@@ -1618,7 +1619,7 @@ riscv_recognized_prefixed_ext (const char *ext) | |
| } | ||
|
|
||
| /* Canonical order for single letter extensions. */ | ||
| static const char riscv_ext_canonical_order[] = "eigmafdqlcbkjtpvnh"; | ||
| static const char riscv_ext_canonical_order[] = "eigmafdqlcbkjtpvnh+"; | ||
|
|
||
| /* Array is used to compare the orders of standard extensions quickly. */ | ||
| static int riscv_ext_order[26] = {0}; | ||
|
|
@@ -1788,6 +1789,7 @@ riscv_get_default_ext_version (enum riscv_spec_class *default_isa_spec, | |
| table = riscv_supported_std_ext; | ||
| } | ||
|
|
||
|
|
||
| int i = 0; | ||
| while (table != NULL && table[i].name != NULL) | ||
| { | ||
|
|
@@ -1938,7 +1940,7 @@ riscv_parse_extensions (riscv_parse_subset_t *rps, | |
| const char *p) | ||
| { | ||
| /* First letter must start with i, e or g. */ | ||
| if (*p != 'e' && *p != 'i' && *p != 'g') | ||
| if (*p != 'e' && *p != 'i' && *p != 'g' && *p != '+') | ||
| { | ||
| rps->error_handler | ||
| (_("%s: first ISA extension must be `e', `i' or `g'"), | ||
|
Comment on lines
-1941
to
1946
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The error message below should also include this new letter. |
||
|
|
@@ -2569,6 +2571,8 @@ riscv_multi_subset_supports (riscv_parse_subset_t *rps, | |
| { | ||
| case INSN_CLASS_I: | ||
| return riscv_subset_supports (rps, "i"); | ||
| case INSN_CLASS_OTBN: | ||
| return riscv_subset_supports (rps, "+"); | ||
| case INSN_CLASS_ZICBOM: | ||
| return riscv_subset_supports (rps, "zicbom"); | ||
| case INSN_CLASS_ZICBOP: | ||
|
|
@@ -2854,6 +2858,8 @@ riscv_multi_subset_supports_ext (riscv_parse_subset_t *rps, | |
| { | ||
| case INSN_CLASS_I: | ||
| return "i"; | ||
| case INSN_CLASS_OTBN: | ||
| return "+"; | ||
| case INSN_CLASS_ZICBOM: | ||
| return "zicbom"; | ||
| case INSN_CLASS_ZICBOP: | ||
|
|
||
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.
Nit: Extra newline