1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_shift } */
3 /* { dg-require-effective-target vect_int } */
5 #define vidx(type, vec, idx) (*((type *) &(vec) + idx))
6 #define vector(elcount, type) \
7 __attribute__((vector_size((elcount)*sizeof(type)))) type
11 int main (int argc
, char *argv
[]) {
13 vector(8, short) v0
= {argc
,1,2,3,4,5,6,7};
14 vector(8, short) v2
= {k
, k
,k
,k
,k
,k
,k
,k
};
19 return vidx(short, r1
, 0);
22 /* { dg-final { scan-tree-dump-times ">> _\[0-9\]*" 1 "veclower21" } } */