[PATCH] X86 ABI fix for return values > 24 bytes.

Andrew Trick atrick at apple.com
Wed Feb 4 10:11:58 PST 2015


The return value's address must be returned in %rax.
i.e. the callee needs to copy the sret argument (%rdi)
into the return value (%rax).

This probably won't manifest as a bug when the caller is LLVM-compiled
code. But it is an ABI guarantee and tools expect it.

-Andy

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-X86-ABI-fix-for-return-values-24-bytes.patch
Type: application/octet-stream
Size: 3525 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150204/729d0ce5/attachment.obj>


More information about the llvm-commits mailing list