gcc/testsuite/gcc.target/i386/pr110551.c
raw| 1 | /* { dg-do compile { target int128 } } */ |
| 2 | /* { dg-options "-O2" } */ |
| 3 | |
| 4 | typedef unsigned long long uint64_t; |
| 5 | |
| 6 | uint64_t mulx64(uint64_t x) |
| 7 | { |
| 8 | __uint128_t r = (__uint128_t)x * 0x9E3779B97F4A7C15ull; |
| 9 | return (uint64_t)r ^ (uint64_t)( r >> 64 ); |
| 10 | } |
| 11 | |
| 12 | /* { dg-final { scan-assembler-not "movq" } } */ |