gcc/testsuite/gcc.dg/bitint-92.c
raw| 1 | /* PR rtl-optimization/114054 */ |
| 2 | /* { dg-do compile { target bitint } } */ |
| 3 | /* { dg-options "-Og -fwhole-program -fno-tree-ccp -fprofile-use -fno-tree-copy-prop -w" } */ |
| 4 | |
| 5 | int x; |
| 6 | |
| 7 | void |
| 8 | foo (int i, unsigned u) |
| 9 | { |
| 10 | x = __builtin_mul_overflow_p ((unsigned _BitInt(1)) u, i, (_BitInt(33)) 0); |
| 11 | } |
| 12 | |
| 13 | int |
| 14 | main () |
| 15 | { |
| 16 | foo (11, 0); |
| 17 | } |