URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
/* Make sure that gcc understands that an in/out operand is a use as well
|
/* Make sure that gcc understands that an in/out operand is a use as well
|
as a def. */
|
as a def. */
|
|
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O -fdump-tree-optimized" } */
|
/* { dg-options "-O -fdump-tree-optimized" } */
|
|
|
void f()
|
void f()
|
{
|
{
|
int i = 42;
|
int i = 42;
|
int j = 63;
|
int j = 63;
|
|
|
asm ("": "=m"(i), "+r"(j) : "m"(i));
|
asm ("": "=m"(i), "+r"(j) : "m"(i));
|
}
|
}
|
|
|
/* { dg-final { scan-tree-dump-times "42" 1 "optimized" } } */
|
/* { dg-final { scan-tree-dump-times "42" 1 "optimized" } } */
|
/* { dg-final { scan-tree-dump-times "63" 1 "optimized" } } */
|
/* { dg-final { scan-tree-dump-times "63" 1 "optimized" } } */
|
/* { dg-final { cleanup-tree-dump "optimized" } } */
|
/* { dg-final { cleanup-tree-dump "optimized" } } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.