URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
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;
|
}
|
}
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.