1179189Sjb/* Test generation of mulhhwu on 440.  */
2179189Sjb/* Origin: Joseph Myers <joseph@codesourcery.com> */
3179189Sjb/* { dg-do compile } */
4179189Sjb/* { dg-require-effective-target ilp32 } */
5179189Sjb/* { dg-options "-O2 -mcpu=440" } */
6179189Sjb
7179189Sjb/* { dg-final { scan-assembler "mulhhwu " } } */
8179189Sjb
9179189Sjbunsigned int
10179189Sjbf(unsigned int b, unsigned int c)
11179189Sjb{
12179189Sjb  unsigned int a = (b >> 16) * (c >> 16);
13179189Sjb  return a;
14179189Sjb}
15179189Sjb