Displaying 2 results from an estimated 2 matches for "2074c7c2".
2013 May 17
0
[LLVMdev] Inlining sqrt library function in X86
...compiler is being conservative about errno (which sqrt in libm can set, but "sqrtss" doesn't). Try building with -fno-math-errno.
-Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130517/2074c7c2/attachment.html>
2013 May 17
3
[LLVMdev] Inlining sqrt library function in X86
Using the following example program
#include <math.h>
double f(double d){
return sqrt(d);
}
and compiling it with "clang -O3 ...", I was trying to determine what it would take to get the X86 code generator to replace the call to sqrt with a sqrtsd instruction inline.
It turns out that it could do exactly that, were it not for the fact that in the function