diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2011-01-18 19:41:41 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2011-01-18 19:41:41 +0000 |
commit | 6b9028251cfc5ae93431838dfa6db4750e6b67f4 (patch) | |
tree | 4885cef2828271536cd13fe162d76e20dd9133d2 /lib/Target/Mips | |
parent | b1fce0a01618da2e3ff41e7ee9ff71924533d646 (diff) | |
download | external_llvm-6b9028251cfc5ae93431838dfa6db4750e6b67f4.zip external_llvm-6b9028251cfc5ae93431838dfa6db4750e6b67f4.tar.gz external_llvm-6b9028251cfc5ae93431838dfa6db4750e6b67f4.tar.bz2 |
Negative zero is not legal on mips. Patch by Sasa Stankovic
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123766 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips')
-rw-r--r-- | lib/Target/Mips/MipsISelLowering.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/Mips/MipsISelLowering.cpp b/lib/Target/Mips/MipsISelLowering.cpp index ed91193..224569b 100644 --- a/lib/Target/Mips/MipsISelLowering.cpp +++ b/lib/Target/Mips/MipsISelLowering.cpp @@ -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(); } |