Debian Codegraph @

gcc/testsuite/gcc.target/arm/wmul-6.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3 /* { dg-require-effective-target arm_dsp } */
4
5 long long
6 foo (long long a, unsigned char *b, signed char *c)
7 {
8 return a + (long long)*b * (long long)*c;
9 }
10
11 /* After zero-extending B and sign-extending C to [HS]imode, either
12 signed-widening multiply will do. */
13 /* { dg-final { scan-assembler {smlal(?:bb)?} } } */