Index: src/mips64/macro-assembler-mips64.cc |
diff --git a/src/mips64/macro-assembler-mips64.cc b/src/mips64/macro-assembler-mips64.cc |
index 05827a82fa5e8b8e6e390ab2eda579c279044280..1ab4a893e34f8baf6b66da99b89c2f06b26922d1 100644 |
--- a/src/mips64/macro-assembler-mips64.cc |
+++ b/src/mips64/macro-assembler-mips64.cc |
@@ -2379,7 +2379,8 @@ void MacroAssembler::BranchFCommon(SecondaryField sizeField, Label* target, |
DCHECK(nan || target); |
// Check for unordered (NaN) cases. |
if (nan) { |
- bool long_branch = nan->is_bound() ? is_near(nan) : is_trampoline_emitted(); |
+ bool long_branch = |
+ nan->is_bound() ? !is_near(nan) : is_trampoline_emitted(); |
if (kArchVariant != kMips64r6) { |
if (long_branch) { |
Label skip; |
@@ -2419,7 +2420,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); |