From 6815ee43d5b188f48aa968c02cbce17e4ce5d6f3 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 9 Sep 2010 10:37:48 +0000 Subject: [PATCH] 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. --- gas/testsuite/ChangeLog | 7 +++++++ gas/testsuite/gas/mn10300/basic.exp | 1 + gas/testsuite/gas/mn10300/pr11931.d | 13 +++++++++++++ gas/testsuite/gas/mn10300/pr11931.s | 17 +++++++++++++++++ 4 files changed, 38 insertions(+) create mode 100644 gas/testsuite/gas/mn10300/pr11931.d create mode 100644 gas/testsuite/gas/mn10300/pr11931.s diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 8d50f3c222e..4e620364b3f 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2010-09-09 Nick Clifton + + 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 * gas/arm/addsw-bad.s: New file. diff --git a/gas/testsuite/gas/mn10300/basic.exp b/gas/testsuite/gas/mn10300/basic.exp index 07319701523..2d7d89e1548 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 00000000000..682154c253d --- /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 dd 00 00 00 00 80 04[ ]+call.* +#... +0+0200.* +0+0203 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 00000000000..df8534f771f --- /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 -- 2.30.2