aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2010-09-09 10:37:48 +0000
committerNick Clifton <nickc@redhat.com>2010-09-09 10:37:48 +0000
commit6815ee43d5b188f48aa968c02cbce17e4ce5d6f3 (patch)
treeedb651d4df7673262a725e197460ecb6fcd5f6f6 /gas
parentb7807392f042c1bb9f3acdc73c285aa138fd8cb1 (diff)
downloadgdb-6815ee43d5b188f48aa968c02cbce17e4ce5d6f3.zip
gdb-6815ee43d5b188f48aa968c02cbce17e4ce5d6f3.tar.gz
gdb-6815ee43d5b188f48aa968c02cbce17e4ce5d6f3.tar.bz2
PR gas/11931
* gas/mn10300/pr11931.s: New file: Test case. * gas/mn10300/pr11931.d: New file: Expected output. * gas/mn10300/basic.exp: Run the new test.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog7
-rw-r--r--gas/testsuite/gas/mn10300/basic.exp1
-rw-r--r--gas/testsuite/gas/mn10300/pr11931.d13
-rw-r--r--gas/testsuite/gas/mn10300/pr11931.s17
4 files changed, 38 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 8d50f3c..4e62036 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2010-09-09 Nick Clifton <nickc@redhat.com>
+
+ PR gas/11931
+ * gas/mn10300/pr11931.s: New file: Test case.
+ * gas/mn10300/pr11931.d: New file: Expected output.
+ * gas/mn10300/basic.exp: Run the new test.
+
2010-09-09 Tejas Belagod <tejas.belagod@arm.com>
* gas/arm/addsw-bad.s: New file.
diff --git a/gas/testsuite/gas/mn10300/basic.exp b/gas/testsuite/gas/mn10300/basic.exp
index 0731970..2d7d89e 100644
--- a/gas/testsuite/gas/mn10300/basic.exp
+++ b/gas/testsuite/gas/mn10300/basic.exp
@@ -1806,4 +1806,5 @@ if [istarget mn10300*-*-*] then {
run_dump_test "am33-2"
run_dump_test "relax"
+ run_dump_test "pr11931"
}
diff --git a/gas/testsuite/gas/mn10300/pr11931.d b/gas/testsuite/gas/mn10300/pr11931.d
new file mode 100644
index 0000000..682154c
--- /dev/null
+++ b/gas/testsuite/gas/mn10300/pr11931.d
@@ -0,0 +1,13 @@
+#objdump: -dr --prefix-address --show-raw-insn
+#name: PR11973
+
+.*: +file format.*elf32-[am3|mn10300].*
+
+Disassembly of section .text:
+#...
+0+0100.*
+0+0103 <SomeProc_40000100\+0x3> dd 00 00 00 00 80 04[ ]+call.*
+#...
+0+0200.*
+0+0203 <SomeProc_40000200\+0x3> dd 00 00 00 00 80 04[ ]+call.*
+#pass
diff --git a/gas/testsuite/gas/mn10300/pr11931.s b/gas/testsuite/gas/mn10300/pr11931.s
new file mode 100644
index 0000000..df8534f
--- /dev/null
+++ b/gas/testsuite/gas/mn10300/pr11931.s
@@ -0,0 +1,17 @@
+ .org 0x00000000
+ _baseAddress:
+ .equ _base40,_baseAddress
+ .equ _base7B,_baseAddress+0x3B000000
+ .equ sub_7BC01234,_base7B+0xC01234
+
+ .org 0x00000100
+ SomeProc_40000100:
+ mov 0x123, D0
+ call sub_7BC01234, [D2], 0x04
+
+
+ .org 0x00000200
+ SomeProc_40000200:
+ mov 0x123, D0
+ call sub_7BC01234, [D2], 0x04
+ call SomeProc_40000100, [D2], 0x04