gcc/testsuite/gcc.dg/tree-ssa/pr82472.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -ftree-loop-distribution" } */ |
| 3 | |
| 4 | long int xj; |
| 5 | |
| 6 | int |
| 7 | cx (long int *ox, short int mk, char tf) |
| 8 | { |
| 9 | int si, f9; |
| 10 | char *p4 = &tf; |
| 11 | short int *rm = (tf != 0) ? (short int *)&f9 : &mk; |
| 12 | |
| 13 | for (f9 = 0; f9 < 2; ++f9) |
| 14 | { |
| 15 | *rm = 0; |
| 16 | *p4 = *ox; |
| 17 | si = mk; |
| 18 | xj = 0; |
| 19 | while (p4 < (char *)rm) |
| 20 | ++p4; |
| 21 | } |
| 22 | |
| 23 | return si; |
| 24 | } |