summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/thumb2-cmpneg2add-1.c
blob: d75f13aa0894e140b148f53a81d3880a381338cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* Use ADDS clobbering source operand, rather than CMN */
/* { dg-options "-mthumb -Os" } */
/* { dg-require-effective-target arm_thumb2_ok } */
/* { dg-final { scan-assembler "adds" } } */
/* { dg-final { scan-assembler-not "cmn" } } */

void foo1(void);
void bar5(int x)
{
  if (x == -15)
    foo1();
}