OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gcc.target/] [arm/] [asm.c] - Diff between revs 313 and 384

Only display areas with differences | Details | Blame | View Log

Rev 313 Rev 384
/* ARM and Thumb asm statements should be able to access the constant
/* ARM and Thumb asm statements should be able to access the constant
   pool.  */
   pool.  */
/* { dg-do compile } */
/* { dg-do compile } */
extern unsigned x[];
extern unsigned x[];
unsigned *trapTable()
unsigned *trapTable()
{
{
  unsigned *i;
  unsigned *i;
 
 
  __asm__ volatile("ldr %0,%1" : "=r"(i) : "m"(x[0]));
  __asm__ volatile("ldr %0,%1" : "=r"(i) : "m"(x[0]));
 
 
  return i;
  return i;
}
}
 
 
 
 

powered by: WebSVN 2.1.0

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