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

Unified Diff: src/mips64/simulator-mips64.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 | « src/mips/simulator-mips.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/mips64/simulator-mips64.cc
diff --git a/src/mips64/simulator-mips64.cc b/src/mips64/simulator-mips64.cc
index b82b2d9b3c231fd1e6e2edfd3404e8a94260eab0..1ed7443781a8fd45c6ed2a6d2f297235bbec2d95 100644
--- a/src/mips64/simulator-mips64.cc
+++ b/src/mips64/simulator-mips64.cc
@@ -2481,7 +2481,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);
}
@@ -2690,7 +2690,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);
}
« no previous file with comments | « src/mips/simulator-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698