aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/wmul-3.c
blob: 87eba740142a80a1dc1979b4e79d9272a839e7b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */
/* { dg-require-effective-target arm_dsp } */
/* { dg-options "-O" } */

int
foo (int a, int b)
{
  return (short) a * (short) b;
}

/* { dg-final { scan-assembler-times "smulbb" 1 } } */