[AIX] Return the correct set of callee saved regs
Summary:
r13 isn't reserved on 32-bit AIX, which is reflected in our calling
convention but not callee saved regs.
Reviewers: sfertile, ZarkoCA, cebowleratibm, jasonliu
Reviewed By: sfertile
Subscribers: thakis, lei, wuzish, nemanjai, hiraditya, kbarton, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D77101
2020-04-21 01:11:22 +08:00
|
|
|
; RUN: llc -verify-machineinstrs -mcpu=pwr4 -mattr=-altivec \
|
|
|
|
; RUN: -mtriple powerpc-ibm-aix-xcoff -O0 < %s | \
|
|
|
|
; RUN: FileCheck --check-prefixes=CHECK %s
|
|
|
|
|
|
|
|
define void @usethirteen() {
|
|
|
|
call void asm "nop", "~{r13}"()
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2020-05-26 22:37:51 +08:00
|
|
|
; CHECK: stw 13, -76(1)
|
|
|
|
; CHECK: lwz 13, -76(1)
|