aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr96782.c
blob: 0444eef1f5422347502e38348255924a12bbc951 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* PR tree-optimization/96782 */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */
/* { dg-final { scan-tree-dump-times "return 0;" 1 "optimized" } } */
/* { dg-final { scan-tree-dump-times "return 1;" 1 "optimized" } } */

int
foo (int a)
{
  return a == ~a;
}

int
bar (int b)
{
  return ~b != b;
}