| 1 |
/* { dg-do compile { target { ! ia32 } } } */ |
| 2 |
/* { dg-options "-mapx-features=egpr,push2pop2,ndd,ppx,nf -march=x86-64 -O2" } */ |
| 3 |
/* { dg-final { scan-assembler-times "\{nf\} and" 1 } } */ |
| 4 |
/* { dg-final { scan-assembler-times "\{nf\} or" 1 } } */ |
| 5 |
/* { dg-final { scan-assembler-times "\{nf\} rol" 4 } } */ |
| 6 |
|
| 7 |
struct B { unsigned bit0 : 1; unsigned bit1 : 1; }; |
| 8 |
|
| 9 |
void |
| 10 |
foo (struct B *b) |
| 11 |
{ |
| 12 |
b->bit0 = b->bit0 | b->bit1; |
| 13 |
} |
| 14 |
long int f1 (int x) { return ~(1ULL << (x & 0x3f)); } |
| 15 |
long int f2 (int x) { return ~(1ULL << x); } |
| 16 |
long int f3 (unsigned char *x) { return ~(1ULL << (x[0] & 0x3f)); } |
| 17 |
long int f4 (unsigned char *x) { return ~(1ULL << x[0]); } |