mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
Check we aren't trying to convert PPC long double.
This fixes the testsuite failure on ppcf128-4.ll. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49994 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -74,12 +74,9 @@ bool ConstantFPSDNode::isValueValidForType(MVT::ValueType VT,
|
||||
const APFloat& Val) {
|
||||
assert(MVT::isFloatingPoint(VT) && "Can only convert between FP types");
|
||||
|
||||
// Anything can be extended to ppc long double.
|
||||
if (VT == MVT::ppcf128)
|
||||
return true;
|
||||
|
||||
// PPC long double cannot be shrunk to anything though.
|
||||
if (&Val.getSemantics() == &APFloat::PPCDoubleDouble)
|
||||
// PPC long double cannot be converted to any other type.
|
||||
if (VT == MVT::ppcf128 ||
|
||||
&Val.getSemantics() == &APFloat::PPCDoubleDouble)
|
||||
return false;
|
||||
|
||||
// convert modifies in place, so make a copy.
|
||||
|
||||
Reference in New Issue
Block a user