Index: src/mips/simulator-mips.cc |
diff --git a/src/mips/simulator-mips.cc b/src/mips/simulator-mips.cc |
index baf042c3b2191d0db70fd7e22b25228ff120f26f..d8a39ab30c764701e2d481f62c9affd3cd601f07 100644 |
--- a/src/mips/simulator-mips.cc |
+++ b/src/mips/simulator-mips.cc |
@@ -2091,7 +2091,7 @@ void Simulator::DecodeTypeRegister(Instruction* instr) { |
set_fpu_register_double(fd_reg, fs / ft); |
break; |
case ABS_D: |
- set_fpu_register_double(fd_reg, fs < 0 ? -fs : fs); |
+ set_fpu_register_double(fd_reg, fabs(fs)); |
break; |
case MOV_D: |
set_fpu_register_double(fd_reg, fs); |