openmp: Fix signed/unsigned warning
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-early-break_121-pr114081.c
blob423ff0b566b18bf04ce4f67a45b94dc1a021a4a0
1 /* { dg-do compile } */
2 /* { dg-add-options vect_early_break } */
3 /* { dg-require-effective-target vect_early_break } */
4 /* { dg-require-effective-target vect_int } */
5 /* { dg-additional-options "-O3" } */
6 /* { dg-additional-options "-mavx2" { target { x86_64-*-* i?86-*-* } } } */
8 /* { dg-final { scan-tree-dump "LOOP VECTORIZED" "vect" } } */
10 typedef struct filter_list_entry {
11 const char *name;
12 int id;
13 void (*function)();
14 } filter_list_entry;
16 static const filter_list_entry filter_list[9] = {0};
18 void php_zval_filter(int filter, int id1) {
19 filter_list_entry filter_func;
21 int size = 9;
22 for (int i = 0; i < size; ++i) {
23 if (filter_list[i].id == filter) {
24 filter_func = filter_list[i];
25 goto done;
29 #pragma GCC novector
30 for (int i = 0; i < size; ++i) {
31 if (filter_list[i].id == 0x0204) {
32 filter_func = filter_list[i];
33 goto done;
36 done:
37 if (!filter_func.id)
38 filter_func.function();