gcc/testsuite/gcc.dg/torture/pr117476-2.c
raw| 1 | /* PR rtl-optimization/117476. |
| 2 | Second case checking skipping of TI mode. */ |
| 3 | /* { dg-do run } */ |
| 4 | /* { dg-require-effective-target int128 } */ |
| 5 | |
| 6 | unsigned __int128 g; |
| 7 | |
| 8 | void |
| 9 | foo () |
| 10 | { |
| 11 | g += __builtin_add_overflow_p (~g, 0, 0ul); |
| 12 | } |
| 13 | |
| 14 | int |
| 15 | main () |
| 16 | { |
| 17 | foo(); |
| 18 | if (!g) |
| 19 | __builtin_abort(); |
| 20 | } |