Index: src/s390/simulator-s390.cc |
diff --git a/src/s390/simulator-s390.cc b/src/s390/simulator-s390.cc |
index d3e19d857231b7a902453daab326cb530dbe6118..5d50b615a11627ffde1b8a611d90210759b0fc8d 100644 |
--- a/src/s390/simulator-s390.cc |
+++ b/src/s390/simulator-s390.cc |
@@ -3437,8 +3437,8 @@ bool Simulator::DecodeFourByteFloatingPoint(Instruction* instr) { |
r1_val = std::sqrt(r2_val); |
set_d_register_from_double(r1, r1_val); |
} else if (op == SQEBR) { |
- r1_val = std::sqrt(r2_val); |
- set_d_register_from_float32(r1, r1_val); |
+ fr1_val = std::sqrt(fr2_val); |
+ set_d_register_from_float32(r1, fr1_val); |
} else if (op == CFEBR) { |
DecodeFourByteFloatingPointRound(instr); |
} else if (op == LCDBR) { |