gcc/testsuite/gcc.dg/torture/pr117492-1.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* PR middle-end/117492 */ |
| 3 | |
| 4 | /* This code would ICE in fold due to code which was using wi::to_wide with different types |
| 5 | and adding them. */ |
| 6 | |
| 7 | typedef unsigned u; |
| 8 | |
| 9 | u |
| 10 | foo(u x) |
| 11 | { |
| 12 | return |
| 13 | __builtin_stdc_rotate_left((unsigned) |
| 14 | __builtin_stdc_rotate_right(x, 0x100000001ull), |
| 15 | 1); |
| 16 | } |