summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/ppc-negeq0-1.c
blob: 37d10bc5b682f94a14f374e3bb2b4e93ab97711e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-O2" } */

int foo(int x)
{
  return -(x == 0);
}

int bar(int x)
{
  int t = __builtin_clz(x);
  return -(t>>5);
}

/* { dg-final { scan-assembler-not "cntlzw" } } */