blob: 9d68f7c95ff84c4aa43dc1fc3cc7709aece550f2 [file] [log] [blame]
/* Test generation of mullhwu. on 440. */
/* Origin: Joseph Myers <joseph@codesourcery.com> */
/* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */
/* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=440" } } */
/* { dg-options "-O2 -mcpu=440" } */
/* { dg-final { scan-assembler "mullhwu\\. " } } */
unsigned int
f(unsigned int b, unsigned int c)
{
unsigned int a = (unsigned short)b * (unsigned short)c;
if (!a)
return 10;
return a;
}