]> gcc.gnu.org Git - gcc.git/commitdiff
* gcc.dg/arm-asm.c: New test.
authorRichard Earnshaw <rearnsha@arm.com>
Tue, 26 Mar 2002 17:59:00 +0000 (17:59 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Tue, 26 Mar 2002 17:59:00 +0000 (17:59 +0000)
From-SVN: r51390

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/arm-asm.c [new file with mode: 0644]

index 684ee9d8ec0d3247bf4fea41076aceca906fceb7..77204618d169a8f80e6ca7683f8d2f3c1eaecbdd 100644 (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.
diff --git a/gcc/testsuite/gcc.dg/arm-asm.c b/gcc/testsuite/gcc.dg/arm-asm.c
new file mode 100644 (file)
index 0000000..d64620c
--- /dev/null
@@ -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;
+}
+
This page took 0.089192 seconds and 5 git commands to generate.