1 /* PR rtl-optimization/56605 */
2 /* { dg-do compile { target { powerpc64-*-* && lp64 } } } */
3 /* { dg-options "-O3 -mvsx -mcpu=power7 -fno-unroll-loops -fdump-rtl-loop2_doloop" } */
4
foo(short * __restrict sb,int * __restrict ia)5 void foo (short* __restrict sb, int* __restrict ia)
6 {
7 int i;
8 for (i = 0; i < 4000; i++)
9 ia[i] = (int) sb[i];
10 }
11
12 /* { dg-final { scan-rtl-dump-times "\\\(compare:CC \\\(subreg:SI \\\(reg:DI" 1 "loop2_doloop" } } */
13 /* { dg-final { cleanup-rtl-dump "loop2_doloop" } } */
14