rt_gccstream/gcc/testsuite/gcc.target/powerpc/440-macchw-1.c

15 lines
321 B
C

/* Test generation of macchw on 440. */
/* Origin: Joseph Myers <joseph@codesourcery.com> */
/* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */
/* { dg-options "-O2 -mcpu=440" } */
/* { dg-final { scan-assembler "macchw " } } */
int
f(int a, int b, int c)
{
a += (short)b * (c >> 16);
return a;
}