[LLVMdev] ABI for i128 on x86-32?

Dale Johannesen dalej at apple.com
Wed Feb 27 10:14:42 PST 2008


On Feb 27, 2008, at 8:33 AM, gohman at apple.com wrote:

> Hello,
>
> Does anyone know of any precedent for handling i128 in the
> calling convention on x86-32? I'm trying to write a testcase
> that returns an i128 value, and LLVM currently has only two
> 32-bit GPRs designated for returning integer values on x86-32.

Judging from the code in gcc, it goes in XMM0 if SSE is there, and in  
memory otherwise.
See ix86_return_in_memory.  (In 4.3 this is renamed to  
return_in_memory_32.)
i128==TImode.




More information about the llvm-dev mailing list