gcc/testsuite/gcc.c-torture/compile/dce-inline-asm-2.c
raw| 1 | /* PR tree-optimization/108684 */ |
| 2 | /* This used to ICE as when we removed the |
| 3 | __builtin_unreachable in VRP, as we |
| 4 | would also remove the branch and the |
| 5 | inline-asm. The inline-asm had a VDEF on it, |
| 6 | which we didn't update further along and |
| 7 | not have the VDEF on the return statement |
| 8 | updated. */ |
| 9 | |
| 10 | int f (int a) |
| 11 | { |
| 12 | asm (" " : "=X" (a) : : "memory"); |
| 13 | if (a) |
| 14 | return 0; |
| 15 | __builtin_unreachable(); |
| 16 | } |