aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/sparc/setcc-8.c
blob: 4e0e5929696f6a41d5b075407e08db8be18d8562 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile } */
/* { dg-require-effective-target lp64 } */
/* { dg-options "-O1 -mvis3" } */

long foo1 (long a, long i)
{
  return a + (i != 0);
}

long foo3 (long a, long b, long i)
{
  return a + b + (i != 0);
}

/* { dg-final { scan-assembler-times "addxc\t%" 2 } } */
/* { dg-final { scan-assembler-times "cmp\t%" 2 } } */
/* { dg-final { scan-assembler-not "add\t%" } } */