1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-ivopts-details" } */
6 #if __SIZEOF_INT__ == __SIZEOF_SHORT__
13 foo1 (long long s
, long long l
)
17 for (i
= s
; i
< l
; i
++)
25 foo2 (unsigned char s
, unsigned char l
, unsigned char c
)
27 unsigned char i
, step
= 1;
30 for (i
= s
; i
< l
; i
++)
40 foo3 (unsigned char s
, unsigned char l
, unsigned char c
)
45 for (i
= s
; i
!= l
; i
+= c
)
54 foo4 (unsigned char s
, unsigned char l
)
59 for (i
= s
; i
!= l
; i
++)
67 /* Address of array references are not scevs. */
68 /* { dg-final { scan-tree-dump-not " Type:\\tREFERENCE ADDRESS\n" "ivopts" } } */