| 1 |
/* { dg-do compile { target int128 } } */ |
| 2 |
/* { dg-options "-O2" } */ |
| 3 |
|
| 4 |
void multiply128x64x2_3 ( |
| 5 |
const unsigned long a, |
| 6 |
const unsigned long b, |
| 7 |
const unsigned long c, |
| 8 |
const unsigned long d, |
| 9 |
__uint128_t o[2]) |
| 10 |
{ |
| 11 |
__uint128_t B0 = (__uint128_t) b * c; |
| 12 |
__uint128_t B2 = (__uint128_t) a * c; |
| 13 |
__uint128_t B1 = (__uint128_t) b * d; |
| 14 |
__uint128_t B3 = (__uint128_t) a * d; |
| 15 |
|
| 16 |
o[0] = B2 + (B0 >> 64); |
| 17 |
o[1] = B3 + (B1 >> 64); |
| 18 |
} |
| 19 |
|
| 20 |
/* { dg-final { scan-assembler-not "xor" } } */ |