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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [arm-asm.c] - Blame information for rev 149

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

Line No. Rev Author Line
1 149 jeremybenn
/* ARM and Thumb asm statements should be able to access the constant
2
   pool.  */
3
/* { dg-do compile { target arm*-*-* strongarm*-*-* xscale*-*-*} } */
4
extern unsigned x[];
5
unsigned *trapTable()
6
{
7
  unsigned *i;
8
 
9
  __asm__ volatile("ldr %0,%1" : "=r"(i) : "m"(x[0]));
10
 
11
  return i;
12
}
13
 

powered by: WebSVN 2.1.0

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