URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 322 |
Rev 338 |
/* Test generation of mulhhw on 440. */
|
/* Test generation of mulhhw 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 "mulhhw " } } */
|
/* { dg-final { scan-assembler "mulhhw " } } */
|
|
|
int
|
int
|
f(int b, int c)
|
f(int b, int c)
|
{
|
{
|
int a = (b >> 16) * (c >> 16);
|
int a = (b >> 16) * (c >> 16);
|
return a;
|
return a;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.