aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/arm/minmax_minus.c
blob: 906342a87cfe7f47b56b61363775ae5c88a2fdc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-require-effective-target arm_cond_exec } */
/* { dg-options "-O2" } */

#define MAX(a, b) (a > b ? a : b)
int
foo (int a, int b, int c)
{
  return c - MAX (a, b);
}

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