| 1 |
/* PR tree-optimization/116501 */ |
| 2 |
/* { dg-do run { target bitint575 } } */ |
| 3 |
/* { dg-options "-std=c23" } */ |
| 4 |
/* { dg-skip-if "" { ! run_expensive_tests } { "*" } { "-O0" "-O2" } } */ |
| 5 |
/* { dg-skip-if "" { ! run_expensive_tests } { "-flto" } { "" } } */ |
| 6 |
|
| 7 |
_BitInt (4) a; |
| 8 |
|
| 9 |
int |
| 10 |
foo (_BitInt(513) b) |
| 11 |
{ |
| 12 |
return __builtin_sub_overflow_p (a, b, (_BitInt (511)) 0); |
| 13 |
} |
| 14 |
|
| 15 |
int |
| 16 |
main () |
| 17 |
{ |
| 18 |
if (!foo (0xffffffffffffffff0000000000000000ffffffffffffffff0000000000000000ffffffffffffffff0000000000000000ffffffffffffffff0000000000000000wb)) |
| 19 |
__builtin_abort (); |
| 20 |
} |