PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / arm / wmul-bitfield-2.c
blob07ba9a84d113903d89fc3b12618d1bed7f0fc40e
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3 /* { dg-require-effective-target arm_dsp } */
5 struct bf
7 int a : 3;
8 unsigned int b : 15;
9 int c : 3;
12 long long
13 foo (long long a, struct bf b, struct bf c)
15 return a + b.b * c.c;
18 /* { dg-final { scan-assembler "smlalbb" } } */