OLD | NEW |
1 //===- subzero/crosstest/test_bitmanip.def - macros for tests -*- C++ -*---===// | 1 //===- subzero/crosstest/test_bitmanip.def - macros for tests -*- C++ -*---===// |
2 // | 2 // |
3 // The Subzero Code Generator | 3 // The Subzero Code Generator |
4 // | 4 // |
5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
7 // | 7 // |
8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
9 // | 9 // |
10 // This file defines macros for testing bit manipulation intrinsics. | 10 // This file defines macros for testing bit manipulation intrinsics. |
(...skipping 21 matching lines...) Expand all Loading... |
32 #define FOR_ALL_BMI_TYPES_INST(F, inst) \ | 32 #define FOR_ALL_BMI_TYPES_INST(F, inst) \ |
33 F(inst, uint32_t) \ | 33 F(inst, uint32_t) \ |
34 F(inst, uint64_t) | 34 F(inst, uint64_t) |
35 | 35 |
36 #define FOR_ALL_BMI_OP_TYPES(X) \ | 36 #define FOR_ALL_BMI_OP_TYPES(X) \ |
37 FOR_ALL_BMI_TYPES_INST(X, ctlz) \ | 37 FOR_ALL_BMI_TYPES_INST(X, ctlz) \ |
38 FOR_ALL_BMI_TYPES_INST(X, cttz) \ | 38 FOR_ALL_BMI_TYPES_INST(X, cttz) \ |
39 FOR_ALL_BMI_TYPES_INST(X, ctpop) | 39 FOR_ALL_BMI_TYPES_INST(X, ctpop) |
40 //#define X(inst, type) | 40 //#define X(inst, type) |
41 | 41 |
| 42 #define BSWAP_TABLE \ |
| 43 /* type, builtin_name */ \ |
| 44 X(uint16_t, __builtin_bswap16) \ |
| 45 X(uint32_t, __builtin_bswap32) \ |
| 46 X(uint64_t, __builtin_bswap64) |
| 47 |
42 #endif // TEST_BIT_MANIP_DEF | 48 #endif // TEST_BIT_MANIP_DEF |
OLD | NEW |