gcc/testsuite/gcc.target/i386/ashlti3-2.c
raw| 1 | /* { dg-do compile { target int128 } } */ |
| 2 | /* { dg-options "-O2" } */ |
| 3 | |
| 4 | __int128 foo(__int128 x, long long y) |
| 5 | { |
| 6 | __int128 t = (__int128)y << 64; |
| 7 | return x ^ t; |
| 8 | } |
| 9 | |
| 10 | __int128 bar(__int128 x, long long y) |
| 11 | { |
| 12 | __int128 t = (__int128)y << 67; |
| 13 | return x ^ t; |
| 14 | } |
| 15 | |
| 16 | /* { dg-final { scan-assembler-not "xorl" } } */ |
| 17 | /* { dg-final { scan-assembler-times "xorq" 2 } } */ |