i386: Adjust rtx cost for imulq and imulw [PR115749]
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-early-break_51.c
blobc06eff5a385f4309ee3a03d2bb697a12976537fd
1 /* { dg-add-options vect_early_break } */
2 /* { dg-do compile } */
3 /* { dg-require-effective-target vect_early_break } */
4 /* { dg-require-effective-target vect_int } */
6 int x_in[32];
7 int x_out_a[32], x_out_b[32];
8 int c[16] = {3,2,1,10,1,42,3,4,50,9,32,8,11,10,1,2};
9 int a[16 +1] = {0,16,32,48,64,128,256,512,0,16,32,48,64,128,256,512,1024};
10 int b[16 +1] = {17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1};
12 void foo ()
14 int j, i, x;
15 int curr_a, flag, next_a, curr_b, next_b;
17 for (i = 0; i < 16; i++)
19 next_b = b[i+1];
20 curr_b = flag ? next_b : curr_b;
22 x_out_b[j] = curr_b;
26 /* { dg-final { scan-tree-dump "vectorized 1 loops in function" "vect" } } */