mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-22 13:29:44 +00:00
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
This commit is contained in:
parent
b1fce0a016
commit
6b9028251c
@ -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…
x
Reference in New Issue
Block a user