Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Unified Diff: src/s390/simulator-s390.cc

Issue 1837263003: S390: Fix SQEBR sim to treat operands as float32 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/s390/disasm-s390.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « src/s390/disasm-s390.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698