aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/powerpc/pr60137.c
blob: 4777a53829d4cb16d9ab0e0fc17a66d1ff9cf523 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */
/* { dg-require-effective-target powerpc_p8vector_ok } */
/* { dg-options "-mcpu=power8 -O3 -mno-vsx" } */

/* target/60137, compiler got a 'could not split insn error'.  */

extern int target_flags;
extern char fixed_regs[53];
extern char call_used_regs[53];

void init_reg_sets_1(void)
{
  int i;
  for (i = 0; i < 53; i++)
    fixed_regs[i] = call_used_regs[i] = (call_used_regs[i] &((target_flags & 0x02000000) ? 2 : 1)) != 0;
}