annotate gcc/testsuite/gcc.dg/tree-ssa/split-path-5.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-do compile } */
kono
parents:
diff changeset
2 /* { dg-options "-O2 -fsplit-paths -fdump-tree-split-paths-details -w" } */
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 const extern char *__ctype_ptr__;
kono
parents:
diff changeset
5 typedef unsigned char uchar;
kono
parents:
diff changeset
6 static int patlen;
kono
parents:
diff changeset
7 static int skip[(0x7f * 2 + 1) + 1];
kono
parents:
diff changeset
8 static uchar *pat = ((void *) 0);
kono
parents:
diff changeset
9 void
kono
parents:
diff changeset
10 bmhi_init (const char *pattern)
kono
parents:
diff changeset
11 {
kono
parents:
diff changeset
12 int i, lastpatchar;
kono
parents:
diff changeset
13 patlen = strlen (pattern);
kono
parents:
diff changeset
14 for (i = 0; i < patlen; i++)
kono
parents:
diff changeset
15 pat[i] = (
kono
parents:
diff changeset
16 {
kono
parents:
diff changeset
17 __typeof__ (pattern[i]) __x = (pattern[i]);
kono
parents:
diff changeset
18 ((((__ctype_ptr__ +
kono
parents:
diff changeset
19 sizeof (""[__x]))[(int) (__x)]) & (01 | 02))
kono
parents:
diff changeset
20 == 02) ? (int) __x - 'a' + 'A' : (int) __x;
kono
parents:
diff changeset
21 });
kono
parents:
diff changeset
22 for (i = 0; i < patlen - 1; ++i)
kono
parents:
diff changeset
23 {
kono
parents:
diff changeset
24 skip[(
kono
parents:
diff changeset
25 {
kono
parents:
diff changeset
26 __typeof__ (pat[i]) __x = (pat[i]);
kono
parents:
diff changeset
27 ((((__ctype_ptr__ +
kono
parents:
diff changeset
28 sizeof (""[__x]))[(int) (__x)]) & (01 | 02)) ==
kono
parents:
diff changeset
29 01) ? (int) __x - 'A' + 'a' : (int) __x;
kono
parents:
diff changeset
30 })] = patlen - i - 1;
kono
parents:
diff changeset
31 }
kono
parents:
diff changeset
32 skip[(
kono
parents:
diff changeset
33 {
kono
parents:
diff changeset
34 __typeof__ (lastpatchar) __x = (lastpatchar);
kono
parents:
diff changeset
35 ((((__ctype_ptr__ +
kono
parents:
diff changeset
36 sizeof (""[__x]))[(int) (__x)]) & (01 | 02)) ==
kono
parents:
diff changeset
37 01) ? (int) __x - 'A' + 'a' : (int) __x;
kono
parents:
diff changeset
38 })] = 32767;
kono
parents:
diff changeset
39 for (i = 0; i < patlen - 1; ++i)
kono
parents:
diff changeset
40 {
kono
parents:
diff changeset
41 }
kono
parents:
diff changeset
42 }
kono
parents:
diff changeset
43
kono
parents:
diff changeset
44 /* { dg-final { scan-tree-dump-times "Duplicating join block" 1 "split-paths" } } */