-
Notifications
You must be signed in to change notification settings - Fork 15.4k
[lldb][LoongArch] Complete register alias name in AugmentRegisterInfo
#124059
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
wangleiat
merged 7 commits into
main
from
users/wangleiat/spr/lldbloongarch-complete-register-alias-name-in-augmentregisterinfo
Feb 21, 2025
Merged
Changes from 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
f477770
[𝘀𝗽𝗿] initial version
wangleiat ba95342
use llvm::StringMap
wangleiat d03f4f2
add test
wangleiat 4243a81
rebase and add test
wangleiat b77caf2
add test
wangleiat d3c8c7c
Address @DavidSpickett's comment
wangleiat 8ad3d66
rebase and resolve conflicts
wangleiat 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,35 @@ | ||
| int main() { | ||
| asm volatile("li.w $r1, 1\n\t" | ||
| "li.w $r2, 2\n\t" | ||
| "li.w $r3, 3\n\t" | ||
| "li.w $r4, 4\n\t" | ||
| "li.w $r5, 5\n\t" | ||
| "li.w $r6, 6\n\t" | ||
| "li.w $r7, 7\n\t" | ||
| "li.w $r8, 8\n\t" | ||
| "li.w $r9, 9\n\t" | ||
| "li.w $r10, 10\n\t" | ||
| "li.w $r11, 11\n\t" | ||
| "li.w $r12, 12\n\t" | ||
| "li.w $r13, 13\n\t" | ||
| "li.w $r14, 14\n\t" | ||
| "li.w $r15, 15\n\t" | ||
| "li.w $r16, 16\n\t" | ||
| "li.w $r17, 17\n\t" | ||
| "li.w $r18, 18\n\t" | ||
| "li.w $r19, 19\n\t" | ||
| "li.w $r20, 20\n\t" | ||
| "li.w $r21, 21\n\t" | ||
| "li.w $r22, 22\n\t" | ||
| "li.w $r23, 23\n\t" | ||
| "li.w $r24, 24\n\t" | ||
| "li.w $r25, 25\n\t" | ||
| "li.w $r26, 26\n\t" | ||
| "li.w $r27, 27\n\t" | ||
| "li.w $r28, 28\n\t" | ||
| "li.w $r29, 29\n\t" | ||
| "li.w $r30, 30\n\t" | ||
| "li.w $r31, 31\n\t" | ||
| "break 5\n\t"); | ||
| return 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,39 @@ | ||
| # REQUIRES: native && target-loongarch64 | ||
| # RUN: %clangxx_host %p/Inputs/loongarch64-gp-read.cpp -o %t | ||
| # RUN: %lldb -b -s %s %t | FileCheck %s | ||
| process launch | ||
|
|
||
| ## read alias name | ||
| register read zero ra tp sp a0 a1 a2 a3 a4 a5 a6 a7 t0 t1 t2 t3 t4 t5 t6 t7 t8 r21 fp s0 s1 s2 s3 s4 s5 s6 s7 s8 | ||
| # CHECK-DAG: r0 = 0x0000000000000000 | ||
| # CHECK-DAG: r1 = 0x0000000000000001 | ||
| # CHECK-DAG: r2 = 0x0000000000000002 | ||
| # CHECK-DAG: r3 = 0x0000000000000003 | ||
| # CHECK-DAG: r4 = 0x0000000000000004 | ||
| # CHECK-DAG: r5 = 0x0000000000000005 | ||
| # CHECK-DAG: r6 = 0x0000000000000006 | ||
| # CHECK-DAG: r7 = 0x0000000000000007 | ||
| # CHECK-DAG: r8 = 0x0000000000000008 | ||
| # CHECK-DAG: r9 = 0x0000000000000009 | ||
| # CHECK-DAG: r10 = 0x000000000000000a | ||
| # CHECK-DAG: r11 = 0x000000000000000b | ||
| # CHECK-DAG: r12 = 0x000000000000000c | ||
| # CHECK-DAG: r13 = 0x000000000000000d | ||
| # CHECK-DAG: r14 = 0x000000000000000e | ||
| # CHECK-DAG: r15 = 0x000000000000000f | ||
| # CHECK-DAG: r16 = 0x0000000000000010 | ||
| # CHECK-DAG: r17 = 0x0000000000000011 | ||
| # CHECK-DAG: r18 = 0x0000000000000012 | ||
| # CHECK-DAG: r19 = 0x0000000000000013 | ||
| # CHECK-DAG: r20 = 0x0000000000000014 | ||
| # CHECK-DAG: r21 = 0x0000000000000015 | ||
| # CHECK-DAG: r22 = 0x0000000000000016 | ||
| # CHECK-DAG: r23 = 0x0000000000000017 | ||
| # CHECK-DAG: r24 = 0x0000000000000018 | ||
| # CHECK-DAG: r25 = 0x0000000000000019 | ||
| # CHECK-DAG: r26 = 0x000000000000001a | ||
| # CHECK-DAG: r27 = 0x000000000000001b | ||
| # CHECK-DAG: r28 = 0x000000000000001c | ||
| # CHECK-DAG: r29 = 0x000000000000001d | ||
| # CHECK-DAG: r30 = 0x000000000000001e | ||
| # CHECK-DAG: r31 = 0x000000000000001f |
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.