| 1 |
/* { dg-do assemble } */ |
| 2 |
/* { dg-options "-O2 --save-temps" } */ |
| 3 |
|
| 4 |
long long f1 (void) |
| 5 |
{ |
| 6 |
return 0x80402010080400; |
| 7 |
} |
| 8 |
|
| 9 |
long long f2 (void) |
| 10 |
{ |
| 11 |
return 0x1234567812345678; |
| 12 |
} |
| 13 |
|
| 14 |
long long f3 (void) |
| 15 |
{ |
| 16 |
return 0x4567800012345678; |
| 17 |
} |
| 18 |
|
| 19 |
long long f4 (void) |
| 20 |
{ |
| 21 |
return 0x3ecccccd3ecccccd; |
| 22 |
} |
| 23 |
|
| 24 |
long long f5 (void) |
| 25 |
{ |
| 26 |
return 0x38e38e38e38e38e; |
| 27 |
} |
| 28 |
|
| 29 |
long long f6 (void) |
| 30 |
{ |
| 31 |
return 0x1745d1745d1745d; |
| 32 |
} |
| 33 |
|
| 34 |
void f7 (long long *p) |
| 35 |
{ |
| 36 |
*p = 0x1234567812345678; |
| 37 |
} |
| 38 |
|
| 39 |
/* { dg-final { scan-assembler-times {\tmovk\t} 7 } } */ |
| 40 |
/* { dg-final { scan-assembler-times {\tmov\t} 7 } } */ |
| 41 |
/* { dg-final { scan-assembler-times {\tbic\t} 2 } } */ |
| 42 |
/* { dg-final { scan-assembler-times {\torr\t} 4 } } */ |
| 43 |
/* { dg-final { scan-assembler-times {\tstp\t} 1 } } */ |