Jim Stichnoth | 7da431b | 2014-08-05 11:22:37 -0700 | [diff] [blame] | 1 | //===- subzero/crosstest/test_vector_ops.def - test macros ----*- 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 crosstesting the insertelement and |
| 11 | // extractelement instruction. |
| 12 | // |
| 13 | //===----------------------------------------------------------------------===// |
| 14 | |
Matt Wala | 4988923 | 2014-07-18 12:45:09 -0700 | [diff] [blame] | 15 | #ifndef TEST_VECTOR_OPS_DEF |
| 16 | |
| 17 | #define VECTOR_TYPE_TABLE \ |
| 18 | /* typename, element type, cast type */ \ |
| 19 | X(v16si8, int8_t, int64_t) \ |
| 20 | X(v16ui8, uint8_t, int64_t) \ |
| 21 | X(v8si16, int16_t, int64_t) \ |
| 22 | X(v8ui16, uint16_t, int64_t) \ |
| 23 | X(v4si32, int32_t, int64_t) \ |
| 24 | X(v4ui32, uint32_t, int64_t) \ |
| 25 | X(v4f32, float, float) \ |
| 26 | |
| 27 | #define I1_VECTOR_TYPE_TABLE \ |
| 28 | /* typename, expanded type, # elements */ \ |
| 29 | X(v4i1, v4ui32, 4) \ |
| 30 | X(v8i1, v8ui16, 8) \ |
| 31 | X(v16i1, v16ui8, 16) \ |
| 32 | |
| 33 | #endif |