gcc/testsuite/gcc.dg/tree-ssa/ifc-pr71683.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-Ofast" { target *-*-* } } */ |
| 3 | |
| 4 | short unsigned int ve; |
| 5 | |
| 6 | void |
| 7 | u1 (void) |
| 8 | { |
| 9 | int oq = 0; |
| 10 | |
| 11 | while (ve != 0) |
| 12 | { |
| 13 | int j4, w7 = oq; |
| 14 | |
| 15 | oq = 0 / oq; |
| 16 | ve %= oq; |
| 17 | j4 = ve ^ 1; |
| 18 | ve ^= oq; |
| 19 | if (j4 != 0 ? j4 : ve) |
| 20 | oq = ve; |
| 21 | else |
| 22 | if (w7 != 0) |
| 23 | oq = ve; |
| 24 | } |
| 25 | } |