diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/bitint-92.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/bitint-92.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/bitint-92.c b/gcc/testsuite/gcc.dg/bitint-92.c new file mode 100644 index 0000000..c567d63 --- /dev/null +++ b/gcc/testsuite/gcc.dg/bitint-92.c @@ -0,0 +1,17 @@ +/* PR rtl-optimization/114054 */ +/* { dg-do compile { target bitint } } */ +/* { dg-options "-Og -fwhole-program -fno-tree-ccp -fprofile-use -fno-tree-copy-prop -w" } */ + +int x; + +void +foo (int i, unsigned u) +{ + x = __builtin_mul_overflow_p ((unsigned _BitInt(1)) u, i, (_BitInt(33)) 0); +} + +int +main () +{ + foo (11, 0); +} |