Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / pr64277.c
blobaebb0fe19d6204add5af2a436d28dafd43ed0698
1 /* PR tree-optimization/64277 */
2 /* { dg-do compile } */
3 /* { dg-options "-O3 -Wall -Werror -fdump-tree-cunroll-details" } */
4 /* { dg-final { scan-tree-dump "loop with 4 iterations completely unrolled" "cunroll" } } */
5 /* { dg-final { scan-tree-dump "loop with 5 iterations completely unrolled" "cunroll" } } */
7 #if __SIZEOF_INT__ < 4
8 __extension__ typedef __INT32_TYPE__ int32_t;
9 #else
10 typedef int int32_t;
11 #endif
13 int32_t f1[10];
14 void test1 (short a[], short m, unsigned short l)
16 int32_t i = l;
17 for (i = i + 5; i < m; i++)
18 f1[i] = a[i]++;
21 void test2 (short a[], short m, short l)
23 int32_t i;
24 if (m > 5)
25 m = 5;
26 for (i = m; i > l; i--)
27 f1[i] = a[i]++;