1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-dom2-stats -fdump-tree-thread2-stats -fdump-tree-dom3-stats -fno-guess-branch-probability" } */
4 /* { dg-final { scan-tree-dump-not "Jumps threaded" "dom2" } } */
6 /* We were previously checking for no threads in vrp-thread2, but now
7 that we have merged the post and pre threaders, we get a dozen
8 threads before VRP2. */
10 /* aarch64 has the highest CASE_VALUES_THRESHOLD in GCC. It's high enough
11 to change decisions in switch expansion which in turn can expose new
12 jump threading opportunities. Skip the later tests on aarch64. */
13 /* { dg-final { scan-tree-dump-not "Jumps threaded" "dom3" { target { ! aarch64*-*-* } } } } */
14 /* { dg-final { scan-tree-dump "Jumps threaded: 9" "thread2" { target { ! aarch64*-*-* } } } } */
15 /* { dg-final { scan-tree-dump "Jumps threaded: 17" "thread2" { target { aarch64*-*-* } } } } */
28 int bar (enum STATE s
);
30 enum STATE
foo (unsigned char **y
, unsigned *c
)
32 unsigned char *x
= *y
;
36 for( ; *x
&& s
!= SI
; x
++ )
49 else if( n
== 'a' || n
== 'b' )
90 if( n
== 'E' || n
== 'e' )
102 if( n
== 'a' || n
== 'b' )