[PATCH] D64424: [AIX] Implement LR prolog/epilog save/restore

Hubert Tong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 13 06:39:21 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL368691: [AIX] Implement LR prolog/epilog save/restore (authored by hubert.reinterpretcast, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D64424?vs=214635&id=214825#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D64424/new/

https://reviews.llvm.org/D64424

Files:
  llvm/trunk/test/CodeGen/PowerPC/aix-lr.ll


Index: llvm/trunk/test/CodeGen/PowerPC/aix-lr.ll
===================================================================
--- llvm/trunk/test/CodeGen/PowerPC/aix-lr.ll
+++ llvm/trunk/test/CodeGen/PowerPC/aix-lr.ll
@@ -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(...)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64424.214825.patch
Type: text/x-patch
Size: 916 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190813/42001971/attachment.bin>


More information about the llvm-commits mailing list