PR gas/11931
authorNick Clifton <nickc@redhat.com>
Thu, 9 Sep 2010 10:37:48 +0000 (10:37 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 9 Sep 2010 10:37:48 +0000 (10:37 +0000)
        * gas/mn10300/pr11931.s: New file: Test case.
        * gas/mn10300/pr11931.d: New file: Expected output.
        * gas/mn10300/basic.exp: Run the new test.

gas/testsuite/ChangeLog
gas/testsuite/gas/mn10300/basic.exp
gas/testsuite/gas/mn10300/pr11931.d [new file with mode: 0644]
gas/testsuite/gas/mn10300/pr11931.s [new file with mode: 0644]

index 8d50f3c222e049293bd87883c004329b77998673..4e620364b3fbe9abb623c78fcce3eb75b1e1446f 100644 (file)
@@ -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.
index 07319701523bbc434fd5e001d20bf34cffd14139..2d7d89e1548658271c0815e22a6ab153a7d0c884 100644 (file)
@@ -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 (file)
index 0000000..682154c
--- /dev/null
@@ -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 (file)
index 0000000..df8534f
--- /dev/null
@@ -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