aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/arm/thumb2-cond-cmp-1.c
blob: 45ab605e72ea725b2da4bf7c74e81b3690f6bc7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* Use conditional compare */
/* { dg-options "-O2" } */
/* { dg-skip-if "" { arm_thumb1_ok } } */
/* { dg-final { scan-assembler "cmpne" } } */

int f(int i, int j) 
{
  if ( (i == '+') || (j == '-') ) {
    return 1;
  } else {
    return 0;
  }
}