Rebase.
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr52720.c
blob528aa161b13b43abf15ee98405295618127a9165
1 /* { dg-do compile } */
2 /* { dg-options "-march=k8-sse3" { target x86_64-*-* } } */
4 struct alu_bank_swizzle {
5 int hw_gpr[3][4];
6 int hw_cfile_addr[4];
7 };
8 static void init_bank_swizzle(struct alu_bank_swizzle *bs)
10 int i, cycle, component;
11 for (cycle = 0; cycle < 3; cycle++)
12 for (component = 0; component < 4; component++)
13 bs->hw_gpr[cycle][component] = -1;
14 for (i = 0; i < 4; i++)
15 bs->hw_cfile_addr[i] = -1;
17 int check_and_set_bank_swizzle(int max_slots, int *slots)
19 struct alu_bank_swizzle bs;
20 int i;
21 for (i = 0; i < max_slots; i++)
23 init_bank_swizzle(&bs);
24 if (slots[i])
25 check_vector(&bs);