[llvm-commits] [llvm] r119920 - /llvm/trunk/lib/Target/README.txt
Chris Lattner
sabre at nondot.org
Sun Nov 21 11:01:42 PST 2010
On Nov 21, 2010, at 2:02 AM, Benjamin Kramer wrote:
>> -#include <math.h>
>> -double foo(double a) { return sin(a); }
>> -
>> -This compiles into this on x86-64 Linux:
>> -foo:
>> - subq $8, %rsp
>> - call sin
>> - addq $8, %rsp
>> - ret
>> -vs:
>> -
>> -foo:
>> - jmp sin
>> -
>
> clang and llvm-gcc -O3 still generate a call instruction when compiling that C code.
Wow, that is really weird. I reinstated the readme entry in r119947 thanks!
-Chris
More information about the llvm-commits
mailing list