gcc/testsuite/gcc.dg/pr69238.c
raw| 1 | /* { dg-do run } */ |
| 2 | /* { dg-options "-O2 -fno-dce -fno-forward-propagate -fno-rerun-cse-after-loop -funroll-loops" } */ |
| 3 | |
| 4 | |
| 5 | #define N 32 |
| 6 | |
| 7 | short sa[N]; |
| 8 | short sb[N]; |
| 9 | int ia[N]; |
| 10 | int ib[N]; |
| 11 | |
| 12 | int __attribute__ ((noinline, noclone)) |
| 13 | main1 (int n) |
| 14 | { |
| 15 | int i; |
| 16 | for (i = 0; i < n; i++) |
| 17 | { |
| 18 | sa[i+7] = sb[i]; |
| 19 | ia[i+3] = ib[i+1]; |
| 20 | } |
| 21 | return 0; |
| 22 | } |
| 23 | |
| 24 | int |
| 25 | main (void) |
| 26 | { |
| 27 | return main1 (N-7); |
| 28 | } |