OLD | NEW |
1 //===- subzero/crosstest/vectors.def - macros for tests -------*- C++ -*---===// | 1 //===- subzero/crosstest/vectors.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 crosstesting vectors. | 10 // This file defines macros for crosstesting vectors. |
11 // | 11 // |
12 //===----------------------------------------------------------------------===// | 12 //===----------------------------------------------------------------------===// |
13 | 13 |
14 #ifndef VECTORS_DEF | 14 #ifndef VECTORS_DEF |
15 #define VECTORS_DEF | 15 #define VECTORS_DEF |
16 | 16 |
17 #define VECTOR_TYPE_TABLE \ | 17 #define VECTOR_TYPE_TABLE \ |
18 /* typename, element type, cast type */ \ | 18 /* typename, element type, cast type */ \ |
19 X(v16si8, int8_t, int64_t) \ | 19 X(v16si8, myint8_t, int64_t) \ |
20 X(v16ui8, uint8_t, int64_t) \ | 20 X(v16ui8, uint8_t, int64_t) \ |
21 X(v8si16, int16_t, int64_t) \ | 21 X(v8si16, int16_t, int64_t) \ |
22 X(v8ui16, uint16_t, int64_t) \ | 22 X(v8ui16, uint16_t, int64_t) \ |
23 X(v4si32, int32_t, int64_t) \ | 23 X(v4si32, int32_t, int64_t) \ |
24 X(v4ui32, uint32_t, int64_t) \ | 24 X(v4ui32, uint32_t, int64_t) \ |
25 X(v4f32, float, float) | 25 X(v4f32, float, float) |
26 // define X(ty, eltty, castty) | 26 // define X(ty, eltty, castty) |
27 | 27 |
28 #define I1_VECTOR_TYPE_TABLE \ | 28 #define I1_VECTOR_TYPE_TABLE \ |
29 /* typename, expanded type, # elements */ \ | 29 /* typename, expanded type, # elements */ \ |
30 X(v4i1, v4si32, 4) \ | 30 X(v4i1, v4si32, 4) \ |
31 X(v8i1, v8si16, 8) \ | 31 X(v8i1, v8si16, 8) \ |
32 X(v16i1, v16si8, 16) | 32 X(v16i1, v16si8, 16) |
33 // define X(ty, eltty, numelements) | 33 // define X(ty, eltty, numelements) |
34 | 34 |
35 #endif // VECTORS_DEF | 35 #endif // VECTORS_DEF |
OLD | NEW |