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

Unified Diff: crosstest/test_cast.h

Issue 2432373002: [SubZero] Fix f64 to/from i64 moves (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Addressed review comments Created 4 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 | crosstest/test_cast.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crosstest/test_cast.h
diff --git a/crosstest/test_cast.h b/crosstest/test_cast.h
index 27d0dd02498df598a937de20216571957fa5492e..c67ad2f76e62af85c04216e82b110ede8d94f480 100644
--- a/crosstest/test_cast.h
+++ b/crosstest/test_cast.h
@@ -21,3 +21,13 @@ typedef signed char myint8_t;
template <typename FromType, typename ToType> ToType cast(FromType a);
template <typename FromType, typename ToType> ToType castBits(FromType a);
+
+// Targets like MIPS32, pass floating-point arguments in general purpose
+// registers when the first argument is passed in a general purpose register.
+// Overloaded cast and castBits functions take two extra integer argument to
+// check proper conversion of floating-point to/from general purpose registers.
+template <typename FromType, typename ToType> ToType cast(int i, FromType a,
+ int j);
+template <typename FromType, typename ToType> ToType castBits(int i,
+ FromType a,
+ int j);
« no previous file with comments | « no previous file | crosstest/test_cast.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698