Sparc don't got not "sqrtl", bum bum bum

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12670 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-04-05 19:05:15 +00:00
parent bb2aff1e18
commit ea9e005ce6

View File

@ -2042,7 +2042,7 @@ SolveQuadraticEquation(const SCEVAddRecExpr *AddRec) {
cast<ConstantUInt>(ConstantExpr::getCast(SqrtTerm,
SqrtTerm->getType()->getUnsignedVersion()));
uint64_t SqrtValV = SqrtVal->getValue();
uint64_t SqrtValV2 = (uint64_t)sqrtl(SqrtValV);
uint64_t SqrtValV2 = (uint64_t)sqrt(SqrtValV);
// The square root might not be precise for arbitrary 64-bit integer
// values. Do some sanity checks to ensure it's correct.
if (SqrtValV2*SqrtValV2 > SqrtValV ||