2018-04-30 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-lim-2.c
blob37639cdbaf765443675f8790e3325998c4d718b6
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-lim2" } */
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 "lim2" } } */