ubuntu-buildroot/output/build/host-gcc-initial-11.4.0/gcc/testsuite/gcc.target/pru/loop-hi-2.c

18 lines
343 B
C

/* Test LOOP recognition - short ints*/
/* { dg-options "-O2 -mloop" } */
/* -O2 in the options is significant. Without it do-loop will not be
run. */
unsigned int
test_loop_short (int x, short n)
{
int i;
/* { dg-final { scan-assembler "loop\\t.L\[0-9\]*, r\[0-9w.\]*" } } */
for (i = 0; i < n; i++)
x <<= 3;
return x;
}