OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [ext/] [asm8.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
/* { dg-do compile } */
2
 
3
/* Test that asm with no outputs are treated as volatile.  */
4
 
5
void f(int x)
6
{
7
  __asm__ ("extended asm not discarded" : : "r" (x));
8
}
9
 
10
void g (void)
11
{
12
  __asm__ ("simple asm not discarded");
13
}
14
/* { dg-final { scan-assembler "extended asm not discarded" } } */
15
/* { dg-final { scan-assembler "simple asm not discarded" } } */
16
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.