aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr65136.c
blob: eeb02f5777005d9197f102024b595bb84c91f5d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile { target int32plus } } */
/* { dg-options "-O2 -fdump-rtl-expand-details" } */

int foo(unsigned int cc )
{

  while ( cc >> 16 )
    {
      cc = (cc & 0xffff) + (cc >> 16);
    }

  return ( (unsigned short)(cc) ) == ((unsigned short)(-1));
}

/* { dg-final { scan-rtl-dump-not "_\[0-9\]* = 1;" "expand" } } */