forked from OSchip/llvm-project
Negative zero is not legal on mips. Patch by Sasa Stankovic
llvm-svn: 123766
This commit is contained in:
parent
ac517fa9f7
commit
b02a9dfa55
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue