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