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