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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « crosstest/test_bitmanip.cpp ('k') | crosstest/test_bitmanip_intrin.ll » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 //===- subzero/crosstest/test_bitmanip.def - macros for tests -*- C++ -*---===//
2 //
3 // The Subzero Code Generator
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file defines macros for testing bit manipulation intrinsics.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef TEST_BIT_MANIP_DEF
15 #define TEST_BIT_MANIP_DEF
16
17 #define STR(s) #s
18
19 #define BMI_OPS \
20 /* inst */ \
21 X(ctlz) \
22 X(cttz) \
23 X(ctpop)
24 // #define X(inst)
25
26 #define BMI_TYPES \
27 /* type */ \
28 X(uint32_t) \
29 X(uint64_t)
30 // #define X(type)
31
32 #define FOR_ALL_BMI_TYPES_INST(F, inst) \
33 F(inst, uint32_t) \
34 F(inst, uint64_t)
35
36 #define FOR_ALL_BMI_OP_TYPES(X) \
37 FOR_ALL_BMI_TYPES_INST(X, ctlz) \
38 FOR_ALL_BMI_TYPES_INST(X, cttz) \
39 FOR_ALL_BMI_TYPES_INST(X, ctpop)
40 //#define X(inst, type)
41
42 #endif // TEST_BIT_MANIP_DEF
OLDNEW
« 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