Mercurial > hg > CbC > CbC_gcc
view 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 |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O -fdump-tree-lim2" } */ /* This is a variant that does cause fold to place a cast to int before testing bit 1. */ void quantum_toffoli (int control1, int control2, int target, unsigned long *state, int size) { int i; for(i=0; i<size; i++) { if (state[i] & ((unsigned long) 1 << control1)) if (state[i] & ((unsigned long) 1 << control2)) state[i] ^= ((unsigned long) 1 << target); } } /* { dg-final { scan-tree-dump-times "1 <<" 3 "lim2" } } */