gcc/testsuite/gcc.target/i386/pr118510.c
raw| 1 | /* { dg-do compile { target { ! ia32 } } } */ |
| 2 | /* { dg-options "-O2 -mapxf" } */ |
| 3 | |
| 4 | typedef struct cpp_num cpp_num; |
| 5 | struct cpp_num { |
| 6 | int high; |
| 7 | unsigned low; |
| 8 | int overflow; |
| 9 | }; |
| 10 | int num_rshift_n; |
| 11 | cpp_num num_lshift(cpp_num num) { |
| 12 | num.low = num.low >> num_rshift_n | num.high << (32 - num_rshift_n); |
| 13 | return num; |
| 14 | } |