aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/andnegcmp-1.c
blob: 6f16783f169169a5bc3a7966d9645221ae212130 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */
/* PR tree-optimization/92342 */

int
f (int m1, int m2, int c)
{
  int d = m1 == m2;
  d = -d;
  int e = d & c;
  return e;
}

/* { dg-final { scan-tree-dump-times "\\? c_\[0-9\]\\(D\\) : 0" 1 "optimized" } } */