summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr66821.c
blob: a04e86292f4ef5ff7fc119eb3bc1ac7e1b5e8d55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile { target ia32 } } */
/* { dg-options "-O2 -fdump-tree-optimized -mtune=lakemont" } */

void bar (void);

void
foo (int x)
{
  if (x != 2 && x != 3 && x != 10 && x != 11 && x != 17 && x != 18 && x != 23)
    bar ();
}

/* Check if the tests have been folded into a bit test.  */
/* { dg-final { scan-tree-dump "(8784908|0x0*860c0c)" "optimized" } } */
/* { dg-final { scan-tree-dump "(<<|>>)" "optimized" } } */