aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/andor-1.c
blob: 6cc12b348339d6e6d837c792c6979deac7a57169 (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */
/* { dg-options "-O2" } */
/* { dg-final { scan-assembler-not "andl" } } */

unsigned int foo(unsigned int x)
{
  unsigned int t = x & ~1;
  return t | 1;
}