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 /clang/unittests/Format/FormatTestJS.cpp | |
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 'clang/unittests/Format/FormatTestJS.cpp')
0 files changed, 0 insertions, 0 deletions