[PATCH] D61948: Implement call lowering without parameters on AIX
Hubert Tong via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 22 07:52:30 PDT 2019
hubert.reinterpretcast requested changes to this revision.
hubert.reinterpretcast added inline comments.
This revision now requires changes to proceed.
================
Comment at: llvm/lib/Target/PowerPC/PPCCallingConv.td:309
+def CSR_AIX32 : CalleeSavedRegs<(add R14, R15, R16, R17, R18, R19, R20,
+ R21, R22, R23, R24, R25, R26, R27, R28,
----------------
Testing seems to confirm that r13 is a non-volatile as is stated in Table 5 of //AIX Version 7.2: Assembler Language Reference// under the 32-bit environment.
```
int main(void) {
int ret, val = 55;
__asm__(
"mr 13,%1\n\t"
"mr %0,13"
: "=r"(ret)
: "r"(val)
: "r13"
);
return ret;
}
```
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D61948/new/
https://reviews.llvm.org/D61948
More information about the llvm-commits
mailing list