URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 322 |
Rev 338 |
/* Test generation of nmaclhw. on 405. */
|
/* Test generation of nmaclhw. on 405. */
|
/* 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=405" } */
|
/* { dg-options "-O2 -mcpu=405" } */
|
/* { dg-skip-if "other options override -mcpu=405" { ! powerpc_405_nocache } { "*" } { "" } } */
|
/* { dg-skip-if "other options override -mcpu=405" { ! powerpc_405_nocache } { "*" } { "" } } */
|
|
|
/* { 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.