aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/aarch64/cmp-1.c
blob: 4c082b484ab81e3a9d4f4bdeae6d1d075f29bb98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-O2" } */

int f(int a, int b)
{
  if(a<b)
    return 1;
  if(a>b)
    return -1;
  return 0;
}

/* We should optimize away the second cmp. */
/* { dg-final { scan-assembler-times "cmp\tw" 1 } } */