since -0.0 can't be represented as an int.
This prevents llvm from reducing -0.0 to a
load-and-convert of int 0. Fixes
ieee.exp/mzero[2356].c in gcc testsuite.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57224
91177308-0d34-0410-b5e6-
96231b3b80d8
if(category == fcZero) {
APInt::tcSet(parts, 0, dstPartsCount);
if(category == fcZero) {
APInt::tcSet(parts, 0, dstPartsCount);
+ // Negative zero can't be represented as an int.
+ return sign ? opInexact : opOK;
}
src = significandParts();
}
src = significandParts();