aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr109834-1.c
blob: f2af18b0cd0327acfba0733b763bbfe2f515899b (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-optimized" } */

int f (char v)
{
  return __builtin_popcount((int)__builtin_bswap16(v));
}

/* We should be able to remove the bswap here as it does not matter
   for the popcount.  */
/* { dg-final { scan-tree-dump-not "bswap" "optimized"} } */