Index: llvm/docs/LangRef.rst =================================================================== --- llvm/docs/LangRef.rst +++ llvm/docs/LangRef.rst @@ -10061,7 +10061,7 @@ The '``llvm.sqrt``' intrinsics return the sqrt of the specified operand, returning the same value as the libm '``sqrt``' functions would. Unlike -``sqrt`` in libm, however, ``llvm.sqrt`` has undefined behavior for +``sqrt`` in libm, however, ``llvm.sqrt`` returns undefined for negative numbers other than -0.0 (which allows for better optimization, because there is no need to worry about errno being set). ``llvm.sqrt(-0.0)`` is defined to return -0.0 like IEEE sqrt.