URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
|
|
/* Test that asm with no outputs are treated as volatile. */
|
/* Test that asm with no outputs are treated as volatile. */
|
|
|
void f(int x)
|
void f(int x)
|
{
|
{
|
__asm__ ("extended asm not discarded" : : "r" (x));
|
__asm__ ("extended asm not discarded" : : "r" (x));
|
}
|
}
|
|
|
void g (void)
|
void g (void)
|
{
|
{
|
__asm__ ("simple asm not discarded");
|
__asm__ ("simple asm not discarded");
|
}
|
}
|
/* { dg-final { scan-assembler "extended asm not discarded" } } */
|
/* { dg-final { scan-assembler "extended asm not discarded" } } */
|
/* { dg-final { scan-assembler "simple asm not discarded" } } */
|
/* { dg-final { scan-assembler "simple asm not discarded" } } */
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.