arm: fix typo in dg-require-effective-target [PR118089]
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / loop-3.c
blob74491f80e497b96967194745d5ab781ee87d41bb
1 /* A test for strength reduction and induction variable elimination.
2 Target is restricted to x86 type architectures, so that we may
3 assume something about memory addressing modes. */
5 /* { dg-do compile { target { { i?86-*-* x86_64-*-* } && nonpic } } } */
6 /* { dg-options "-O1 -fdump-tree-optimized" } */
8 int arr_base[100];
10 int foo(int);
12 void xxx(void)
14 long iter;
16 for (iter = 0; iter < 100; iter++)
17 arr_base[iter] = foo (iter);
20 /* Access to arr_base[iter].y should not be strength reduced, since
21 we have a memory mode including multiplication by 4. */
23 /* { dg-final { scan-tree-dump-times "MEM\[^;\]* \* 4" 1 "optimized" } } */
25 /* And original induction variable should be preserved. */
27 /* { dg-final { scan-tree-dump-times "int iter" 1 "optimized" } } */