-
Notifications
You must be signed in to change notification settings - Fork 15.3k
[RISCV] Add Qualcomm uC Xqcilsm (Load Store Multiple) extension #119823
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 1 commit
Commits
Show all changes
2 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
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,35 @@ | ||
| # Xqcilsm - Qualcomm uC Load Store Multiple Extension | ||
| # RUN: llvm-mc %s -triple=riscv32 -mattr=+experimental-xqcilsm -riscv-no-aliases -show-encoding \ | ||
| # RUN: | FileCheck -check-prefixes=CHECK-ENC,CHECK-INST %s | ||
| # RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+experimental-xqcilsm < %s \ | ||
| # RUN: | llvm-objdump --mattr=+experimental-xqcilsm -M no-aliases --no-print-imm-hex -d - \ | ||
| # RUN: | FileCheck -check-prefix=CHECK-INST %s | ||
| # RUN: llvm-mc %s -triple=riscv32 -mattr=+experimental-xqcilsm -show-encoding \ | ||
| # RUN: | FileCheck -check-prefixes=CHECK-ENC,CHECK-INST %s | ||
| # RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+experimental-xqcilsm < %s \ | ||
| # RUN: | llvm-objdump --mattr=+experimental-xqcilsm --no-print-imm-hex -d - \ | ||
| # RUN: | FileCheck -check-prefix=CHECK-INST %s | ||
|
|
||
| # CHECK-INST: qc.swm t0, s4, 0(gp) | ||
| # CHECK-ENC: encoding: [0xab,0xf2,0x41,0x01] | ||
| qc.swm x5, x20, (x3) | ||
|
|
||
| # CHECK-INST: qc.swmi a0, 4, 0(tp) | ||
| # CHECK-ENC: encoding: [0x2b,0x75,0x42,0x40] | ||
| qc.swmi x10, 4, (x4) | ||
|
|
||
| # CHECK-INST: qc.setwm tp, t5, 0(sp) | ||
| # CHECK-ENC: encoding: [0x2b,0x72,0xe1,0x81] | ||
| qc.setwm x4, x30, (x2) | ||
|
|
||
| # CHECK-INST: qc.setwmi t0, 31, 0(a2) | ||
| # CHECK-ENC: encoding: [0xab,0x72,0xf6,0xc1] | ||
| qc.setwmi x5, 31, (x12) | ||
|
|
||
| # CHECK-INST: qc.lwm t2, ra, 0(s4) | ||
| # CHECK-ENC: encoding: [0x8b,0x73,0x1a,0x00] | ||
| qc.lwm x7, x1, (x20) | ||
|
|
||
| # CHECK-INST: qc.lwmi a3, 9, 0(s7) | ||
| # CHECK-ENC: encoding: [0x8b,0xf6,0x9b,0x40] | ||
| qc.lwmi x13, 9, (x23) |
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,112 @@ | ||
| # Xqcilsm - Qualcomm uC Load Store Multiple Extension | ||
| # RUN: not llvm-mc -triple riscv32 -mattr=+experimental-xqcilsm < %s 2>&1 \ | ||
| # RUN: | FileCheck -check-prefixes=CHECK,CHECK-PLUS %s | ||
| # RUN: not llvm-mc -triple riscv32 -mattr=-experimental-xqcilsm < %s 2>&1 \ | ||
| # RUN: | FileCheck -check-prefixes=CHECK,CHECK-MINUS %s | ||
|
|
||
| # CHECK: :[[@LINE+1]]:20: error: expected register | ||
| qc.swm x5, x20, 12(20) | ||
|
|
||
| # CHECK: :[[@LINE+1]]:12: error: invalid operand for instruction | ||
| qc.swm x5, x0, 12(x3) | ||
|
|
||
| # CHECK: :[[@LINE+1]]:1: error: too few operands for instruction | ||
| qc.swm x5, x3 | ||
|
|
||
| # CHECK-PLUS: :[[@LINE+1]]:17: error: immediate must be a multiple of 4 bytes in the range [0, 124] | ||
| qc.swm x5, x20, 45(x3) | ||
|
|
||
| # CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcilsm' (Qualcomm uC Load Store Multiple Extension) | ||
| qc.swm x5, x20, 12(x3) | ||
|
|
||
|
|
||
| # CHECK: :[[@LINE+1]]:20: error: expected register | ||
| qc.swmi x10, 4, 20(4) | ||
|
|
||
| # CHECK: :[[@LINE+1]]:1: error: too few operands for instruction | ||
| qc.swmi x10, 4, 20 | ||
|
|
||
| # CHECK-PLUS: :[[@LINE+1]]:14: error: immediate must be an integer in the range [1, 31] | ||
| qc.swmi x10, 32, 20(x4) | ||
|
|
||
| # CHECK-PLUS: :[[@LINE+1]]:14: error: immediate must be an integer in the range [1, 31] | ||
| qc.swmi x10, 0, 20(x4) | ||
|
|
||
| # CHECK-PLUS: :[[@LINE+1]]:17: error: immediate must be a multiple of 4 bytes in the range [0, 124] | ||
| qc.swmi x10, 4, 45(x4) | ||
|
|
||
| # CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcilsm' (Qualcomm uC Load Store Multiple Extension) | ||
| qc.swmi x10, 4, 20(x4) | ||
|
|
||
|
|
||
| # CHECK: :[[@LINE+1]]:23: error: expected register | ||
| qc.setwm x4, x30, 124(2) | ||
|
|
||
| # CHECK: :[[@LINE+1]]:14: error: invalid operand for instruction | ||
| qc.setwm x4, x0, 124(x2) | ||
|
|
||
| # CHECK: :[[@LINE+1]]:1: error: too few operands for instruction | ||
| qc.setwm x4, x30, 124 | ||
|
|
||
| # CHECK-PLUS: :[[@LINE+1]]:19: error: immediate must be a multiple of 4 bytes in the range [0, 124] | ||
| qc.setwm x4, x30, 128(x2) | ||
|
|
||
| # CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcilsm' (Qualcomm uC Load Store Multiple Extension) | ||
| qc.setwm x4, x30, 124(x2) | ||
|
|
||
|
|
||
| # CHECK: :[[@LINE+1]]:22: error: expected register | ||
| qc.setwmi x5, 31, 12(12) | ||
|
|
||
| # CHECK: :[[@LINE+1]]:1: error: too few operands for instruction | ||
| qc.setwmi x5, 31, 12 | ||
|
|
||
| # CHECK-PLUS: :[[@LINE+1]]:15: error: immediate must be an integer in the range [1, 31] | ||
| qc.setwmi x5, 37, 12(x12) | ||
|
|
||
| # CHECK-PLUS: :[[@LINE+1]]:15: error: immediate must be an integer in the range [1, 31] | ||
| qc.setwmi x5, 0, 12(x12) | ||
|
|
||
| # CHECK-PLUS: :[[@LINE+1]]:19: error: immediate must be a multiple of 4 bytes in the range [0, 124] | ||
| qc.setwmi x5, 31, 98(x12) | ||
|
|
||
| # CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcilsm' (Qualcomm uC Load Store Multiple Extension) | ||
| qc.setwmi x5, 31, 12(x12) | ||
|
|
||
|
|
||
| # CHECK: :[[@LINE+1]]:19: error: expected register | ||
| qc.lwm x7, x1, 24(20) | ||
|
|
||
| # CHECK: :[[@LINE+1]]:1: error: too few operands for instruction | ||
| qc.lwm x7, x1, 24 | ||
|
|
||
| # CHECK: :[[@LINE+1]]:8: error: invalid operand for instruction | ||
| qc.lwm x0, x1, 24(x20) | ||
|
|
||
| # CHECK-PLUS: :[[@LINE+1]]:16: error: immediate must be a multiple of 4 bytes in the range [0, 124] | ||
| qc.lwm x7, x1, 46(x20) | ||
|
|
||
| # CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcilsm' (Qualcomm uC Load Store Multiple Extension) | ||
| qc.lwm x7, x1, 24(x20) | ||
|
|
||
|
|
||
| # CHECK: :[[@LINE+1]]:19: error: expected register | ||
| qc.lwmi x13, 9, 4(23) | ||
|
|
||
| # CHECK: :[[@LINE+1]]:1: error: too few operands for instruction | ||
| qc.lwmi x13, 9, 4 | ||
|
|
||
| # CHECK: :[[@LINE+1]]:9: error: invalid operand for instruction | ||
| qc.lwmi x0, 9, 4(x23) | ||
|
|
||
| # CHECK-PLUS: :[[@LINE+1]]:14: error: immediate must be an integer in the range [1, 31] | ||
| qc.lwmi x13, 44, 4(x23) | ||
|
|
||
| # CHECK-PLUS: :[[@LINE+1]]:14: error: immediate must be an integer in the range [1, 31] | ||
| qc.lwmi x13, 0, 4(x23) | ||
|
|
||
| # CHECK-PLUS: :[[@LINE+1]]:17: error: immediate must be a multiple of 4 bytes in the range [0, 124] | ||
| qc.lwmi x13, 9, 77(x23) | ||
|
|
||
| # CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcilsm' (Qualcomm uC Load Store Multiple Extension) | ||
| qc.lwmi x13, 9, 4(x23) |
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,35 @@ | ||
| # Xqcilsm - Qualcomm uC Load Store Multiple Extension | ||
| # RUN: llvm-mc %s -triple=riscv32 -mattr=+experimental-xqcilsm -riscv-no-aliases -show-encoding \ | ||
| # RUN: | FileCheck -check-prefixes=CHECK-ENC,CHECK-INST %s | ||
| # RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+experimental-xqcilsm < %s \ | ||
| # RUN: | llvm-objdump --mattr=+experimental-xqcilsm -M no-aliases --no-print-imm-hex -d - \ | ||
| # RUN: | FileCheck -check-prefix=CHECK-INST %s | ||
| # RUN: llvm-mc %s -triple=riscv32 -mattr=+experimental-xqcilsm -show-encoding \ | ||
| # RUN: | FileCheck -check-prefixes=CHECK-ENC,CHECK-INST %s | ||
| # RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+experimental-xqcilsm < %s \ | ||
| # RUN: | llvm-objdump --mattr=+experimental-xqcilsm --no-print-imm-hex -d - \ | ||
| # RUN: | FileCheck -check-prefix=CHECK-INST %s | ||
|
|
||
| # CHECK-INST: qc.swm t0, s4, 12(gp) | ||
| # CHECK-ENC: encoding: [0xab,0xf2,0x41,0x07] | ||
| qc.swm x5, x20, 12(x3) | ||
|
|
||
| # CHECK-INST: qc.swmi a0, 4, 20(tp) | ||
| # CHECK-ENC: encoding: [0x2b,0x75,0x42,0x4a] | ||
| qc.swmi x10, 4, 20(x4) | ||
|
|
||
| # CHECK-INST: qc.setwm tp, t5, 124(sp) | ||
| # CHECK-ENC: encoding: [0x2b,0x72,0xe1,0xbf] | ||
| qc.setwm x4, x30, 124(x2) | ||
|
|
||
| # CHECK-INST: qc.setwmi t0, 31, 12(a2) | ||
| # CHECK-ENC: encoding: [0xab,0x72,0xf6,0xc7] | ||
| qc.setwmi x5, 31, 12(x12) | ||
|
|
||
| # CHECK-INST: qc.lwm t2, ra, 24(s4) | ||
| # CHECK-ENC: encoding: [0x8b,0x73,0x1a,0x0c] | ||
| qc.lwm x7, x1, 24(x20) | ||
|
|
||
| # CHECK-INST: qc.lwmi a3, 9, 4(s7) | ||
| # CHECK-ENC: encoding: [0x8b,0xf6,0x9b,0x42] | ||
| qc.lwmi x13, 9, 4(x23) |
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.