* gcc.dg/arm-asm.c: New test.

From-SVN: r51390
This commit is contained in:
Richard Earnshaw 2002-03-26 17:59:00 +00:00 committed by Richard Earnshaw
parent 56fbb855b6
commit fc4a714bd5
2 changed files with 17 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2002-03-26 Richard Earnshaw <rearnsha@arm.com>
* gcc.dg/arm-asm.c: New test.
2002-03-26 Andrew Cagney <ac131313@redhat.com>
* gcc.dg/Wswitch-enum.c: New test.

View File

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