OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [ssa-lim-2.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O -fdump-tree-lim" } */
3
 
4
/* This is a variant that doesn't cause fold to place a cast to
5
   int before testing bit 1.  */
6
 
7
void
8
quantum_toffoli(int control1, int control2, int target, int *state,
9
int size)
10
{
11
  int i;
12
 
13
  for(i=0; i<size; i++)
14
    {
15
       if (state[i] & ( 1 << control1))
16
         if (state[i] & ( 1 << control2))
17
           state[i] ^= ( 1 << target);
18
    }
19
}
20
 
21
/* { dg-final { scan-tree-dump-times "1 <<" 3 "lim1" } } */
22
/* { dg-final { cleanup-tree-dump "lim\[1-2\]" } } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.