| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-additional-options "-std=gnu17" } */ |
| 3 |
/* { dg-add-options vect_early_break } */ |
| 4 |
/* { dg-require-effective-target vect_early_break } */ |
| 5 |
|
| 6 |
int ip4_getbit_a, ip4_getbit_pos, ip4_clrbit_pos; |
| 7 |
void ip4_clrbit(int *a) { *a &= ip4_clrbit_pos; } |
| 8 |
typedef struct { |
| 9 |
char pxlen; |
| 10 |
int prefix; |
| 11 |
} net_addr_ip4; |
| 12 |
void fib_get_chain(); |
| 13 |
int trie_match_longest_ip4(); |
| 14 |
int trie_match_next_longest_ip4(net_addr_ip4 *n) { |
| 15 |
int __trans_tmp_1; |
| 16 |
while (n->pxlen) { |
| 17 |
n->pxlen--; |
| 18 |
ip4_clrbit(&n->prefix); |
| 19 |
__trans_tmp_1 = ip4_getbit_a >> ip4_getbit_pos; |
| 20 |
if (__trans_tmp_1) |
| 21 |
return 1; |
| 22 |
} |
| 23 |
return 0; |
| 24 |
} |
| 25 |
void net_roa_check_ip4_trie_tab() { |
| 26 |
net_addr_ip4 px0; |
| 27 |
for (int _n = trie_match_longest_ip4(&px0); _n; |
| 28 |
_n = trie_match_next_longest_ip4(&px0)) |
| 29 |
fib_get_chain(); |
| 30 |
} |