-
Notifications
You must be signed in to change notification settings - Fork 15.1k
[RISCV] Implement MC support for Zvfbfa extension #151106
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
6 commits
Select commit
Hold shift + click to select a range
eb80e18
[RISCV] Implement MC support for Zvfbfa extension
tclin914 07b2bd9
Remove the instructions that belong to Zvfbfmin and Zvfbfwma from Zvfbfa
tclin914 77d2b05
Adjust the comment
tclin914 2500382
Altfmt -> AltFmt
tclin914 fe64fff
Altfmt -> AltFmt
tclin914 7e97dca
Altfmt -> AltFmt
tclin914 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
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,8 @@ | ||
| # RUN: not llvm-mc -triple=riscv64 --mattr=+experimental-zvfbfa --mattr=+f %s 2>&1 \ | ||
| # RUN: | FileCheck %s --check-prefix=CHECK-ERROR | ||
|
|
||
| vsetvli a2, a0, e32alt, m1, ta, ma | ||
| # CHECK-ERROR: operand must be e[8|8alt|16|16alt|32|64],m[1|2|4|8|f2|f4|f8],[ta|tu],[ma|mu] | ||
|
|
||
| vsetvli a2, a0, e64alt, m1, ta, ma | ||
| # CHECK-ERROR: operand must be e[8|8alt|16|16alt|32|64],m[1|2|4|8|f2|f4|f8],[ta|tu],[ma|mu] |
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,33 @@ | ||
| # RUN: llvm-mc -triple=riscv64 -show-encoding --mattr=+experimental-zvfbfa %s \ | ||
| # RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST | ||
| # RUN: not llvm-mc -triple=riscv64 -show-encoding %s 2>&1 \ | ||
| # RUN: | FileCheck %s --check-prefix=CHECK-ERROR | ||
| # RUN: llvm-mc -triple=riscv64 -filetype=obj --mattr=+experimental-zvfbfa %s \ | ||
| # RUN: | llvm-objdump -d --mattr=+experimental-zvfbfa --no-print-imm-hex - \ | ||
| # RUN: | FileCheck %s --check-prefix=CHECK-INST | ||
| # RUN: llvm-mc -triple=riscv64 -filetype=obj --mattr=+experimental-zvfbfa %s \ | ||
| # RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN | ||
|
|
||
| vsetvli a2, a0, e8alt, m1, ta, ma | ||
| # CHECK-INST: vsetvli a2, a0, e8alt, m1, ta, ma | ||
| # CHECK-ENCODING: [0x57,0x76,0x05,0x1c] | ||
| # CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}} | ||
| # CHECK-UNKNOWN: 1c057657 <unknown> | ||
|
|
||
| vsetvli a2, a0, e16alt, m1, ta, ma | ||
| # CHECK-INST: vsetvli a2, a0, e16alt, m1, ta, ma | ||
| # CHECK-ENCODING: [0x57,0x76,0x85,0x1c] | ||
| # CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}} | ||
| # CHECK-UNKNOWN: 1c857657 <unknown> | ||
|
|
||
| vsetivli a2, 0, e8alt, m1, ta, ma | ||
| # CHECK-INST: vsetivli a2, 0, e8alt, m1, ta, ma | ||
| # CHECK-ENCODING: [0x57,0x76,0x00,0xdc] | ||
| # CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}} | ||
| # CHECK-UNKNOWN: dc007657 <unknown> | ||
|
|
||
| vsetivli a2, 0, e16alt, m1, ta, ma | ||
| # CHECK-INST: vsetivli a2, 0, e16alt, m1, ta, ma | ||
| # CHECK-ENCODING: [0x57,0x76,0x80,0xdc] | ||
| # CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}} | ||
| # CHECK-UNKNOWN: dc807657 <unknown> |
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
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.