URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 322 |
Rev 384 |
/* Test generation of nmaclhw. on 440. */
|
/* Test generation of nmaclhw. on 440. */
|
/* Origin: Joseph Myers <joseph@codesourcery.com> */
|
/* Origin: Joseph Myers <joseph@codesourcery.com> */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-require-effective-target ilp32 } */
|
/* { dg-require-effective-target ilp32 } */
|
/* { dg-options "-O2 -mcpu=440" } */
|
/* { dg-options "-O2 -mcpu=440" } */
|
|
|
/* { dg-final { scan-assembler "nmaclhw\\. " } } */
|
/* { dg-final { scan-assembler "nmaclhw\\. " } } */
|
|
|
int
|
int
|
f(int a, int b, int c)
|
f(int a, int b, int c)
|
{
|
{
|
a -= (short)b * (short)c;
|
a -= (short)b * (short)c;
|
if (!a)
|
if (!a)
|
return 10;
|
return 10;
|
return a;
|
return a;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.