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

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

Issue 1844473002: S390: Fix CEBR sim to treat operands as floats (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 2aebdd8f930808e4243c5451c106e6325d5aa5af..1cfe4a561876ec2d60570569633b9ba040b234ac 100644
--- a/src/s390/simulator-s390.cc
+++ b/src/s390/simulator-s390.cc
@@ -3406,10 +3406,10 @@ bool Simulator::DecodeFourByteFloatingPoint(Instruction* instr) {
SetS390ConditionCode<double>(r1_val, r2_val);
}
} else if (op == CEBR) {
- if (isNaN(r1_val) || isNaN(r2_val)) {
+ if (isNaN(fr1_val) || isNaN(fr2_val)) {
condition_reg_ = CC_OF;
} else {
- SetS390ConditionCode<float>(r1_val, r2_val);
+ SetS390ConditionCode<float>(fr1_val, fr2_val);
}
} else if (op == CDGBR) {
int64_t r2_val = get_register(r2);
« 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