-
Notifications
You must be signed in to change notification settings - Fork 15.3k
[RISCV] Add Qualcomm uC Xqcisls (Scaled Load Store) extension #117987
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
3 commits
Select commit
Hold shift + click to select a range
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,132 @@ | ||
| # Xqcisls - Qualcomm uC Scaled Load Store Extension | ||
| # RUN: not llvm-mc -triple riscv32 -mattr=+experimental-xqcisls < %s 2>&1 \ | ||
| # RUN: | FileCheck -check-prefixes=CHECK,CHECK-PLUS %s | ||
| # RUN: not llvm-mc -triple riscv32 -mattr=-experimental-xqcisls < %s 2>&1 \ | ||
| # RUN: | FileCheck -check-prefixes=CHECK,CHECK-MINUS %s | ||
|
|
||
| # CHECK: :[[@LINE+1]]:16: error: invalid operand for instruction | ||
| qc.lrb x5, x2, x0, 4 | ||
|
|
||
| # CHECK: :[[@LINE+1]]:1: error: too few operands for instruction | ||
| qc.lrb x5, x2, x4 | ||
|
|
||
| # CHECK-PLUS: :[[@LINE+1]]:20: error: immediate must be an integer in the range [0, 7] | ||
| qc.lrb x5, x2, x4, 12 | ||
|
|
||
| # CHECK: :[[@LINE+1]]:12: error: invalid operand for instruction | ||
| qc.lrb x5, 2, x4, 4 | ||
|
|
||
| # CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcisls' (Qualcomm uC Scaled Load Store Extension) | ||
| qc.lrb x5, x2, x4, 4 | ||
|
|
||
|
|
||
| # CHECK: :[[@LINE+1]]:17: error: invalid operand for instruction | ||
| qc.lrh x1, x12, x0, 2 | ||
|
|
||
| # CHECK: :[[@LINE+1]]:1: error: too few operands for instruction | ||
| qc.lrh x1, x12, x6 | ||
|
|
||
| # CHECK-PLUS: :[[@LINE+1]]:21: error: immediate must be an integer in the range [0, 7] | ||
| qc.lrh x1, x12, x6, 22 | ||
|
|
||
| # CHECK: :[[@LINE+1]]:12: error: invalid operand for instruction | ||
| qc.lrh x1, 12, x6, 2 | ||
|
|
||
| # CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcisls' (Qualcomm uC Scaled Load Store Extension) | ||
| qc.lrh x1, x12, x6, 2 | ||
|
|
||
|
|
||
| # CHECK: :[[@LINE+1]]:17: error: invalid operand for instruction | ||
| qc.lrw x15, x7, x0, 1 | ||
|
|
||
| # CHECK: :[[@LINE+1]]:1: error: too few operands for instruction | ||
| qc.lrw x15, x7, x14 | ||
|
|
||
| # CHECK-PLUS: :[[@LINE+1]]:22: error: immediate must be an integer in the range [0, 7] | ||
| qc.lrw x15, x7, x14, 11 | ||
|
|
||
| # CHECK: :[[@LINE+1]]:13: error: invalid operand for instruction | ||
| qc.lrw x15, 7, x14, 1 | ||
|
|
||
| # CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcisls' (Qualcomm uC Scaled Load Store Extension) | ||
| qc.lrw x15, x7, x14, 1 | ||
|
|
||
|
|
||
| # CHECK: :[[@LINE+1]]:18: error: invalid operand for instruction | ||
| qc.lrbu x9, x11, x0, 7 | ||
|
|
||
| # CHECK: :[[@LINE+1]]:1: error: too few operands for instruction | ||
| qc.lrbu x9, x11, x4 | ||
|
|
||
| # CHECK-PLUS: :[[@LINE+1]]:22: error: immediate must be an integer in the range [0, 7] | ||
| qc.lrbu x9, x11, x4, 37 | ||
|
|
||
| # CHECK: :[[@LINE+1]]:13: error: invalid operand for instruction | ||
| qc.lrbu x9, 11, x4, 7 | ||
|
|
||
| # CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcisls' (Qualcomm uC Scaled Load Store Extension) | ||
| qc.lrbu x9, x11, x4, 7 | ||
|
|
||
|
|
||
| # CHECK: :[[@LINE+1]]:18: error: invalid operand for instruction | ||
| qc.lrhu x16, x6, x0, 4 | ||
|
|
||
| # CHECK: :[[@LINE+1]]:1: error: too few operands for instruction | ||
| qc.lrhu x16, x6, x10 | ||
|
|
||
| # CHECK-PLUS: :[[@LINE+1]]:23: error: immediate must be an integer in the range [0, 7] | ||
| qc.lrhu x16, x6, x10, 44 | ||
|
|
||
| # CHECK: :[[@LINE+1]]:14: error: invalid operand for instruction | ||
| qc.lrhu x16, 6, x10, 4 | ||
|
|
||
| # CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcisls' (Qualcomm uC Scaled Load Store Extension) | ||
| qc.lrhu x16, x6, x10, 4 | ||
|
|
||
|
|
||
| # CHECK: :[[@LINE+1]]:16: error: invalid operand for instruction | ||
| qc.srb x0, x2, x0, 3 | ||
|
|
||
| # CHECK: :[[@LINE+1]]:1: error: too few operands for instruction | ||
| qc.srb x0, x2, x8 | ||
|
|
||
| # CHECK-PLUS: :[[@LINE+1]]:20: error: immediate must be an integer in the range [0, 7] | ||
| qc.srb x0, x2, x8, 93 | ||
|
|
||
| # CHECK: :[[@LINE+1]]:12: error: invalid operand for instruction | ||
| qc.srb x0, 2, x8, 3 | ||
|
|
||
| # CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcisls' (Qualcomm uC Scaled Load Store Extension) | ||
| qc.srb x0, x2, x8, 3 | ||
|
|
||
|
|
||
| # CHECK: :[[@LINE+1]]:17: error: invalid operand for instruction | ||
| qc.srh x13, x0, x0, 6 | ||
|
|
||
| # CHECK: :[[@LINE+1]]:1: error: too few operands for instruction | ||
| qc.srh x13, x0, x20 | ||
|
|
||
| # CHECK-PLUS: :[[@LINE+1]]:22: error: immediate must be an integer in the range [0, 7] | ||
| qc.srh x13, x0, x20, 76 | ||
|
|
||
| # CHECK: :[[@LINE+1]]:13: error: invalid operand for instruction | ||
| qc.srh x13, 0, x20, 6 | ||
|
|
||
| # CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcisls' (Qualcomm uC Scaled Load Store Extension) | ||
| qc.srh x13, x0, x20, 6 | ||
|
|
||
|
|
||
| # CHECK: :[[@LINE+1]]:18: error: invalid operand for instruction | ||
| qc.srw x17, x18, x0, 0 | ||
|
|
||
| # CHECK: :[[@LINE+1]]:1: error: too few operands for instruction | ||
| qc.srw x17, x18, x19 | ||
|
|
||
| # CHECK-PLUS: :[[@LINE+1]]:23: error: immediate must be an integer in the range [0, 7] | ||
| qc.srw x17, x18, x19, 10 | ||
|
|
||
| # CHECK: :[[@LINE+1]]:13: error: invalid operand for instruction | ||
| qc.srw x17, 18, x19, 0 | ||
|
|
||
| # CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcisls' (Qualcomm uC Scaled Load Store Extension) | ||
| qc.srw x17, x18, x19, 0 |
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,43 @@ | ||
| # Xqcisls - Qualcomm uC Scaled Load Store Extension | ||
| # RUN: llvm-mc %s -triple=riscv32 -mattr=+experimental-xqcisls -riscv-no-aliases -show-encoding \ | ||
| # RUN: | FileCheck -check-prefixes=CHECK-ENC,CHECK-INST %s | ||
| # RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+experimental-xqcisls < %s \ | ||
| # RUN: | llvm-objdump --mattr=+experimental-xqcisls -M no-aliases --no-print-imm-hex -d - \ | ||
| # RUN: | FileCheck -check-prefix=CHECK-INST %s | ||
| # RUN: llvm-mc %s -triple=riscv32 -mattr=+experimental-xqcisls -show-encoding \ | ||
| # RUN: | FileCheck -check-prefixes=CHECK-ENC,CHECK-INST %s | ||
| # RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+experimental-xqcisls < %s \ | ||
| # RUN: | llvm-objdump --mattr=+experimental-xqcisls --no-print-imm-hex -d - \ | ||
| # RUN: | FileCheck -check-prefix=CHECK-INST %s | ||
|
|
||
| # CHECK-INST: qc.lrb t0, sp, tp, 4 | ||
| # CHECK-ENC: encoding: [0x8b,0x72,0x41,0x88] | ||
| qc.lrb x5, x2, x4, 4 | ||
|
|
||
| # CHECK-INST: qc.lrh ra, a2, t1, 2 | ||
| # CHECK-ENC: encoding: [0x8b,0x70,0x66,0x94] | ||
| qc.lrh x1, x12, x6, 2 | ||
|
|
||
| # CHECK-INST: qc.lrw a5, t2, a4, 1 | ||
| # CHECK-ENC: encoding: [0x8b,0xf7,0xe3,0xa2] | ||
| qc.lrw x15, x7, x14, 1 | ||
|
|
||
| # CHECK-INST: qc.lrbu s1, a1, tp, 7 | ||
| # CHECK-ENC: encoding: [0x8b,0xf4,0x45,0xbe] | ||
| qc.lrbu x9, x11, x4, 7 | ||
|
|
||
| # CHECK-INST: qc.lrhu a6, t1, a0, 4 | ||
| # CHECK-ENC: encoding: [0x0b,0x78,0xa3,0xc8] | ||
| qc.lrhu x16, x6, x10, 4 | ||
|
|
||
| # CHECK-INST: qc.srb zero, sp, s0, 3 | ||
| # CHECK-ENC: encoding: [0x2b,0x60,0x81,0xd6] | ||
| qc.srb x0, x2, x8, 3 | ||
|
|
||
| # CHECK-INST: qc.srh a3, zero, s4, 6 | ||
| # CHECK-ENC: encoding: [0xab,0x66,0x40,0xed] | ||
| qc.srh x13, x0, x20, 6 | ||
|
|
||
| # CHECK-INST: qc.srw a7, s2, s3, 0 | ||
| # CHECK-ENC: encoding: [0xab,0x68,0x39,0xf1] | ||
| qc.srw x17, x18, x19, 0 |
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.