Author: lattner Date: Tue Jan 29 01:00:44 2008 New Revision: 46500 URL: http://llvm.org/viewvc/llvm-project?rev=46500&view=rev Log: llvm.sqrt(-0.0) is defined.
Modified: llvm/trunk/docs/LangRef.html Modified: llvm/trunk/docs/LangRef.html URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/LangRef.html?rev=46500&r1=46499&r2=46500&view=diff ============================================================================== --- llvm/trunk/docs/LangRef.html (original) +++ llvm/trunk/docs/LangRef.html Tue Jan 29 01:00:44 2008 @@ -4677,7 +4677,9 @@ The '<tt>llvm.sqrt</tt>' intrinsics return the sqrt of the specified operand, returning the same value as the libm '<tt>sqrt</tt>' functions would. Unlike <tt>sqrt</tt> in libm, however, <tt>llvm.sqrt</tt> has undefined behavior for -negative numbers (which allows for better optimization). +negative numbers other than -0.0 (which allows for better optimization, because +there is no need to worry about errno being set). <tt>llvm.sqrt(-0.0)</tt> is +defined to return -0.0 like IEEE sqrt. </p> <h5>Arguments:</h5> _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits