blob: 0fa2d9b7e9625bc4aed891839b4920b2b3474e56 [file] [log] [blame]
/* { dg-do compile { target { ! ia32 } } } */
/* { dg-options "-O2" } */
long test_1 (long x, int n)
{
n &= 0x3f;
x &= ~((long)0x01 << n);
return x;
}
long test_2 (long x, int n)
{
n &= 0x3f;
x |= ((long)0x01 << n);
return x;
}
long test_3 (long x, int n)
{
n &= 0x3f;
x ^= ((long)0x01 << n);
return x;
}
/* { dg-final { scan-assembler-not "and\[lq\]\[ \t\]" } } */