1 /* PR rtl-optimization/56605 */
2 /* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
3 /* { dg-skip-if "" { powerpc*-*-darwin* } } */
4 /* { dg-require-effective-target powerpc_vsx_ok } */
5 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power7" } } */
6 /* { dg-options "-O3 -mvsx -mcpu=power7 -fno-unroll-loops -fdump-rtl-combine" } */
7 
foo(short * __restrict sb,int * __restrict ia)8 void foo (short* __restrict sb, int* __restrict ia)
9 {
10   int i;
11   for (i = 0; i < 4000; i++)
12     ia[i] = (int) sb[i];
13 }
14 
15 /* { dg-final { scan-rtl-dump-times "\\\(compare:CC \\\(zero_extend:DI \\\(reg:SI" 1 "combine" } } */
16 
17