-
Notifications
You must be signed in to change notification settings - Fork 15.4k
[RISCV][Xqcilo] Load/Store Pseudos #134931
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 3 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
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,70 @@ | ||
| # Xqcilo - Qualcomm uC Large Offset Load Store extension | ||
| # RUN: not llvm-mc %s -triple=riscv32 -mattr=+experimental-xqcilo \ | ||
| # RUN: 2>&1 | FileCheck -check-prefixes=CHECK-ENABLED %s | ||
| # RUN: not llvm-mc %s -triple=riscv32 -mattr=-experimental-xqcilo \ | ||
| # RUN: 2>&1 | FileCheck -check-prefixes=CHECK-DISABLED %s | ||
|
|
||
| # CHECK-ENABLED: [[@LINE+2]]:1: error: too few operands for instruction | ||
| # CHECK-DISABLED: [[@LINE+1]]:1: error: too few operands for instruction | ||
| qc.e.lb a0, 0xf000 | ||
|
|
||
| # CHECK-ENABLED: [[@LINE+2]]:1: error: too few operands for instruction | ||
| # CHECK-DISABLED: [[@LINE+1]]:1: error: too few operands for instruction | ||
| qc.e.lb a0, 0xf000 | ||
|
|
||
| # CHECK-ENABLED: [[@LINE+2]]:1: error: too few operands for instruction | ||
| # CHECK-DISABLED: [[@LINE+1]]:1: error: too few operands for instruction | ||
| qc.e.lbu a0, 0xf000 | ||
|
|
||
| # CHECK-ENABLED: [[@LINE+2]]:1: error: too few operands for instruction | ||
| # CHECK-DISABLED: [[@LINE+1]]:1: error: too few operands for instruction | ||
| qc.e.lh a0, 0xf000 | ||
|
|
||
| # CHECK-ENABLED: [[@LINE+2]]:1: error: too few operands for instruction | ||
| # CHECK-DISABLED: [[@LINE+1]]:1: error: too few operands for instruction | ||
| qc.e.lhu a0, 0xf000 | ||
|
|
||
| # CHECK-ENABLED: [[@LINE+2]]:1: error: too few operands for instruction | ||
| # CHECK-DISABLED: [[@LINE+1]]:1: error: too few operands for instruction | ||
| qc.e.lw a0, 0xf000 | ||
|
|
||
| # CHECK-ENABLED: [[@LINE+2]]:21: error: invalid operand for instruction | ||
| # CHECK-DISABLED: [[@LINE+1]]:21: error: invalid operand for instruction | ||
| qc.e.sb a0, 0xf000, t0 | ||
|
|
||
| # CHECK-ENABLED: [[@LINE+2]]:21: error: invalid operand for instruction | ||
| # CHECK-DISABLED: [[@LINE+1]]:21: error: invalid operand for instruction | ||
| qc.e.sh a0, 0xf000, t0 | ||
|
|
||
| # CHECK-ENABLED: [[@LINE+2]]:21: error: invalid operand for instruction | ||
| # CHECK-DISABLED: [[@LINE+1]]:21: error: invalid operand for instruction | ||
| qc.e.sw a0, 0xf000, t0 | ||
|
|
||
| # CHECK-DISABLED: [[@LINE+1]]:1: error: instruction requires the following: 'Xqcilo' (Qualcomm uC Large Offset Load Store Extension) | ||
| qc.e.lb a0, undefined | ||
| # CHECK-DISABLED: [[@LINE+1]]:1: error: instruction requires the following: 'Xqcilo' (Qualcomm uC Large Offset Load Store Extension) | ||
| qc.e.lbu a0, undefined | ||
| # CHECK-DISABLED: [[@LINE+1]]:1: error: instruction requires the following: 'Xqcilo' (Qualcomm uC Large Offset Load Store Extension) | ||
| qc.e.lh a0, undefined | ||
| # CHECK-DISABLED: [[@LINE+1]]:1: error: instruction requires the following: 'Xqcilo' (Qualcomm uC Large Offset Load Store Extension) | ||
| qc.e.lhu a0, undefined | ||
| # CHECK-DISABLED: [[@LINE+1]]:1: error: instruction requires the following: 'Xqcilo' (Qualcomm uC Large Offset Load Store Extension) | ||
| qc.e.lw a0, undefined | ||
| # CHECK-DISABLED: [[@LINE+1]]:1: error: instruction requires the following: 'Xqcilo' (Qualcomm uC Large Offset Load Store Extension) | ||
| qc.e.sb a0, undefined, t0 | ||
| # CHECK-DISABLED: [[@LINE+1]]:1: error: instruction requires the following: 'Xqcilo' (Qualcomm uC Large Offset Load Store Extension) | ||
| qc.e.sh a0, undefined, t0 | ||
| # CHECK-DISABLED: [[@LINE+1]]:1: error: instruction requires the following: 'Xqcilo' (Qualcomm uC Large Offset Load Store Extension) | ||
| qc.e.sw a0, undefined, t0 | ||
|
|
||
| # CHECK-ENABLED: [[@LINE+2]]:1: error: too few operands for instruction | ||
| # CHECK-DISABLED: [[@LINE+1]]:1: error: too few operands for instruction | ||
| qc.e.sb a0, undefined | ||
|
|
||
| # CHECK-ENABLED: [[@LINE+2]]:1: error: too few operands for instruction | ||
| # CHECK-DISABLED: [[@LINE+1]]:1: error: too few operands for instruction | ||
| qc.e.sh a0, undefined | ||
|
|
||
| # CHECK-ENABLED: [[@LINE+2]]:1: error: too few operands for instruction | ||
| # CHECK-DISABLED: [[@LINE+1]]:1: error: too few operands for instruction | ||
| qc.e.sw a0, undefined |
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 @@ | ||
| # Xqcilo - Qualcomm uC Large Offset Load Store extension | ||
| # RUN: llvm-mc %s -triple=riscv32 -mattr=+experimental-xqcilo \ | ||
| # RUN: | FileCheck -check-prefixes=CHECK %s | ||
|
|
||
| # CHECK-LABEL: .Lpcrel_hi0 | ||
| # CHECK-NEXT: auipc a0, %pcrel_hi(undefined) | ||
| # CHECK-NEXT: lb a0, %pcrel_lo(.Lpcrel_hi0)(a0) | ||
| qc.e.lb a0, undefined | ||
|
|
||
| # CHECK-LABEL: .Lpcrel_hi1 | ||
| # CHECK-NEXT: auipc a0, %pcrel_hi(undefined) | ||
| # CHECK-NEXT: lbu a0, %pcrel_lo(.Lpcrel_hi1)(a0) | ||
| qc.e.lbu a0, undefined | ||
|
|
||
| # CHECK-LABEL: .Lpcrel_hi2 | ||
| # CHECK-NEXT: auipc a0, %pcrel_hi(undefined) | ||
| # CHECK-NEXT: lh a0, %pcrel_lo(.Lpcrel_hi2)(a0) | ||
| qc.e.lh a0, undefined | ||
|
|
||
| # CHECK-LABEL: .Lpcrel_hi3 | ||
| # CHECK-NEXT: auipc a0, %pcrel_hi(undefined) | ||
| # CHECK-NEXT: lhu a0, %pcrel_lo(.Lpcrel_hi3)(a0) | ||
| qc.e.lhu a0, undefined | ||
|
|
||
| # CHECK-LABEL: .Lpcrel_hi4 | ||
| # CHECK-NEXT: auipc a0, %pcrel_hi(undefined) | ||
| # CHECK-NEXT: lw a0, %pcrel_lo(.Lpcrel_hi4)(a0) | ||
| qc.e.lw a0, undefined | ||
|
|
||
| # CHECK-LABEL: .Lpcrel_hi5 | ||
| # CHECK-NEXT: auipc t0, %pcrel_hi(undefined) | ||
| # CHECK-NEXT: sb a0, %pcrel_lo(.Lpcrel_hi5)(t0) | ||
| qc.e.sb a0, undefined, t0 | ||
|
|
||
| # CHECK-LABEL: .Lpcrel_hi6 | ||
| # CHECK-NEXT: auipc t0, %pcrel_hi(undefined) | ||
| # CHECK-NEXT: sh a0, %pcrel_lo(.Lpcrel_hi6)(t0) | ||
| qc.e.sh a0, undefined, t0 | ||
|
|
||
| # CHECK-LABEL: .Lpcrel_hi7 | ||
| # CHECK-NEXT: auipc t0, %pcrel_hi(undefined) | ||
| # CHECK-NEXT: sw a0, %pcrel_lo(.Lpcrel_hi7)(t0) | ||
| qc.e.sw a0, undefined, t0 |
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.
pseudo*