| //===- 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 FOR_ALL_BMI_TYPES_INST(F, inst) \ |
| #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) |
| /* type, builtin_name */ \ |
| X(uint16_t, __builtin_bswap16) \ |
| X(uint32, __builtin_bswap32) \ |
| X(uint64, __builtin_bswap64) |
| #endif // TEST_BIT_MANIP_DEF |