blob: 8d74b4932c5cb85c457f1227b426c456f641bb45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* { dg-do compile } */
/* { dg-options "-O2 -g -fdump-tree-optimized --param logical-op-non-short-circuit=1" } */
/* PR tree-optimization/85605 */
/* Like ssa-ifcombine-ccmp-2.c but with conversion from unsigned to signed in the
inner bb which should be able to move too. */
int t (int a, unsigned b)
{
if (a > 0)
goto L1;
signed t = b;
if (t > 0)
goto L1;
return 0;
L1:
return 1;
}
/* { dg-final { scan-tree-dump "\|" "optimized" } } */
|