gcc/testsuite/gcc.dg/vect/vect-early-break_95-pr113137.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-add-options vect_early_break } */ |
| 3 | /* { dg-require-effective-target vect_early_break } */ |
| 4 | /* { dg-require-effective-target vect_int } */ |
| 5 | /* { dg-additional-options "-w" } */ |
| 6 | |
| 7 | short gen_to_words_words; |
| 8 | void gen_to_words() { |
| 9 | unsigned short *lp = &gen_to_words_words; |
| 10 | long carry; |
| 11 | for (carry = 1, lp--; carry; lp--) { |
| 12 | carry = *lp + carry; |
| 13 | *lp = carry >>= 16; |
| 14 | if (lp == &gen_to_words_words) |
| 15 | break; |
| 16 | } |
| 17 | } |