Simplify range-op shift mask generation
[official-gcc.git] / gcc / testsuite / gcc.target / arm / thumb2-cmpneg2add-1.c
blobd75f13aa0894e140b148f53a81d3880a381338cf
1 /* Use ADDS clobbering source operand, 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" } } */
7 void foo1(void);
8 void bar5(int x)
10 if (x == -15)
11 foo1();