PR c++/67273
[official-gcc.git] / gcc / testsuite / gcc.target / arm / thumb2-mul-space-2.c
blobb53df2fa12ae3e5b72b3ff4403a71d33b45ff7c2
1 /* In Thumb-2 mode, when optimizing for size, generate a "muls"
2 instruction and use the resulting condition flags rather than a
3 separate compare instruction. */
4 /* { dg-options "-mthumb -Os" } */
5 /* { dg-require-effective-target arm_thumb2_ok } */
6 /* { dg-final { scan-assembler "muls" } } */
7 /* { dg-final { scan-assembler-not "cmp" } } */
9 int x;
11 void f(int i, int j)
13 if (i * j < 0)
14 x = 1;