URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 313 |
Rev 338 |
/* Check that %? in inline asm expands to nothing. */
|
/* Check that %? in inline asm expands to nothing. */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O2" } */
|
/* { dg-options "-O2" } */
|
/* { dg-require-effective-target arm32 } */
|
/* { dg-require-effective-target arm32 } */
|
int b;
|
int b;
|
int foo(int a)
|
int foo(int a)
|
{
|
{
|
if (a)
|
if (a)
|
b = 42;
|
b = 42;
|
asm ("test%?me":"=r"(a):"0"(a));
|
asm ("test%?me":"=r"(a):"0"(a));
|
return a;
|
return a;
|
}
|
}
|
/* { dg-final { scan-assembler "testme" } } */
|
/* { dg-final { scan-assembler "testme" } } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.