OSDN Git Service

PR rtl-optimization/52139
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / tree-ssa / ivopts-lt.c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-ivopts" } */
3 /* { dg-require-effective-target stdint_types } */
4
5 #include "stdint.h"
6
7 void
8 f1 (char *p, uintptr_t i, uintptr_t n)
9 {
10   p += i;
11   do
12     {
13       *p = '\0';
14       p += 1;
15       i++;
16     }
17   while (i < n);
18 }
19
20 /* { dg-final { scan-tree-dump-times "PHI" 1 "ivopts" } } */
21 /* { dg-final { scan-tree-dump-times "PHI <p_" 1 "ivopts"} } */
22 /* { dg-final { scan-tree-dump-times "p_\[0-9\]* <" 1 "ivopts" } } */
23 /* { dg-final { cleanup-tree-dump "ivopts" } } */