1 /* PR tree-optimization/69097 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
4 /* All the x % -y below should be optimized into x % y, as
5 it should never be INT_MIN % -(-1). */
6 /* { dg-final { scan-tree-dump-not "-y" "optimized" } } */
11 if (x
== -__INT_MAX__
- 1)
12 __builtin_unreachable ();
20 __builtin_unreachable ();
28 __builtin_unreachable ();
36 __builtin_unreachable ();
44 __builtin_unreachable ();
52 __builtin_unreachable ();
59 if (y
<= -17 || y
>= -1)
60 __builtin_unreachable ();
67 if (y
>= -13 && y
<= 15)
68 __builtin_unreachable ();
81 if (x
!= -__INT_MAX__
- 1)
89 if (x
>= -__INT_MAX__
)
121 if (y
>= 0 && y
<= 24)
129 if (y
> -17 && y
< -1)
137 if (y
< -13 || y
> 15)