1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
4 __extension__
typedef __SIZE_TYPE__
size_t;
7 php_filter_parse_int (char const *str
, unsigned int str_len
, long *ret
)
29 if ((size_t) str
< (size_t) end
)
31 if ((int const) *str
>= 49)
33 if ((int const) *str
<= 57)
45 ctx_value
= (long) (tmp
* (int) ((int const) *tmp___0
- 48));
65 while ((size_t) str
< (size_t) end
)
67 if ((int const) *str
>= 48)
69 if ((int const) *str
<= 57)
73 digit
= (int) ((int const) *tmp___1
- 48);
77 (9223372036854775807L - (long) digit
) / 10L)
79 ctx_value
= ctx_value
* 10L + (long) digit
;
92 ((-0x7FFFFFFFFFFFFFFF - 1) + (long) digit
) / 10L)
94 ctx_value
= ctx_value
* 10L - (long) digit
;
121 /* { dg-final { scan-assembler-not "idiv" } } */