1  /* Do not use 16-bit multiply instructions in Thumb-2 mode when
       2     optimizing for speed.  */
       3  /* { dg-options "-mthumb -O2" }  */
       4  /* { dg-require-effective-target arm_thumb2_ok } */
       5  /* { dg-final { scan-assembler-not "muls" } } */
       6  
       7  int f(int i, int j) 
       8  {
       9    return i * j;
      10  }
      11  
      12  int x;
      13  
      14  void g(int i, int j)
      15  {
      16    if (i * j < 0)
      17      x = 1;
      18  }
      19  
      20  int h(int i, int j)
      21  {
      22    i = i * j;
      23    if (i < 0)
      24      x = 1;
      25    return i;
      26  }
      27