arm-asm.c: Run this test on ARM chips, not SPARC.
authorRichard Earnshaw <rearnsha@arm.com>
Thu, 4 Apr 2002 09:35:01 +0000 (09:35 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Thu, 4 Apr 2002 09:35:01 +0000 (09:35 +0000)
* 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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/arm-asm.c

index ad1d876f33bc55d21b784909971234b07af84666..1d555a26ae9aba8c989754bcee8d8985d97d0ea6 100644 (file)
@@ -1,3 +1,8 @@
+2002-04-04  Richard Earnshaw  <rearnsha@arm.com>
+
+       * 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.
+
 2002-04-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * gcc.misc-tests/linkage.exp: Update last change to handle
index d64620c599ff94fd6e8617eff9448f4a23d403cb..083682dca738c1ddaae29a22f5c15a55e0d97f8e 100644 (file)
@@ -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;
 }