Index: src/mips/macro-assembler-mips.cc |
diff --git a/src/mips/macro-assembler-mips.cc b/src/mips/macro-assembler-mips.cc |
index 40ce47c1d2dd820128ff2088706f70f6cb013ab2..a6b818a67ac08796eba5972bae3382f73774f46e 100644 |
--- a/src/mips/macro-assembler-mips.cc |
+++ b/src/mips/macro-assembler-mips.cc |
@@ -2159,7 +2159,7 @@ void MacroAssembler::BranchFCommon(SecondaryField sizeField, Label* target, |
// Check for unordered (NaN) cases. |
if (nan) { |
bool long_branch = |
- nan->is_bound() ? is_near(nan) : is_trampoline_emitted(); |
+ nan->is_bound() ? !is_near(nan) : is_trampoline_emitted(); |
if (!IsMipsArchVariant(kMips32r6)) { |
if (long_branch) { |
Label skip; |
@@ -2198,7 +2198,7 @@ void MacroAssembler::BranchFCommon(SecondaryField sizeField, Label* target, |
if (target) { |
bool long_branch = |
- target->is_bound() ? is_near(target) : is_trampoline_emitted(); |
+ target->is_bound() ? !is_near(target) : is_trampoline_emitted(); |
if (long_branch) { |
Label skip; |
Condition neg_cond = NegateFpuCondition(cond); |