[llvm-commits] [llvm-gcc-4.2] r46164 - in /llvm-gcc-4.2/trunk/gcc/config/i386: llvm-i386-target.h llvm-i386.cpp

Chris Lattner clattner at apple.com
Tue Jan 22 22:42:38 PST 2008


On Jan 22, 2008, at 10:03 PM, Duncan Sands wrote:

>>> What about integer arrays?
>>
>> This is an optimization, not a correctness issue.  Can you give an
>> example that you mean?
>
> According to the x86-64 ABI, arrays of integers that are not more
> than 8 bytes long are passed in integer registers.  Likewise for
> structs.  So it looks like a correctness issue as well as an  
> optimization :)

Okay, well we already get many other x86-64 issues wrong already, but  
Evan is chipping away at it.  How do you pass an array by value in C?  
Example please,

-Chris



More information about the llvm-commits mailing list