diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2015-07-10 13:37:07 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2015-07-10 13:37:07 +0000 |
commit | 2ef5ec6b2bc0c0bcc5b7b09004de4038fe1f901e (patch) | |
tree | 35901313c27b03586a6dbfcf4337cdbcd51352ad /libclc/generic/lib/SOURCES | |
parent | 0e4152e391177de27feb461611d4045f22cb57c1 (diff) | |
download | bcm5719-llvm-2ef5ec6b2bc0c0bcc5b7b09004de4038fe1f901e.tar.gz bcm5719-llvm-2ef5ec6b2bc0c0bcc5b7b09004de4038fe1f901e.zip |
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
Diffstat (limited to 'libclc/generic/lib/SOURCES')
-rw-r--r-- | libclc/generic/lib/SOURCES | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libclc/generic/lib/SOURCES b/libclc/generic/lib/SOURCES index 1e639948374..565404bd480 100644 --- a/libclc/generic/lib/SOURCES +++ b/libclc/generic/lib/SOURCES @@ -102,6 +102,8 @@ math/sin.cl math/sincos.cl math/sincos_helpers.cl math/sinpi.cl +math/clc_sqrt.cl +math/sqrt.cl math/tan.cl relational/all.cl relational/any.cl |