gcc/
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-lim-2.c
blob2106b62323fbbcc93c6da6c57dfddf2aab1973f9
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-lim1" } */
4 /* This is a variant that doesn't cause fold to place a cast to
5 int before testing bit 1. */
7 void
8 quantum_toffoli(int control1, int control2, int target, int *state,
9 int size)
11 int i;
13 for(i=0; i<size; i++)
15 if (state[i] & ( 1 << control1))
16 if (state[i] & ( 1 << control2))
17 state[i] ^= ( 1 << target);
21 /* { dg-final { scan-tree-dump-times "1 <<" 3 "lim1" } } */
22 /* { dg-final { cleanup-tree-dump "lim1" } } */