aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2003-04-03 00:25:02 +0000
committerPhil Blundell <philb@gnu.org>2003-04-03 00:25:02 +0000
commit8fbf1ae5963208bdafb1e8e02446d2665be00410 (patch)
tree98a6600f4e6139ba3f352e28cfff571278d70789
parent4313689990b26e22b4e38d3ea02e8d963d61fc8b (diff)
downloadgdb-8fbf1ae5963208bdafb1e8e02446d2665be00410.zip
gdb-8fbf1ae5963208bdafb1e8e02446d2665be00410.tar.gz
gdb-8fbf1ae5963208bdafb1e8e02446d2665be00410.tar.bz2
2003-04-03 Philip Blundell <philb@gnu.org>
* gas/arm/offset.s: New test. * gas/arm/arm.exp (run_errors_test): Run it.
-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