-
Notifications
You must be signed in to change notification settings - Fork 15.1k
[AArch64][SME] Support Windows/stack probes in MachineSMEABIPass #149063
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
Show all changes
5 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5 | ||
| ; RUN: llc -mtriple=aarch64-windows-msvc -aarch64-streaming-hazard-size=0 -mattr=+sve,+sme < %s | FileCheck %s | ||
| ; RUN: llc -mtriple=aarch64-windows-msvc -aarch64-streaming-hazard-size=0 -mattr=+sve,+sme -aarch64-new-sme-abi < %s | FileCheck %s | ||
|
|
||
| declare void @private_za_callee() | ||
| declare void @shared_za_callee() "aarch64_inout_za" | ||
|
|
||
| define void @test_lazy_save() nounwind "aarch64_inout_za" { | ||
| ; CHECK-LABEL: test_lazy_save: | ||
| ; CHECK: // %bb.0: | ||
| ; CHECK-NEXT: stp x30, x29, [sp, #-32]! // 16-byte Folded Spill | ||
| ; CHECK-NEXT: str x19, [sp, #16] // 8-byte Folded Spill | ||
| ; CHECK-NEXT: mov x29, sp | ||
| ; CHECK-NEXT: sub sp, sp, #16 | ||
| ; CHECK-NEXT: rdsvl x8, #1 | ||
| ; CHECK-NEXT: mul x9, x8, x8 | ||
| ; CHECK-NEXT: lsr x15, x9, #4 | ||
| ; CHECK-NEXT: bl __chkstk | ||
| ; CHECK-NEXT: sub x9, sp, x15, lsl #4 | ||
| ; CHECK-NEXT: mov sp, x9 | ||
| ; CHECK-NEXT: sub x10, x29, #16 | ||
| ; CHECK-NEXT: stp x9, x8, [x29, #-16] | ||
| ; CHECK-NEXT: msr TPIDR2_EL0, x10 | ||
| ; CHECK-NEXT: bl private_za_callee | ||
| ; CHECK-NEXT: smstart za | ||
| ; CHECK-NEXT: mrs x8, TPIDR2_EL0 | ||
| ; CHECK-NEXT: sub x0, x29, #16 | ||
| ; CHECK-NEXT: cbnz x8, .LBB0_2 | ||
| ; CHECK-NEXT: // %bb.1: | ||
| ; CHECK-NEXT: bl __arm_tpidr2_restore | ||
| ; CHECK-NEXT: .LBB0_2: | ||
| ; CHECK-NEXT: msr TPIDR2_EL0, xzr | ||
| ; CHECK-NEXT: mov sp, x29 | ||
| ; CHECK-NEXT: ldr x19, [sp, #16] // 8-byte Folded Reload | ||
| ; CHECK-NEXT: ldp x30, x29, [sp], #32 // 16-byte Folded Reload | ||
| ; CHECK-NEXT: ret | ||
| call void @private_za_callee() | ||
| ret void | ||
| } |
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.