| 1 |
704 |
jeremybenn |
/* This includes all of the vector modes that are recognized by
|
| 2 |
|
|
c_common_type_for_mode. */
|
| 3 |
|
|
|
| 4 |
|
|
typedef int __attribute__((mode(QI))) qi;
|
| 5 |
|
|
typedef int __attribute__((mode(HI))) hi;
|
| 6 |
|
|
typedef int __attribute__((mode(SI))) si;
|
| 7 |
|
|
typedef int __attribute__((mode(DI))) di;
|
| 8 |
|
|
typedef float __attribute__((mode(SF))) sf;
|
| 9 |
|
|
typedef float __attribute__((mode(DF))) df;
|
| 10 |
|
|
|
| 11 |
|
|
#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 5)
|
| 12 |
|
|
|
| 13 |
|
|
typedef qi __attribute__((vector_size (8))) v8qi;
|
| 14 |
|
|
typedef qi __attribute__((vector_size (16))) v16qi;
|
| 15 |
|
|
|
| 16 |
|
|
typedef hi __attribute__((vector_size (4))) v2hi;
|
| 17 |
|
|
typedef hi __attribute__((vector_size (8))) v4hi;
|
| 18 |
|
|
typedef hi __attribute__((vector_size (16))) v8hi;
|
| 19 |
|
|
|
| 20 |
|
|
typedef si __attribute__((vector_size (8))) v2si;
|
| 21 |
|
|
typedef si __attribute__((vector_size (16))) v4si;
|
| 22 |
|
|
|
| 23 |
|
|
typedef di __attribute__((vector_size (8))) v1di;
|
| 24 |
|
|
typedef di __attribute__((vector_size (16))) v2di;
|
| 25 |
|
|
|
| 26 |
|
|
typedef sf __attribute__((vector_size (8))) v2sf;
|
| 27 |
|
|
typedef sf __attribute__((vector_size (16))) v4sf;
|
| 28 |
|
|
typedef sf __attribute__((vector_size (64))) v16sf;
|
| 29 |
|
|
|
| 30 |
|
|
typedef df __attribute__((vector_size (16))) v2df;
|
| 31 |
|
|
|
| 32 |
|
|
#else
|
| 33 |
|
|
|
| 34 |
|
|
typedef int __attribute__((mode(V8QI))) v8qi;
|
| 35 |
|
|
typedef int __attribute__((mode(V16QI))) v16qi;
|
| 36 |
|
|
|
| 37 |
|
|
typedef int __attribute__((mode(V2HI))) v2hi;
|
| 38 |
|
|
typedef int __attribute__((mode(V4HI))) v4hi;
|
| 39 |
|
|
typedef int __attribute__((mode(V8HI))) v8hi;
|
| 40 |
|
|
|
| 41 |
|
|
typedef int __attribute__((mode(V2SI))) v2si;
|
| 42 |
|
|
typedef int __attribute__((mode(V4SI))) v4si;
|
| 43 |
|
|
|
| 44 |
|
|
typedef int __attribute__((mode(V1DI))) v1di;
|
| 45 |
|
|
typedef int __attribute__((mode(V2DI))) v2di;
|
| 46 |
|
|
|
| 47 |
|
|
typedef float __attribute__((mode(V2SF))) v2sf;
|
| 48 |
|
|
typedef float __attribute__((mode(V4SF))) v4sf;
|
| 49 |
|
|
typedef float __attribute__((mode(V16SF))) v16sf;
|
| 50 |
|
|
|
| 51 |
|
|
typedef float __attribute__((mode(V2DF))) v2df;
|
| 52 |
|
|
|
| 53 |
|
|
#endif
|
| 54 |
|
|
|
| 55 |
|
|
typedef union U8QI { v8qi v; qi a[8]; } u8qi;
|
| 56 |
|
|
typedef union U16QI { v16qi v; qi a[16]; } u16qi;
|
| 57 |
|
|
|
| 58 |
|
|
typedef union U2HI { v2hi v; hi a[2]; } u2hi;
|
| 59 |
|
|
typedef union U4HI { v4hi v; hi a[4]; } u4hi;
|
| 60 |
|
|
typedef union U8HI { v8hi v; hi a[8]; } u8hi;
|
| 61 |
|
|
|
| 62 |
|
|
typedef union U2SI { v2si v; si a[2]; } u2si;
|
| 63 |
|
|
typedef union U4SI { v4si v; si a[4]; } u4si;
|
| 64 |
|
|
|
| 65 |
|
|
typedef union U1DI { v1di v; di a[1]; } u1di;
|
| 66 |
|
|
typedef union U2DI { v2di v; di a[2]; } u2di;
|
| 67 |
|
|
|
| 68 |
|
|
typedef union U2SF { v2sf v; sf a[2]; } u2sf;
|
| 69 |
|
|
typedef union U4SF { v4sf v; sf a[4]; } u4sf;
|
| 70 |
|
|
typedef union U16SF { v16sf v; sf a[16]; } u16sf;
|
| 71 |
|
|
|
| 72 |
|
|
typedef union U2DF { v2df v; df a[2]; } u2df;
|