Negative zero is not legal on mips. Patch by Sasa Stankovic

llvm-svn: 123766
This commit is contained in:
Bruno Cardoso Lopes 2011-01-18 19:41:41 +00:00
parent ac517fa9f7
commit b02a9dfa55
1 changed files with 2 additions and 0 deletions

View File

@ -1570,5 +1570,7 @@ MipsTargetLowering::isOffsetFoldingLegal(const GlobalAddressSDNode *GA) const {
bool MipsTargetLowering::isFPImmLegal(const APFloat &Imm, EVT VT) const {
if (VT != MVT::f32 && VT != MVT::f64)
return false;
if (Imm.isNegZero())
return false;
return Imm.isZero();
}