gcc/testsuite/gcc.dg/bitint-122.c
raw| 1 | /* PR tree-optimization/116093 */ |
| 2 | /* { dg-do run { target bitint } } */ |
| 3 | /* { dg-options "-Og -ftree-vrp -fno-tree-dce" } */ |
| 4 | |
| 5 | #if __BITINT_MAXWIDTH__ >= 129 |
| 6 | char |
| 7 | foo (int a, _BitInt (129) b, char c) |
| 8 | { |
| 9 | return c << (5 / b % (0xdb75dbf5 | a)); |
| 10 | } |
| 11 | #endif |
| 12 | |
| 13 | int |
| 14 | main () |
| 15 | { |
| 16 | #if __BITINT_MAXWIDTH__ >= 129 |
| 17 | if (foo (0, 6, 1) != 1) |
| 18 | __builtin_abort (); |
| 19 | #endif |
| 20 | } |