2021-01-05 10:21:31 +08:00
|
|
|
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
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
2019-08-14 01:05:53 +08:00
|
|
|
; 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() {
|
2021-01-05 10:21:31 +08:00
|
|
|
; 32BIT-LABEL: bar:
|
|
|
|
; 32BIT: # %bb.0: # %entry
|
|
|
|
; 32BIT-NEXT: mflr 0
|
|
|
|
; 32BIT-NEXT: stw 0, 8(1)
|
|
|
|
; 32BIT-NEXT: stwu 1, -64(1)
|
|
|
|
; 32BIT-NEXT: bl .foo[PR]
|
|
|
|
; 32BIT-NEXT: nop
|
|
|
|
; 32BIT-NEXT: addi 1, 1, 64
|
|
|
|
; 32BIT-NEXT: lwz 0, 8(1)
|
|
|
|
; 32BIT-NEXT: mtlr 0
|
|
|
|
; 32BIT-NEXT: blr
|
|
|
|
;
|
|
|
|
; 64BIT-LABEL: bar:
|
|
|
|
; 64BIT: # %bb.0: # %entry
|
|
|
|
; 64BIT-NEXT: mflr 0
|
|
|
|
; 64BIT-NEXT: std 0, 16(1)
|
|
|
|
; 64BIT-NEXT: stdu 1, -112(1)
|
|
|
|
; 64BIT-NEXT: bl .foo[PR]
|
|
|
|
; 64BIT-NEXT: nop
|
|
|
|
; 64BIT-NEXT: addi 1, 1, 112
|
|
|
|
; 64BIT-NEXT: ld 0, 16(1)
|
|
|
|
; 64BIT-NEXT: mtlr 0
|
|
|
|
; 64BIT-NEXT: blr
|
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
2019-08-14 01:05:53 +08:00
|
|
|
entry:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
call void bitcast (void (...)* @foo to void ()*)()
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
declare void @foo(...)
|