aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/arm/thumb2-cond-cmp-2.c
blob: 17d9a8f76d6bc4db228bb1e7074fc829aa98aa90 (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 "cmpeq" } } */

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