Skip to content
Commit 2ef5ec6b authored by Tom Stellard's avatar Tom Stellard
Browse files

Fix implementation of sqrt v2

Passing values less than 0 to the llvm.sqrt() intrinsic results in
undefined behavior, so we need to check the input and return NaN if
is is less than 0.

v2:
  - Fix build failures.

llvm-svn: 241906
parent 0e4152e3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment