[llvm-commits] [llvm] r123766 - /llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp
Bruno Cardoso Lopes
bruno.cardoso at gmail.com
Tue Jan 18 11:41:41 PST 2011
Author: bruno
Date: Tue Jan 18 13:41:41 2011
New Revision: 123766
URL: http://llvm.org/viewvc/llvm-project?rev=123766&view=rev
Log:
Negative zero is not legal on mips. Patch by Sasa Stankovic
Modified:
llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp
Modified: llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp?rev=123766&r1=123765&r2=123766&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp Tue Jan 18 13:41:41 2011
@@ -1570,5 +1570,7 @@
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();
}
More information about the llvm-commits
mailing list