Add compile command to each testcase
[gcc-vect-testsuite.git] / vec-scal-opt1.c
blob0c00c718ef45276c84048c321b6b4b1d7024b309
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
9 short k;
11 int main (int argc, char *argv[]) {
12 vector(8, short) v0 = {argc,1,2,3,4,5,6,7};
13 vector(8, short) r1;
15 r1 = v0 >> (vector(8, short)){2,2,2,2,2,2,2,2};
17 return vidx(short, r1, 0);
20 /* { dg-final { scan-tree-dump-times ">> 2" 1 "veclower" { target vect_shift_scalar } } } */
21 /* { dg-final { cleanup-tree-dump "veclower" } } */