[Bug middle-end/52720] [4.7/4.8 Regression] internal compiler error: in try_move_mult_to_index

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Mar 26 12:46:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52720

--- Comment #4 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-03-26 12:44:33 UTC ---
Reduced testcase:

struct alu_bank_swizzle {
    int hw_gpr[3][4];
    int hw_cfile_addr[4];
};
static void init_bank_swizzle(struct alu_bank_swizzle *bs)
{
  int i, cycle, component;
  for (cycle = 0; cycle < 3; cycle++)
    for (component = 0; component < 4; component++)
      bs->hw_gpr[cycle][component] = -1;
  for (i = 0; i < 4; i++)
    bs->hw_cfile_addr[i] = -1;
}
int check_and_set_bank_swizzle(int max_slots, int *slots)
{
  struct alu_bank_swizzle bs;
  int i;
  for (i = 0; i < max_slots; i++)
    {
      init_bank_swizzle(&bs);
      if (slots[i])
        check_vector(&bs);
    }
}



More information about the Gcc-bugs mailing list