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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [asm-4.c] - Blame information for rev 750

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "" } */
3
 
4
int main()
5
{
6
  int x, y, z;
7
 
8
  asm volatile ("test0 X%0Y%[arg]Z" : [arg] "=g" (x));
9
  asm volatile ("test1 X%[out]Y%[in]Z" : [out] "=g" (y) : [in] "0"(y));
10
  asm volatile ("test2 X%a0Y%a[arg]Z" : : [arg] "p" (&z));
11
  asm volatile ("test3 %[in]" : [inout] "=g"(x) : "[inout]" (x), [in] "g" (y));
12
}
13
 
14
/* ??? Someone explain why the back reference dosn't work.  */
15
/* { dontdg-final { scan-assembler "test0 X(.*)Y\1Z" } } */
16
/* { dontdg-final { scan-assembler "test1 X(.*)Y\1Z" } } */
17
/* { dontdg-final { scan-assembler "test2 X(.*)Y\1Z" } } */

powered by: WebSVN 2.1.0

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