On Fri, Jul 26, 2013 at 6:05 PM, reed kotler <span dir="ltr"><<a href="mailto:rkotler@mips.com" target="_blank">rkotler@mips.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'm chasing down another issue with floor in llvm but noticed this strange behavior:<br>
<br>
Consider the following code:<br>
<br>
extern double floor(double);<br>
extern double floor_(double);<br>
<br>
double x = 1.5;<br>
double y, y_;<br>
<br>
void foo() {<br>
<br>
double y = floor(x);<br>
double y_ = floor_(x);<br>
}<br>
<br>
<br>
/local/llvmpb_config/install/<u></u>bin/clang floor1.c -o floor1.llc -emit-llvm -S<br>
<br>
The attributes for floor and floor_ are different.</blockquote><div><br></div><div>This is expected; we recognise 'floor' as a builtin. </div></div>