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

Unified Diff: crosstest/test_strengthreduce.def

Issue 1146803002: Subzero: Strength-reduce mul by certain constants. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Remove a TODO Created 5 years, 6 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_strengthreduce.cpp ('k') | crosstest/test_strengthreduce_main.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crosstest/test_strengthreduce.def
diff --git a/crosstest/test_strengthreduce.def b/crosstest/test_strengthreduce.def
new file mode 100644
index 0000000000000000000000000000000000000000..a65437cb52d36119c655a04ed31fc64da60669f4
--- /dev/null
+++ b/crosstest/test_strengthreduce.def
@@ -0,0 +1,38 @@
+//===- subzero/crosstest/test_strengthreduce.def - macros -----*- C++ -*---===//
+//
+// The Subzero Code Generator
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// This file defines macros for crosstesting strength reduction.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef TEST_STRENGTHREDUCE_DEF
+#define TEST_STRENGTHREDUCE_DEF
+
+#define XSTR(s) STR(s)
+#define STR(s) #s
+
+#define CONST_TABLE \
+ X( -10, _10) \
+ X( -7, _7) \
+ X( -2, _2) \
+ X( -1, _1) \
+ X( 0, 0) \
+ X( 1, 1) \
+ X( 2, 2) \
+ X( 3, 3) \
+ X( 4, 4) \
+ X( 5, 5) \
+ X( 7, 7) \
+ X( 9, 9) \
+ X( 10, 10) \
+ X( 100, 100) \
+ X(100000, 100000) \
+//#define X(constant, suffix)
+
+#endif // !TEST_STRENGTHREDUCE_DEF
« no previous file with comments | « crosstest/test_strengthreduce.cpp ('k') | crosstest/test_strengthreduce_main.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698