summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20090401-1.c
blob: a0058feb2df1bdf7d863740d910b5eeeca52eddf (plain)
1
2
3
4
5
6
7
8
9
10
11
/* PR rtl-optimization/39588 */
/* Testcase by Olivier ROUSSEL <olivier.roussel@cril.univ-artois.fr> */

#define lit_from_int(in) ((in<0)?(((-in)<<1)|1):(in<<1))

void init_clause(int *literals, int size, int *lits)
{
  int i;
  for(i=0; i < size; i++)
    lits[i] = lit_from_int(literals[i]);
}