aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/arm-asm.c
diff options
context:
space:
mode:
authorRichard Earnshaw <rearnsha@arm.com>2002-04-04 09:35:01 +0000
committerRichard Earnshaw <rearnsha@gcc.gnu.org>2002-04-04 09:35:01 +0000
commit31956228bd8f5e36a4c1a679dc67a14b72112429 (patch)
tree0942d917037072849d0d184ae453b97d4cb42ed3 /gcc/testsuite/gcc.dg/arm-asm.c
parent2801df0ed6e64b45fbc6fd9a93ad36d7a73496f2 (diff)
downloadgcc-31956228bd8f5e36a4c1a679dc67a14b72112429.zip
gcc-31956228bd8f5e36a4c1a679dc67a14b72112429.tar.gz
gcc-31956228bd8f5e36a4c1a679dc67a14b72112429.tar.bz2
arm-asm.c: Run this test on ARM chips, not SPARC.
* gcc.dg/arm-asm.c: Run this test on ARM chips, not SPARC. Use __asm__ so that it works correctly even if -ansi -pedantic-errors. From-SVN: r51851
Diffstat (limited to 'gcc/testsuite/gcc.dg/arm-asm.c')
-rw-r--r--gcc/testsuite/gcc.dg/arm-asm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/arm-asm.c b/gcc/testsuite/gcc.dg/arm-asm.c
index d64620c..083682d 100644
--- a/gcc/testsuite/gcc.dg/arm-asm.c
+++ b/gcc/testsuite/gcc.dg/arm-asm.c
@@ -1,12 +1,12 @@
/* ARM and Thumb asm statements should be able to access the constant
pool. */
-/* { dg-do compile { target sparc*-*-* } } */
+/* { dg-do compile { target arm*-*-* } } */
extern unsigned x[];
unsigned *trapTable()
{
unsigned *i;
- asm volatile("ldr %0,%1" : "=r"(i) : "m"(x[0]));
+ __asm__ volatile("ldr %0,%1" : "=r"(i) : "m"(x[0]));
return i;
}