gcc/testsuite/gcc.target/arc/load-update.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-Os" } */ |
| 3 | |
| 4 | /* This caused a segfault due to incorrect rtl pattern in some |
| 5 | instructions. */ |
| 6 | |
| 7 | int a, d; |
| 8 | char *b; |
| 9 | |
| 10 | void fn1() |
| 11 | { |
| 12 | char *e = 0; |
| 13 | for (; d; ++a) |
| 14 | { |
| 15 | char c = b [0]; |
| 16 | *e++ = '.'; |
| 17 | *e++ = 4; |
| 18 | *e++ = "0123456789abcdef" [c & 5]; |
| 19 | } |
| 20 | } |