summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/thumb2-mul-space.c
blob: 8cf0cb40f41822345c485c85ac01ea225f1942e8 (plain)
1
2
3
4
5
6
7
8
9
10
/* Use 16-bit multiply instruction in Thumb-2 mode when optimizing for
   size.  */
/* { dg-options "-mthumb -Os" }  */
/* { dg-require-effective-target arm_thumb2_ok } */
/* { dg-final { scan-assembler "muls" } } */

int f(int i, int j) 
{
  return i * j;
}