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-options "-O3 -mvsx -mdejagnu-cpu=power7 -fno-unroll-loops -fdump-rtl-combine" } */
6
foo(short * __restrict sb,int * __restrict ia)7 void foo (short* __restrict sb, int* __restrict ia)
8 {
9 int i;
10 for (i = 0; i < 4000; i++)
11 ia[i] = (int) sb[i];
12 }
13
14 /* { dg-final { scan-rtl-dump-times "\\\(compare:CC \\\((?:and|zero_extend):DI \\\(reg:\[SD\]I" 1 "combine" } } */
15
16