]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.target/spu/vector-ansi.c
re PR middle-end/91603 (Unaligned access in expand_assignment)
[thirdparty/gcc.git] / gcc / testsuite / gcc.target / spu / vector-ansi.c
CommitLineData
e816b6b5
BE
1/* { dg-do compile } */
2/* { dg-options "-ansi" } */
3
4/* This is done by spu_internals.h, but we not include it here to keep
5 down the dependencies. */
6
7#ifndef __VECTOR_KEYWORD_SUPPORTED__
8#define vector __vector
9#endif
10
11/* __vector is expanded unconditionally by the preprocessor. */
12__vector int vi;
13__vector unsigned char vuc;
14__vector signed char vsc;
15__vector unsigned short vus;
16__vector signed short vss;
17__vector unsigned int vui;
18__vector signed int vsi;
19__vector unsigned long long ull;
20__vector signed long long sll;
21__vector float vf;
22__vector double vd;
23
24/* vector is expanded by the define above, regardless of context. */
25vector int vi;
26vector unsigned char vuc;
27vector signed char vsc;
28vector unsigned short vus;
29vector signed short vss;
30vector unsigned int vui;
31vector signed int vsi;
32vector unsigned long long ull;
33vector signed long long sll;
34vector float vf;
35vector double vd;