Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reland r368691: "[AIX] Implement LR prolog/epilog save/restore"
Trying again with the code changes (and not just the new test). Summary: This patch fixes the offsets of fields in the stack frame linkage save area for AIX. Reviewers: sfertile, hubert.reinterpretcast, jasonliu, Xiangling_L, xingxue, ZarkoCA, daltenty Reviewed By: hubert.reinterpretcast Subscribers: wuzish, nemanjai, hiraditya, kbarton, MaskRay, jsji, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D64424 Patch by Chris Bowler! llvm-svn: 368721
- Loading branch information
1 parent
9bf01e5
commit 0996705
Showing
4 changed files
with
66 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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 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 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,32 @@ | ||
; RUN: llc -verify-machineinstrs -mtriple powerpc-ibm-aix-xcoff < %s | \ | ||
; RUN: FileCheck --check-prefix=32BIT %s | ||
|
||
; RUN: llc -verify-machineinstrs -mtriple powerpc64-ibm-aix-xcoff < %s | \ | ||
; RUN: FileCheck --check-prefix=64BIT %s | ||
|
||
define void @bar() { | ||
entry: | ||
|
||
; 32BIT: mflr 0 | ||
; 32BIT: stw 0, 8(1) | ||
; 32BIT: stwu 1, -64(1) | ||
; 32BIT: bl .foo | ||
; 32BIT: nop | ||
; 32BIT: addi 1, 1, 64 | ||
; 32BIT: lwz 0, 8(1) | ||
; 32BIT: mtlr 0 | ||
|
||
; 64BIT: mflr 0 | ||
; 64BIT: std 0, 16(1) | ||
; 64BIT: stdu 1, -112(1) | ||
; 64BIT: bl .foo | ||
; 64BIT: nop | ||
; 64BIT: addi 1, 1, 112 | ||
; 64BIT: ld 0, 16(1) | ||
; 64BIT: mtlr 0 | ||
|
||
call void bitcast (void (...)* @foo to void ()*)() | ||
ret void | ||
} | ||
|
||
declare void @foo(...) |
This file contains 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