1 /* Make sure both loops are recognized as doloops.
2 If so, "bdnz" will be generated on ppc; if not,
5 /* { dg-do compile { target powerpc-*-* } } */
6 /* { dg-options "-O2" } */
7 void foo (int count
, char* pca
, char* pcb
) {
10 for (i
= 0; i
< count
; ++i
)
13 for (i
= 0; i
< count
; ++i
)
17 /* { dg-final { scan-assembler "bdnz" } } */
18 /* { dg-final { scan-assembler-not "blt" } } */