1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-lim" } */
4 /* This is a variant that doesn't cause fold to place a cast to
5 int before testing bit 1. */
8 quantum_toffoli(int control1, int control2, int target, int *state,
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 "lim" } } */
22 /* { dg-final { cleanup-tree-dump "lim" } } */