[LLVMdev] sqrt

Duncan Sands baldrick at free.fr
Thu Jan 7 22:46:05 PST 2010


Hi Dale,

> It is more than errno.   sqrt() should't compile to llvm.sqrt on any  
> platform that uses IEEE754 math, because IEEE sqrt() is well defined  
> on negative arguments and llvm.sqrt isn't.  There are currently no  
> command line arguments to override this.

-funsafe-math-optimizations?

Ciao,

Duncan.



More information about the llvm-dev mailing list