gcc/testsuite/gcc.dg/bitint-107.c
raw| 1 | /* PR tree-optimization/115544 */ |
| 2 | /* { dg-do compile { target bitint } } */ |
| 3 | /* { dg-options "-O -fno-tree-fre -fno-tree-ccp -fno-tree-forwprop" } */ |
| 4 | |
| 5 | #if __BITINT_MAXWIDTH__ >= 129 |
| 6 | typedef _BitInt(129) B; |
| 7 | #else |
| 8 | typedef _BitInt(63) B; |
| 9 | #endif |
| 10 | B a, b; |
| 11 | |
| 12 | int |
| 13 | foo (void) |
| 14 | { |
| 15 | return __builtin_mul_overflow (a, 1, &b); |
| 16 | } |