aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/vector-align-1.c
blob: 825ef7cd69ff4921c9cc0b1d3612a53f95bcfe21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* Check to make sure the alignment on vectors is not being lost. */

/* If some target has a Max alignment less than 128, please create
   a #ifdef around the alignment and add your alignment.  */
#ifdef __pdp11__
#define alignment 2
#else
#define alignment 128
#endif

char x __attribute__((aligned(alignment),vector_size(2)));


int f[__alignof__(x) == alignment?1:-1];