| 1 |
/* PR middle-end/114319 */ |
| 2 |
/* { dg-do compile } */ |
| 3 |
/* { dg-options "-O2 -masm=att -mno-movbe" } */ |
| 4 |
/* { dg-additional-options "-march=i486" { target ia32 } } */ |
| 5 |
/* { dg-final { scan-assembler-times "\tbswap\t%r" 1 { target { ! ia32 } } } } */ |
| 6 |
/* { dg-final { scan-assembler-times "\tbswap\t%\[er]" 2 { target ia32 } } } */ |
| 7 |
|
| 8 |
void |
| 9 |
foo (unsigned long long x, unsigned char *y) |
| 10 |
{ |
| 11 |
y[0] = x >> 56; |
| 12 |
y[1] = x >> 48; |
| 13 |
y[2] = x >> 40; |
| 14 |
y[3] = x >> 32; |
| 15 |
y[4] = x >> 24; |
| 16 |
y[5] = x >> 16; |
| 17 |
y[6] = x >> 8; |
| 18 |
y[7] = x; |
| 19 |
} |