i386: Adjust rtx cost for imulq and imulw [PR115749]
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-early-break_117-pr113734.c
blob36ae09483dfd426f977a3d92cf24a78d76de6961
1 /* { dg-add-options vect_early_break } */
2 /* { dg-require-effective-target vect_early_break_hw } */
3 /* { dg-require-effective-target vect_int } */
4 /* { dg-additional-options "-O3" } */
6 /* { dg-final { scan-tree-dump "LOOP VECTORIZED" "vect" } } */
8 #include "tree-vect.h"
10 #define N 306
11 #define NEEDLE 136
13 int table[N];
15 __attribute__ ((noipa))
16 int foo (int i, unsigned short parse_tables_n)
18 parse_tables_n >>= 9;
19 parse_tables_n += 11;
20 while (i < N && parse_tables_n--)
21 table[i++] = 0;
23 return table[NEEDLE];
26 int main ()
28 check_vect ();
30 for (int j = 0; j < N; j++)
31 table[j] = -1;
33 if (foo (0, 0xFFFF) != 0)
34 __builtin_abort ();
36 return 0;