gcc/testsuite/gcc.dg/torture/pr82603.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-additional-options "-ftree-loop-vectorize" } */ |
| 3 | |
| 4 | int |
| 5 | mr (unsigned int lf, int ms) |
| 6 | { |
| 7 | unsigned int sw = 0; |
| 8 | char *cu = (char *)&ms; |
| 9 | |
| 10 | while (ms < 1) |
| 11 | { |
| 12 | if (lf == 0) |
| 13 | ms = 0; |
| 14 | else |
| 15 | ms = 0; |
| 16 | ms += ((lf > 0) && ((lf > sw) ? 1 : ++*cu)); |
| 17 | } |
| 18 | |
| 19 | if (lf != 0) |
| 20 | cu = (char *)&sw; |
| 21 | *cu = lf; |
| 22 | |
| 23 | return ms; |
| 24 | } |