| 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 |
/* { dg-require-effective-target vect_long } */ |
| 6 |
/* { dg-additional-options "-msse4.2" { target i?86-*-* x86_64-*-* } } */ |
| 7 |
|
| 8 |
/* { dg-final { scan-tree-dump "LOOP VECTORIZED" "vect" } } */ |
| 9 |
|
| 10 |
char* inet_net_pton_ipv4_bits; |
| 11 |
char inet_net_pton_ipv4_odst; |
| 12 |
void __errno_location(); |
| 13 |
void inet_net_pton_ipv4(); |
| 14 |
void inet_net_pton() { inet_net_pton_ipv4(); } |
| 15 |
void inet_net_pton_ipv4(char *dst, int size) { |
| 16 |
while ((inet_net_pton_ipv4_bits > dst) & inet_net_pton_ipv4_odst) { |
| 17 |
if (size-- <= 0) |
| 18 |
goto emsgsize; |
| 19 |
*dst++ = '\0'; |
| 20 |
} |
| 21 |
emsgsize: |
| 22 |
__errno_location(); |
| 23 |
} |