summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Basic/SourceManagerTest.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2020-01-10 10:31:25 -0800
committerCraig Topper <craig.topper@intel.com>2020-01-10 11:00:17 -0800
commitb590e0fd810e4caf59ab83b04654d42e18faaafb (patch)
tree9f65192876a6560c5725bee78348ff635a31fe95 /clang/unittests/Basic/SourceManagerTest.cpp
parent13ec473b9d4bd4f7a558272932b7c0806171c666 (diff)
downloadbcm5719-llvm-b590e0fd810e4caf59ab83b04654d42e18faaafb.tar.gz
bcm5719-llvm-b590e0fd810e4caf59ab83b04654d42e18faaafb.zip
[TargetLowering][ARM][X86] Change softenSetCCOperands handling of ONE to avoid spurious exceptions for QNANs with strict FP quiet compares
ONE is currently softened to OGT | OLT. But the libcalls for OGT and OLT libcalls will trigger an exception for QNAN. At least for X86 with libgcc. UEQ on the other hand uses UO | OEQ. The UO and OEQ libcalls will not trigger an exception for QNAN. This patch changes ONE to use the inverse of the UEQ lowering. So we now produce O & UNE. Technically the existing behavior was correct for a signalling ONE, but since I don't know how to generate one of those from clang that seemed like something we can deal with later as we would need to fix other predicates as well. Also removing spurious exceptions seemed better than missing an exception. There are also problems with quiet OGT/OLT/OLE/OGE, but those are harder to fix. Differential Revision: https://reviews.llvm.org/D72477
Diffstat (limited to 'clang/unittests/Basic/SourceManagerTest.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud