annotate gcc/testsuite/gcc.dg/tree-ssa/ssa-lim-1.c @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-do compile } */
kono
parents:
diff changeset
2 /* { dg-options "-O -fdump-tree-lim2" } */
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 /* This is a variant that does cause fold to place a cast to
kono
parents:
diff changeset
5 int before testing bit 1. */
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 void
kono
parents:
diff changeset
8 quantum_toffoli (int control1, int control2, int target,
kono
parents:
diff changeset
9 unsigned long *state, int size)
kono
parents:
diff changeset
10 {
kono
parents:
diff changeset
11 int i;
kono
parents:
diff changeset
12
kono
parents:
diff changeset
13 for(i=0; i<size; i++)
kono
parents:
diff changeset
14 {
kono
parents:
diff changeset
15 if (state[i] & ((unsigned long) 1 << control1))
kono
parents:
diff changeset
16 if (state[i] & ((unsigned long) 1 << control2))
kono
parents:
diff changeset
17 state[i] ^= ((unsigned long) 1 << target);
kono
parents:
diff changeset
18 }
kono
parents:
diff changeset
19 }
kono
parents:
diff changeset
20
kono
parents:
diff changeset
21 /* { dg-final { scan-tree-dump-times "1 <<" 3 "lim2" } } */