1 /* { dg-options "-O2 -fdump-tree-ivopts -fkeep-gc-roots-live" } */
3 /* Only integer ivopts here when using -fkeep-gc-roots-live. */
5 void foo (char *pstart
, int n
)
8 char *pend
= pstart
+ n
;
10 for (p
= pstart
; p
< pend
; p
++)
14 void foo1 (char *pstart
, int n
)
17 char *pend
= pstart
+ n
;
19 for (p
= pstart
; p
!= pend
; p
++)
23 /* { dg-final { scan-tree-dump-times "ivtmp.\[0-9_\]* = PHI <\[^0\]\[^,\]*, \[^0\]" 0 "ivopts"} } */