2002-03-26 18:59:00 +01:00
|
|
|
/* ARM and Thumb asm statements should be able to access the constant
|
|
|
|
pool. */
|
2003-02-28 14:45:31 +01:00
|
|
|
/* { dg-do compile { target arm*-*-* strongarm*-*-* xscale*-*-*} } */
|
2002-03-26 18:59:00 +01:00
|
|
|
extern unsigned x[];
|
|
|
|
unsigned *trapTable()
|
|
|
|
{
|
|
|
|
unsigned *i;
|
|
|
|
|
2002-04-04 11:35:01 +02:00
|
|
|
__asm__ volatile("ldr %0,%1" : "=r"(i) : "m"(x[0]));
|
2002-03-26 18:59:00 +01:00
|
|
|
|
|
|
|
return i;
|
|
|
|
}
|
|
|
|
|