From b0e28b39b7de5e36bb162657c3b62ba6349ba4b2 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Fri, 29 Jan 2010 16:47:55 +0000 Subject: gas/testsuite/ * gas/arm/dis-data.d: Update test name. Do not expect .word output. * gas/arm/dis-data2.d, gas/arm/dis-data2.s, gas/arm/dis-data3.d, gas/arm/dis-data3.s: New tests. opcodes/ * opcodes/arm-dis.c (struct arm_private_data): New. (print_insn_coprocessor, print_insn_arm): Update to use struct arm_private_data. (is_mapping_symbol, get_map_sym_type): New functions. (get_sym_code_type): Check the symbol's section. Do not check mapping symbols. (print_insn): Default to disassembling ARM mode code. Check for mapping symbols separately from other symbols. Use struct arm_private_data. --- gas/testsuite/ChangeLog | 7 +++++++ gas/testsuite/gas/arm/dis-data.d | 8 ++++---- gas/testsuite/gas/arm/dis-data2.d | 10 ++++++++++ gas/testsuite/gas/arm/dis-data2.s | 8 ++++++++ gas/testsuite/gas/arm/dis-data3.d | 11 +++++++++++ gas/testsuite/gas/arm/dis-data3.s | 8 ++++++++ 6 files changed, 48 insertions(+), 4 deletions(-) create mode 100644 gas/testsuite/gas/arm/dis-data2.d create mode 100644 gas/testsuite/gas/arm/dis-data2.s create mode 100644 gas/testsuite/gas/arm/dis-data3.d create mode 100644 gas/testsuite/gas/arm/dis-data3.s (limited to 'gas/testsuite') diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index ffd0c49..b525810 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2010-01-29 Daniel Jacobowitz + + * gas/arm/dis-data.d: Update test name. Do not expect + .word output. + * gas/arm/dis-data2.d, gas/arm/dis-data2.s, + gas/arm/dis-data3.d, gas/arm/dis-data3.s: New tests. + 2010-01-29 Nick Clifton PR 11136 diff --git a/gas/testsuite/gas/arm/dis-data.d b/gas/testsuite/gas/arm/dis-data.d index 9715453..40ca770 100644 --- a/gas/testsuite/gas/arm/dis-data.d +++ b/gas/testsuite/gas/arm/dis-data.d @@ -1,10 +1,10 @@ -# name: Data disassembler test +# name: Data disassembler test (no symbols) # skip: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix* # objdump: -dr --prefix-addresses --show-raw-insn .*: +file format .*arm.* Disassembly of section \.text: -0x00000000 20010000 .word 0x20010000 -0x00000004 000000f9 .word 0x000000f9 -0x00000008 00004cd5 .word 0x00004cd5 +0x00000000 20010000 andcs r0, r1, r0 +0x00000004 000000f9 strdeq r0, \[r0\], -r9 +0x00000008 00004cd5 ldrdeq r4, \[r0\], -r5 diff --git a/gas/testsuite/gas/arm/dis-data2.d b/gas/testsuite/gas/arm/dis-data2.d new file mode 100644 index 0000000..ef7bb81 --- /dev/null +++ b/gas/testsuite/gas/arm/dis-data2.d @@ -0,0 +1,10 @@ +# name: Data disassembler test (function symbol) +# skip: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix* +# objdump: -dr --prefix-addresses --show-raw-insn + +.*: +file format .*arm.* + +Disassembly of section \.text: +00000000
20010000 andcs r0, r1, r0 +00000004 000000f9 strdeq r0, \[r0\], -r9 +00000008 00004cd5 ldrdeq r4, \[r0\], -r5 diff --git a/gas/testsuite/gas/arm/dis-data2.s b/gas/testsuite/gas/arm/dis-data2.s new file mode 100644 index 0000000..30eaa67 --- /dev/null +++ b/gas/testsuite/gas/arm/dis-data2.s @@ -0,0 +1,8 @@ +.syntax unified +.type main, %function +.globl main +main: +.word 0x20010000 +.word 0x000000f9 +.word 0x00004cd5 + diff --git a/gas/testsuite/gas/arm/dis-data3.d b/gas/testsuite/gas/arm/dis-data3.d new file mode 100644 index 0000000..e33159b --- /dev/null +++ b/gas/testsuite/gas/arm/dis-data3.d @@ -0,0 +1,11 @@ +# name: Data disassembler test (with mapping symbol) +# skip: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix* +# objdump: -dr --prefix-addresses --show-raw-insn + +.*: +file format .*arm.* + +Disassembly of section \.text: +00000000
20010000 .word 0x20010000 +00000004 000000f9 .word 0x000000f9 +00000008 00004cd5 .word 0x00004cd5 +0000000c e1a00000 nop ; \(mov r0, r0\) diff --git a/gas/testsuite/gas/arm/dis-data3.s b/gas/testsuite/gas/arm/dis-data3.s new file mode 100644 index 0000000..73da9b4 --- /dev/null +++ b/gas/testsuite/gas/arm/dis-data3.s @@ -0,0 +1,8 @@ +.syntax unified +.type main, %function +.globl main +main: +.word 0x20010000 +.word 0x000000f9 +.word 0x00004cd5 +nop -- cgit v1.1