mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-14 09:38:40 +00:00
silence warnings in no-assert build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42687 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5349de1372
commit
a11ef82207
@ -1913,19 +1913,18 @@ APFloat::convertF80LongDoubleAPFloatToAPInt() const
|
|||||||
} else if (category==fcInfinity) {
|
} else if (category==fcInfinity) {
|
||||||
myexponent = 0x7fff;
|
myexponent = 0x7fff;
|
||||||
mysignificand = 0x8000000000000000ULL;
|
mysignificand = 0x8000000000000000ULL;
|
||||||
} else if (category==fcNaN) {
|
} else {
|
||||||
|
assert(category == fcNaN && "Unknown category");
|
||||||
myexponent = 0x7fff;
|
myexponent = 0x7fff;
|
||||||
mysignificand = significandParts()[0];
|
mysignificand = significandParts()[0];
|
||||||
} else
|
}
|
||||||
assert(0);
|
|
||||||
|
|
||||||
uint64_t words[2];
|
uint64_t words[2];
|
||||||
words[0] = (((uint64_t)sign & 1) << 63) |
|
words[0] = (((uint64_t)sign & 1) << 63) |
|
||||||
((myexponent & 0x7fff) << 48) |
|
((myexponent & 0x7fff) << 48) |
|
||||||
((mysignificand >>16) & 0xffffffffffffLL);
|
((mysignificand >>16) & 0xffffffffffffLL);
|
||||||
words[1] = mysignificand & 0xffff;
|
words[1] = mysignificand & 0xffff;
|
||||||
APInt api(80, 2, words);
|
return APInt(80, 2, words);
|
||||||
return api;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
APInt
|
APInt
|
||||||
@ -1947,16 +1946,15 @@ APFloat::convertDoubleAPFloatToAPInt() const
|
|||||||
} else if (category==fcInfinity) {
|
} else if (category==fcInfinity) {
|
||||||
myexponent = 0x7ff;
|
myexponent = 0x7ff;
|
||||||
mysignificand = 0;
|
mysignificand = 0;
|
||||||
} else if (category==fcNaN) {
|
} else {
|
||||||
|
assert(category == fcNaN && "Unknown category!");
|
||||||
myexponent = 0x7ff;
|
myexponent = 0x7ff;
|
||||||
mysignificand = *significandParts();
|
mysignificand = *significandParts();
|
||||||
} else
|
}
|
||||||
assert(0);
|
|
||||||
|
|
||||||
APInt api(64, (((((uint64_t)sign & 1) << 63) |
|
return APInt(64, (((((uint64_t)sign & 1) << 63) |
|
||||||
((myexponent & 0x7ff) << 52) |
|
((myexponent & 0x7ff) << 52) |
|
||||||
(mysignificand & 0xfffffffffffffLL))));
|
(mysignificand & 0xfffffffffffffLL))));
|
||||||
return api;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
APInt
|
APInt
|
||||||
@ -1978,15 +1976,14 @@ APFloat::convertFloatAPFloatToAPInt() const
|
|||||||
} else if (category==fcInfinity) {
|
} else if (category==fcInfinity) {
|
||||||
myexponent = 0xff;
|
myexponent = 0xff;
|
||||||
mysignificand = 0;
|
mysignificand = 0;
|
||||||
} else if (category==fcNaN) {
|
} else {
|
||||||
|
assert(category == fcNaN && "Unknown category!");
|
||||||
myexponent = 0xff;
|
myexponent = 0xff;
|
||||||
mysignificand = *significandParts();
|
mysignificand = *significandParts();
|
||||||
} else
|
}
|
||||||
assert(0);
|
|
||||||
|
|
||||||
APInt api(32, (((sign&1) << 31) | ((myexponent&0xff) << 23) |
|
return APInt(32, (((sign&1) << 31) | ((myexponent&0xff) << 23) |
|
||||||
(mysignificand & 0x7fffff)));
|
(mysignificand & 0x7fffff)));
|
||||||
return api;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
APInt
|
APInt
|
||||||
@ -1994,13 +1991,13 @@ APFloat::convertToAPInt() const
|
|||||||
{
|
{
|
||||||
if (semantics == (const llvm::fltSemantics* const)&IEEEsingle)
|
if (semantics == (const llvm::fltSemantics* const)&IEEEsingle)
|
||||||
return convertFloatAPFloatToAPInt();
|
return convertFloatAPFloatToAPInt();
|
||||||
else if (semantics == (const llvm::fltSemantics* const)&IEEEdouble)
|
|
||||||
|
if (semantics == (const llvm::fltSemantics* const)&IEEEdouble)
|
||||||
return convertDoubleAPFloatToAPInt();
|
return convertDoubleAPFloatToAPInt();
|
||||||
else if (semantics == (const llvm::fltSemantics* const)&x87DoubleExtended)
|
|
||||||
return convertF80LongDoubleAPFloatToAPInt();
|
|
||||||
|
|
||||||
assert(0);
|
assert(semantics == (const llvm::fltSemantics* const)&x87DoubleExtended &&
|
||||||
abort();
|
"unknown format!");
|
||||||
|
return convertF80LongDoubleAPFloatToAPInt();
|
||||||
}
|
}
|
||||||
|
|
||||||
float
|
float
|
||||||
|
Loading…
x
Reference in New Issue
Block a user