1 /* Use ADDS with a scratch, rather than CMN */ 2 /* { dg-options "-mthumb -Os" } */ 3 /* { dg-require-effective-target arm_thumb2_ok } */ 4 /* { dg-final { scan-assembler "adds" } } */ 5 /* { dg-final { scan-assembler-not "cmn" } } */ 6 7 void foo1(int); bar5(int x)8void bar5(int x) 9 { 10 if (x == -1) 11 foo1(x); 12 } 13