Debian Codegraph @

gcc/testsuite/gcc.target/pru/loop-qi-2.c

raw
1 /* Test LOOP recognition */
2
3 /* { dg-options "-O2 -mloop" } */
4
5 /* -O2 in the options is significant. Without it do-loop will not be
6 run. */
7
8 unsigned int
9 test_loop_char (unsigned int x, char n)
10 {
11 int i;
12
13 /* { dg-final { scan-assembler "loop\\t.L\[0-9\]*, r\[0-9b.\]*" } } */
14 for (i = 0; i < n; i++)
15 x <<= 2;
16 return x;
17 }