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

Unified Diff: src/mips64/simulator-mips64.h

Issue 1668143002: MIPS: Fix FPU min, max, mina, maxa in simulator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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') | src/mips64/simulator-mips64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/mips64/simulator-mips64.h
diff --git a/src/mips64/simulator-mips64.h b/src/mips64/simulator-mips64.h
index 7f60a7463929941e8939708db10083035282cd26..ef6602ff8300645243a9f9eab1fb299d8da4a9ef 100644
--- a/src/mips64/simulator-mips64.h
+++ b/src/mips64/simulator-mips64.h
@@ -315,6 +315,24 @@ class Simulator {
inline int32_t SetDoubleHIW(double* addr);
inline int32_t SetDoubleLOW(double* addr);
+ // Min/Max template functions for Double and Single arguments.
+ enum class IsMin : int { kMin = 0, kMax = 1 };
+
+ template <typename T>
+ bool FPUProcessNaNsAndZeros(T a, T b, IsMin min, T& result);
+
+ template <typename T>
+ T FPUMin(T a, T b);
+
+ template <typename T>
+ T FPUMax(T a, T b);
+
+ template <typename T>
+ T FPUMinA(T a, T b);
+
+ template <typename T>
+ T FPUMaxA(T a, T b);
+
// functions called from DecodeTypeRegister.
void DecodeTypeRegisterCOP1();
« no previous file with comments | « src/mips/simulator-mips.cc ('k') | src/mips64/simulator-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698