Add documentation for musttail attribute
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr61837.c
blobe5a0c4fdb16301ccd43cee3479a9e8a1998a0882
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-rtl-loop2_doloop -fno-unroll-loops" } */
3 /* The inner loop would use the doloop IV in word_mode. And then
4 there is no need to access it though zero_extend on shorter mode. */
5 void foo(int *p1, long *p2, int s)
7 int n, v, i;
9 v = 0;
10 for (n = 0; n <= 100; n++) {
11 for (i = 0; i < s; i++)
12 if (p2[i] == n)
13 p1[i] = v;
14 v += 88;
18 /* { dg-final {scan-rtl-dump-not {(?p)zero_extend.*doloop} "loop2_doloop"} } */
19 /* { dg-final {scan-rtl-dump-not {(?p)reg:SI.*doloop} "loop2_doloop" { target lp64 } } } */