blob: b7c3739e9aeca275435f9fc30a709c6e3d800113 [file] [log] [blame]
Matt Wala89a7c2b2014-07-22 10:55:30 -07001//===- subzero/crosstest/vectors.def - macros for tests -------*- 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 vectors.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef VECTORS_DEF
15#define VECTORS_DEF
16
17#define VECTOR_TYPE_TABLE \
18/* typename, element type, cast type */ \
Jim Stichnoth7da431b2014-08-05 11:22:37 -070019X(v16si8, myint8_t, int64_t) \
Matt Wala89a7c2b2014-07-22 10:55:30 -070020X(v16ui8, uint8_t, int64_t) \
21X(v8si16, int16_t, int64_t) \
22X(v8ui16, uint16_t, int64_t) \
23X(v4si32, int32_t, int64_t) \
24X(v4ui32, uint32_t, int64_t) \
25X(v4f32, float, float)
26// define X(ty, eltty, castty)
27
28#define I1_VECTOR_TYPE_TABLE \
29/* typename, expanded type, # elements */ \
30X(v4i1, v4si32, 4) \
31X(v8i1, v8si16, 8) \
32X(v16i1, v16si8, 16)
33// define X(ty, eltty, numelements)
34
35#endif // VECTORS_DEF