llvm.org GIT mirror llvm / e4a4245
Mark negative-zero-to-int conversion as Inexact, 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 Dale Johannesen 11 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
17831783
17841784 if(category == fcZero) {
17851785 APInt::tcSet(parts, 0, dstPartsCount);
1786 return opOK;
1786 // Negative zero can't be represented as an int.
1787 return sign ? opInexact : opOK;
17871788 }
17881789
17891790 src = significandParts();