Jan Voung | e4da26f | 2014-07-15 17:52:39 -0700 | [diff] [blame] | 1 | //===- subzero/crosstest/test_bitmanip.h - Test prototypes ---*- 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 declares the function prototypes for cross testing bit |
| 11 | // manipulation intrinsics. |
| 12 | // |
| 13 | //===----------------------------------------------------------------------===// |
| 14 | |
| 15 | #include "test_bitmanip.def" |
| 16 | |
Jim Stichnoth | dd842db | 2015-01-27 12:53:53 -0800 | [diff] [blame] | 17 | #define X(inst, type) \ |
| 18 | type test_##inst(type a); \ |
| 19 | type test_alloca_##inst(type a); \ |
| 20 | type test_const_##inst(type ignored); \ |
Jan Voung | e4da26f | 2014-07-15 17:52:39 -0700 | [diff] [blame] | 21 | type my_##inst(type a); |
| 22 | |
| 23 | FOR_ALL_BMI_OP_TYPES(X) |
| 24 | #undef X |
Jan Voung | 7fa813b | 2014-07-18 13:01:08 -0700 | [diff] [blame] | 25 | |
Jan Voung | 3b43b89 | 2014-09-24 13:32:39 -0700 | [diff] [blame] | 26 | #define X(type, builtin_name) \ |
| 27 | type test_bswap(type); \ |
| 28 | type test_bswap_alloca(type); |
Jan Voung | 7fa813b | 2014-07-18 13:01:08 -0700 | [diff] [blame] | 29 | BSWAP_TABLE |
| 30 | #undef X |