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 0a0dba1475c913d25dcd2ef9332ad13745264468..93004a98f16075efb5db652816deb4372f8764d3 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 94a5cf9a11b5cc50a3eb55e5c0ddd5af2343b56d..01e06da92382dcc99cf6e9a9d09f535e62063cf6 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