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

unsigned long long
foo (unsigned long long a, unsigned char *b, unsigned short *c)
{
  return a + *b * *c;
}

/* After zero-extending both to SImode, either signed- or unsigned-widening
   multiply will do.  */
/* { dg-final { scan-assembler {[us]mlal} } } */