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

Unified Diff: crosstest/test_arith.def

Issue 443203003: Subzero: Use scalar arithmetic when no vector instruction exists. (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: TODO(stichnot) Created 6 years, 4 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 | « crosstest/test_arith.cpp ('k') | crosstest/test_arith_main.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crosstest/test_arith.def
diff --git a/crosstest/test_arith.def b/crosstest/test_arith.def
index 9ebb4fd184c7bed9fb74c61ec0924c08e2915aa9..2033805914bd7b6f0cd56b36139784dfa1695f2c 100644
--- a/crosstest/test_arith.def
+++ b/crosstest/test_arith.def
@@ -17,29 +17,29 @@
#define XSTR(s) STR(s)
#define STR(s) #s
-#define UINTOP_TABLE \
- /* inst, operator, div */ \
- X(Add, +, 0 ) \
- X(Sub, -, 0 ) \
- X(Mul, *, 0 ) \
- X(Udiv, /, 1 ) \
- X(Urem, %, 1 ) \
- X(Shl, <<, 0) \
- X(Lshr, >>, 0) \
- X(And, &, 0 ) \
- X(Or, |, 0 ) \
- X(Xor, ^, 0 ) \
-//#define X(inst, op, isdiv)
+#define UINTOP_TABLE \
+ /* inst, operator, div, shift */ \
+ X(Add, +, 0, 0) \
+ X(Sub, -, 0, 0) \
+ X(Mul, *, 0, 0) \
+ X(Udiv, /, 1, 0) \
+ X(Urem, %, 1, 0) \
+ X(Shl, <<, 0, 1) \
+ X(Lshr, >>, 0, 1) \
+ X(And, &, 0, 0) \
+ X(Or, |, 0, 0) \
+ X(Xor, ^, 0, 0) \
+//#define X(inst, op, isdiv, isshift)
-#define SINTOP_TABLE \
- /* inst, operator, div */ \
- X(Sdiv, /, 1) \
- X(Srem, %, 1) \
- X(Ashr, >>, 0) \
-//#define X(inst, op, isdiv)
+#define SINTOP_TABLE \
+ /* inst, operator, div, shift */ \
+ X(Sdiv, /, 1, 0) \
+ X(Srem, %, 1, 0) \
+ X(Ashr, >>, 0, 1) \
+//#define X(inst, op, isdiv, isshift)
#define COMMA ,
-#define FPOP_TABLE \
+#define FPOP_TABLE \
/* inst, infix_op, func */ \
X(Fadd, +, ) \
X(Fsub, -, ) \
« no previous file with comments | « crosstest/test_arith.cpp ('k') | crosstest/test_arith_main.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698