1254661Semaste/* Test generation of maclhw on 405. */ 2254661Semaste/* Origin: Joseph Myers <joseph@codesourcery.com> */ 3254661Semaste/* { dg-do compile } */ 4254661Semaste/* { dg-require-effective-target ilp32 } */ 5254661Semaste/* { dg-options "-O2 -mcpu=405" } */ 6254661Semaste/* { dg-skip-if "other options override -mcpu=405" { ! powerpc_405_nocache } { "*" } { "" } } */ 7254661Semaste 8254661Semaste/* { dg-final { scan-assembler "maclhw " } } */ 9254661Semaste 10254661Semasteint 11254661Semastef(int a, int b, int c) 12254661Semaste{ 13254661Semaste a += (short)b * (short)c; 14254661Semaste return a; 15254661Semaste} 16254661Semaste