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] - Diff between revs 154 and 816

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 154 Rev 816
/* 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 { target arm*-*-* strongarm*-*-* xscale*-*-*} } */
/* { dg-do compile { target arm*-*-* strongarm*-*-* xscale*-*-*} } */
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.