mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-02 12:10:08 +08:00
* gcc.dg/arm-asm.c: New test.
From-SVN: r51390
This commit is contained in:
parent
56fbb855b6
commit
fc4a714bd5
@ -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.
|
||||
|
13
gcc/testsuite/gcc.dg/arm-asm.c
Normal file
13
gcc/testsuite/gcc.dg/arm-asm.c
Normal 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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user