search for: lcpi72_0

Displaying 1 result from an estimated 1 matches for "lcpi72_0".

Did you mean: lcpi2_0
2010 Apr 02
2
[LLVMdev] Problem returning aggregate struct (complex number) by value
...4-bit on OSX 10.6/x86-64. The IR I generate for a simple test case looks like this (float case): %0 = type { float, float } define %0 @test600() { entry: ret %0 { float 4.200000e+01, float 3.500000e+01 } } Running that through llc, the x86-64 assembly looks like this (abbreviated): movss LCPI72_0(%rip), %xmm0 movss LCPI72_1(%rip), %xmm1 ret Now, if I write a C function that does the same thing: struct complex_float { float real; float imag; }; static struct complex_float foo() { struct complex_float x = {42.0, 35.0}; return x; } The assembly code looks like this (com...