Small ChangeLog tweak.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr42246.c
blob163f2b4a638c7e3a2c116decb7b016d3d84969b6
1 /* { dg-do compile { target powerpc*-*-* ia64-*-* i?86-*-* x86_64-*-* } } */
2 /* { dg-options "-O2 -fselective-scheduling -fsel-sched-pipelining -fsel-sched-pipelining-outer-loops" } */
4 typedef enum
6 empty = 0, pawn = 1, knight = 2, king = 3, bishop = 5, rook = 6, queen = 7
8 PIECE;
9 extern int p_values[15];
10 extern int *last[65];
11 int
12 Quiesce (int alpha, int beta, int wtm, int ply)
14 register int initial_alpha, value, delta;
15 register int *goodmv, *movep, moves = 0, *sortv, temp;
16 for (movep = last[ply - 1]; movep < last[ply]; movep++)
17 if (p_values[(((*movep) >> 15) & 7) + 7] +
18 p_values[(((*movep) >> 18) & 7) + 7] >= delta)
20 register int done;
21 register int *end = last[ply - 1] + moves - 1;
24 done = 1;
25 movep = last[ply - 1];
26 for (; movep < end; movep++, sortv++)
27 if (*sortv < *(sortv + 1))
29 *(movep + 1) = temp;
30 done = 0;
33 while (!done);