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

Unified Diff: crosstest/test_bitmanip.def

Issue 390443005: Lower bitmanip intrinsics, assuming absence of BMI/SSE4.2 for now. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: review Created 6 years, 5 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_bitmanip.cpp ('k') | crosstest/test_bitmanip_intrin.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crosstest/test_bitmanip.def
diff --git a/crosstest/test_bitmanip.def b/crosstest/test_bitmanip.def
new file mode 100644
index 0000000000000000000000000000000000000000..b164ab7088472a687368d185d7a2118588c4ed3e
--- /dev/null
+++ b/crosstest/test_bitmanip.def
@@ -0,0 +1,42 @@
+//===- subzero/crosstest/test_bitmanip.def - macros for tests -*- 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 testing bit manipulation intrinsics.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef TEST_BIT_MANIP_DEF
+#define TEST_BIT_MANIP_DEF
+
+#define STR(s) #s
+
+#define BMI_OPS \
+ /* inst */ \
+ X(ctlz) \
+ X(cttz) \
+ X(ctpop)
+// #define X(inst)
+
+#define BMI_TYPES \
+ /* type */ \
+ X(uint32_t) \
+ X(uint64_t)
+// #define X(type)
+
+#define FOR_ALL_BMI_TYPES_INST(F, inst) \
+ F(inst, uint32_t) \
+ F(inst, uint64_t)
+
+#define FOR_ALL_BMI_OP_TYPES(X) \
+ FOR_ALL_BMI_TYPES_INST(X, ctlz) \
+ FOR_ALL_BMI_TYPES_INST(X, cttz) \
+ FOR_ALL_BMI_TYPES_INST(X, ctpop)
+//#define X(inst, type)
+
+#endif // TEST_BIT_MANIP_DEF
« no previous file with comments | « crosstest/test_bitmanip.cpp ('k') | crosstest/test_bitmanip_intrin.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698