aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/arm/pr42835.c
blob: 867dd0287f1a14314a480dd46e2d0fbaeb19b230 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-mthumb -Os -fno-tree-tail-merge" }  */
/* { dg-require-effective-target arm_thumb2_ok } */

int foo(int *p, int i)
{
  return( (i < 0 && *p == 1)
	  || (i > 0 && *p == 2) );
}

/* { dg-final { scan-assembler-times "movne\[\\t \]*r.,\[\\t \]*#" 1 } } */
/* { dg-final { scan-assembler-times "moveq\[\\t \]*r.,\[\\t \]*#" 1 } } */