1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
4 char* inttostr(int i
, char* buf
, int len
)
6 unsigned int ui
= (i
> 0) ? i
: -i
;
7 char *p
= buf
+ len
- 1;
10 *--p
= '0' + (ui
% 10);
11 } while ((ui
/= 10) != 0);
18 /* In out-of-SSA we should have avoided splitting the latch edge of the
19 loop by inserting copies. */
20 /* { dg-final { scan-assembler-times "L\[0-9\]+:" 2 } } */