aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Format/FormatTestJava.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2015-01-04 01:20:55 +0000
committerLang Hames <lhames@gmail.com>2015-01-04 01:20:55 +0000
commit12b12e800b04404c3763ebcef2168c429921f04e (patch)
tree23a9262a87767cbbd08d46da7831b230c0d52cba /clang/unittests/Format/FormatTestJava.cpp
parent744cc5b5dd90613eb84c21f8288bf5d1fa9cee85 (diff)
downloadllvm-12b12e800b04404c3763ebcef2168c429921f04e.zip
llvm-12b12e800b04404c3763ebcef2168c429921f04e.tar.gz
llvm-12b12e800b04404c3763ebcef2168c429921f04e.tar.bz2
[APFloat][ADT] Fix sign handling logic for FMA results that truncate to zero.
This patch adds a check for underflow when truncating results back to lower precision at the end of an FMA. The additional sign handling logic in APFloat::fusedMultiplyAdd should only be performed when the result of the addition step of the FMA (in full precision) is exactly zero, not when the result underflows to zero. Unit tests for this case and related signed zero FMA results are included. Fixes <rdar://problem/18925551>. llvm-svn: 225123
Diffstat (limited to 'clang/unittests/Format/FormatTestJava.cpp')
0 files changed, 0 insertions, 0 deletions