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

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

Issue 1402923002: MIPS: Fix mina in mips32 and mips64 simulator (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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 | « no previous file | src/mips64/simulator-mips64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/mips/simulator-mips.cc
diff --git a/src/mips/simulator-mips.cc b/src/mips/simulator-mips.cc
index 4ef61abe3db140721365325748679b91852271fd..e945b0ca5fa1741c58368a348e90f25ad81c899d 100644
--- a/src/mips/simulator-mips.cc
+++ b/src/mips/simulator-mips.cc
@@ -2310,7 +2310,7 @@ void Simulator::DecodeTypeRegisterDRsType() {
} else if (fabs(fs) < fabs(ft)) {
result = fs;
} else {
- result = (fs > ft ? fs : ft);
+ result = (fs < ft ? fs : ft);
}
set_fpu_register_double(fd_reg(), result);
}
@@ -3070,7 +3070,7 @@ void Simulator::DecodeTypeRegisterSRsType() {
} else if (fabs(fs) < fabs(ft)) {
result = fs;
} else {
- result = (fs > ft ? fs : ft);
+ result = (fs < ft ? fs : ft);
}
set_fpu_register_float(fd_reg(), result);
}
« no previous file with comments | « no previous file | src/mips64/simulator-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698