annotate gcc/testsuite/gcc.dg/tree-ssa/split-path-5.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
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
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
4 const extern signed char *__ctype_ptr__;
111
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
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
10 bmhi_init (const signed char *pattern)
111
kono
parents:
diff changeset
11 {
kono
parents:
diff changeset
12 int i, lastpatchar;
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
13 patlen = __builtin_strlen (pattern);
111
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
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
44 /* { dg-final { scan-tree-dump-times "join point for if-convertable half-diamond" 1 "split-paths" } } */