gcc/testsuite/gcc.target/i386/insvti_highpart-1.c
raw| 1 | /* { dg-do compile { target int128 } } */ |
| 2 | /* { dg-options "-O2" } */ |
| 3 | |
| 4 | __int128 foo(__int128 x, unsigned long long y) |
| 5 | { |
| 6 | __int128 t = (__int128)y << 64; |
| 7 | __int128 r = (x & ~0ull) | t; |
| 8 | return r; |
| 9 | } |
| 10 | |
| 11 | /* { dg-final { scan-assembler-not "xorl" } } */ |
| 12 | /* { dg-final { scan-assembler-not "orq" } } */ |