gcc/testsuite/gcc.target/i386/pr110717.c
raw| 1 | /* PR target/110717 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-O2" } */ |
| 4 | |
| 5 | #ifdef __SIZEOF_INT128__ |
| 6 | unsigned __int128 |
| 7 | foo (unsigned __int128 x) |
| 8 | { |
| 9 | x <<= 59; |
| 10 | return ((__int128) x) >> 59; |
| 11 | } |
| 12 | #else |
| 13 | unsigned long long |
| 14 | foo (unsigned long long x) |
| 15 | { |
| 16 | x <<= 27; |
| 17 | return ((long long) x) >> 27; |
| 18 | } |
| 19 | #endif |
| 20 | |
| 21 | /* { dg-final { scan-assembler-not "sh\[lr\]d" } } */ |