1 /* { dg-require-effective-target vect_int } */ 2 3 #include <stdarg.h> 4 #include "tree-vect.h" 5 6 #define N 128 7 8 short res[N]; 9 short a[N]; 10 11 int main1()12main1 () 13 { 14 int i; 15 16 for (i = 0; i < N/4; i+=4) 17 { 18 res[i] = a[i] >> 8; 19 res[i+1] = a[i+1] >> 8; 20 res[i+2] = a[i+2] >> 8; 21 res[i+3] = a[i+3] >> 8; 22 } 23 } 24 25 int main()26main () 27 { 28 int i; 29 30 check_vect (); 31 32 for (i = 0; i < N; i++) 33 a[i] = i; 34 35 main1 (); 36 37 for (i = 0; i < N; i++) 38 if (res[i] != a[i] >> 8) 39 abort (); 40 41 return 0; 42 } 43 44