diff options
| author | Taiki Endo <te316e89@gmail.com> | 2024-11-07 22:21:27 +0900 | 
|---|---|---|
| committer | Taiki Endo <te316e89@gmail.com> | 2024-11-07 22:21:27 +0900 | 
| commit | e2d50315efb9bcf5ad73bd4cb77f3d8f72a7d26a (patch) | |
| tree | 22c229682f7c62f45b977251cd5126970af5d403 /compiler/rustc_target/src | |
| parent | 01b5a678c549c4927412a331f649764e9fc339a4 (diff) | |
| download | rust-e2d50315efb9bcf5ad73bd4cb77f3d8f72a7d26a.tar.gz rust-e2d50315efb9bcf5ad73bd4cb77f3d8f72a7d26a.zip | |
Add links about clobber_abi on PowerPC
Diffstat (limited to 'compiler/rustc_target/src')
| -rw-r--r-- | compiler/rustc_target/src/asm/mod.rs | 15 | 
1 files changed, 15 insertions, 0 deletions
| diff --git a/compiler/rustc_target/src/asm/mod.rs b/compiler/rustc_target/src/asm/mod.rs index c54f362690a..dc602e76daa 100644 --- a/compiler/rustc_target/src/asm/mod.rs +++ b/compiler/rustc_target/src/asm/mod.rs @@ -1128,6 +1128,21 @@ impl InlineAsmClobberAbi { }, InlineAsmClobberAbi::PowerPC => clobbered_regs! { PowerPC PowerPCInlineAsmReg { + // Refs: + // - PPC32 SysV: "3.2. Function Calling Sequence" in Power Architecture® 32-bit Application Binary Interface Supplement 1.0 - Linux® & Embedded + // https://web.archive.org/web/20120608163804/https://www.power.org/resources/downloads/Power-Arch-32-bit-ABI-supp-1.0-Unified.pdf + // - PPC64 ELFv1: "3.2. Function Calling Sequence" in 64-bit PowerPC ELF Application Binary Interface Supplement 1.9 + // https://refspecs.linuxfoundation.org/ELF/ppc64/PPC-elf64abi.html#FUNC-CALL + // - PPC64 ELFv2: "2.2 Function Calling Sequence" in 64-Bit ELF V2 ABI Specification: Power Architecture, Revision 1.5 + // https://openpowerfoundation.org/specifications/64bitelfabi/ + // - AIX: + // - Register usage and conventions + // https://www.ibm.com/docs/en/aix/7.3?topic=overview-register-usage-conventions + // - Special registers in the PowerPC® + // https://www.ibm.com/docs/en/aix/7.3?topic=overview-special-registers-in-powerpc + // - AIX vector programming + // https://www.ibm.com/docs/en/aix/7.3?topic=concepts-aix-vector-programming + // r0, r3-r12 r0, r3, r4, r5, r6, r7, | 
