aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/arm/arm.exp2
-rw-r--r--gas/testsuite/gas/arm/offset.s5
3 files changed, 12 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 0a0dba1..93004a9 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -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.
diff --git a/gas/testsuite/gas/arm/arm.exp b/gas/testsuite/gas/arm/arm.exp
index 94a5cf9..01e06da 100644
--- a/gas/testsuite/gas/arm/arm.exp
+++ b/gas/testsuite/gas/arm/arm.exp
@@ -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
index 0000000..ba3ecba
--- /dev/null
+++ b/gas/testsuite/gas/arm/offset.s
@@ -0,0 +1,5 @@
+@ test for OFFSET_IMM reloc against global symbols
+
+.globl foo
+foo: .word 0
+ldr r0, foo