gcc/testsuite/gcc.target/s390/20200617.c
raw| 1 | /* This ICE'd before f9e1ea10e657af9fb02fafecf1a600740fd34409 because |
| 2 | a doloop pattern with a dead set of the iteration variable was |
| 3 | generated and s390_fix_long_loop_prediction then failed to |
| 4 | recognize it as branch on count pattern. */ |
| 5 | |
| 6 | /* { dg-do compile } */ |
| 7 | /* { dg-options "-O3 -march=z10" } */ |
| 8 | |
| 9 | int a, d, e, f; |
| 10 | long b; |
| 11 | long *volatile c; |
| 12 | void |
| 13 | fn1() { |
| 14 | for (; e; ++e) |
| 15 | if (d) |
| 16 | ; |
| 17 | else { |
| 18 | a = 0; |
| 19 | for (; a != 14; ++a) |
| 20 | *c = b && f; |
| 21 | d = 8; |
| 22 | } |
| 23 | } |