2018-03-08 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr60137.c
blob41a4fb212d13ef94fcae0be7a4a8ba6001cb8676
1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-skip-if "" { powerpc*-*-darwin* } } */
3 /* { dg-require-effective-target powerpc_p8vector_ok } */
4 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power8" } } */
5 /* { dg-options "-mcpu=power8 -O3 -mno-vsx" } */
7 /* target/60137, compiler got a 'could not split insn error'. */
9 extern int target_flags;
10 extern char fixed_regs[53];
11 extern char call_used_regs[53];
13 void init_reg_sets_1(void)
15 int i;
16 for (i = 0; i < 53; i++)
17 fixed_regs[i] = call_used_regs[i] = (call_used_regs[i] &((target_flags & 0x02000000) ? 2 : 1)) != 0;