Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-lim-1.c
blob4ee704969aae67f11c047f72aa7633a7e4ad1823
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-lim2" } */
4 /* This is a variant that does cause fold to place a cast to
5 int before testing bit 1. */
7 void
8 quantum_toffoli (int control1, int control2, int target,
9 unsigned long *state, int size)
11 int i;
13 for(i=0; i<size; i++)
15 if (state[i] & ((unsigned long) 1 << control1))
16 if (state[i] & ((unsigned long) 1 << control2))
17 state[i] ^= ((unsigned long) 1 << target);
21 /* { dg-final { scan-tree-dump-times "1 <<" 3 "lim2" } } */