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
)
10 for (n
= 0; n
<= 100; n
++) {
11 for (i
= 0; i
< s
; i
++)
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 } } } */