1 2 3 4 5 6 7 8 9 10 11 12
/* Use ADDS with a scratch, 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(int); void bar5(int x) { if (x == -1) foo1(x); }