[PATCH] [X86] Always return the sret parameter in eax/rax, even on 32-bit

Reid Kleckner rnk at google.com
Tue May 12 13:30:35 PDT 2015


Hi majnemer,

This rule was always in the old SysV i386 ABI docs and the new ones that
H.J. Lu has put together, but we never noticed:

  EAX   scratch register; also used to return integer and pointer values
        from functions; also stores the address of a returned struct or union

Fixes PR23491.

http://reviews.llvm.org/D9715

Files:
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/X86/sret-implicit.ll

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9715.25612.patch
Type: text/x-patch
Size: 4582 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150512/de33e726/attachment.bin>


More information about the llvm-commits mailing list