2003-04-03 Philip Blundell <philb@gnu.org>
authorPhil Blundell <philb@gnu.org>
Thu, 3 Apr 2003 00:25:02 +0000 (00:25 +0000)
committerPhil Blundell <philb@gnu.org>
Thu, 3 Apr 2003 00:25:02 +0000 (00:25 +0000)
* gas/arm/offset.s: New test.
* gas/arm/arm.exp (run_errors_test): Run it.

gas/testsuite/ChangeLog
gas/testsuite/gas/arm/arm.exp
gas/testsuite/gas/arm/offset.s [new file with mode: 0644]

index 0a0dba1..93004a9 100644 (file)
@@ -1,3 +1,8 @@
+2003-04-03  Philip Blundell  <philb@gnu.org>
+
+       * gas/arm/offset.s: New test.
+       * gas/arm/arm.exp (run_errors_test): Run it.
+
 2003-04-02  Chris Demetriou  <cgd@broadcom.com>
 
        * gas/mips/ulh.d: Adjust for ulh and ulhu macro assembly changes.
index 94a5cf9..01e06da 100644 (file)
@@ -67,6 +67,8 @@ if {[istarget *arm*-*-*] || [istarget "xscale-*-*"]} then {
     if {[istarget *-*-elf*] || [istarget *-*-linux*]} then {
        run_dump_test "pic"
     }
+
+    gas_test "offset.s" "" $stdoptlist "OFFSET_IMM regression"
 }
 
 # Not all arm targets are bi-endian, so only run this test on ones
diff --git a/gas/testsuite/gas/arm/offset.s b/gas/testsuite/gas/arm/offset.s
new file mode 100644 (file)
index 0000000..ba3ecba
--- /dev/null
@@ -0,0 +1,5 @@
+@ test for OFFSET_IMM reloc against global symbols
+
+.globl foo
+foo: .word 0
+ldr r0, foo