mirror of
https://github.com/RPCS3/llvm.git
synced 2025-05-13 17:06:15 +00:00
Tweak how ConstantFP80Ty constants are output
so that gcc doesn't warn about them. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51529 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
247580b569
commit
5ea38a6144
@ -1823,7 +1823,7 @@ void CWriter::printFloatingPointConstants(Function &F) {
|
|||||||
Out << "static const ConstantFP80Ty FPConstant" << FPCounter++
|
Out << "static const ConstantFP80Ty FPConstant" << FPCounter++
|
||||||
<< " = { 0x" << std::hex
|
<< " = { 0x" << std::hex
|
||||||
<< ((uint16_t)p[1] | (p[0] & 0xffffffffffffLL)<<16)
|
<< ((uint16_t)p[1] | (p[0] & 0xffffffffffffLL)<<16)
|
||||||
<< ", 0x" << (uint16_t)(p[0] >> 48) << ",0,0,0"
|
<< "ULL, 0x" << (uint16_t)(p[0] >> 48) << ",{0,0,0}"
|
||||||
<< "}; /* Long double constant */\n" << std::dec;
|
<< "}; /* Long double constant */\n" << std::dec;
|
||||||
} else if (FPC->getType() == Type::PPC_FP128Ty) {
|
} else if (FPC->getType() == Type::PPC_FP128Ty) {
|
||||||
APInt api = FPC->getValueAPF().convertToAPInt();
|
APInt api = FPC->getValueAPF().convertToAPInt();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user