1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
3 /* PR tree-optimization/111456 */
9 static void(a
)(signed char) {}
10 static short(b
)(short c
, short d
) { return c
- d
; }
11 static short(e
)(short f
, int g
) {
12 return f
< 0 || g
< 0 || g
>= 32 ? f
: f
>> g
;
14 static short(h
)(short f
, int g
) { return g
>= 2 ?: f
>> g
; }
15 static signed char k(signed char m
, short n
) {
18 if (!(((m
) >= 1) && ((m
) <= 1))) {
19 __builtin_unreachable();
26 for (; m
>= -20; m
= b(m
, 9))
38 int main() { k(0 <= 0 > *j
, i
); }
41 /* { dg-final { scan-tree-dump-not "foo " "optimized" } } */
42 /* { dg-final { scan-tree-dump "return 0;" "optimized" } } */