aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2010-01-29 16:47:55 +0000
committerDaniel Jacobowitz <drow@false.org>2010-01-29 16:47:55 +0000
commitb0e28b39b7de5e36bb162657c3b62ba6349ba4b2 (patch)
tree02a499b3e74a5d0fa333e35e8d40e8ddb6acc83b /gas
parent99b253c5147a1fbe848d5f797666a1b546d300de (diff)
downloadgdb-b0e28b39b7de5e36bb162657c3b62ba6349ba4b2.zip
gdb-b0e28b39b7de5e36bb162657c3b62ba6349ba4b2.tar.gz
gdb-b0e28b39b7de5e36bb162657c3b62ba6349ba4b2.tar.bz2
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.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog7
-rw-r--r--gas/testsuite/gas/arm/dis-data.d8
-rw-r--r--gas/testsuite/gas/arm/dis-data2.d10
-rw-r--r--gas/testsuite/gas/arm/dis-data2.s8
-rw-r--r--gas/testsuite/gas/arm/dis-data3.d11
-rw-r--r--gas/testsuite/gas/arm/dis-data3.s8
6 files changed, 48 insertions, 4 deletions
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 <dan@codesourcery.com>
+
+ * 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 <nickc@redhat.com>
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 <main> 20010000 andcs r0, r1, r0
+00000004 <main\+0x4> 000000f9 strdeq r0, \[r0\], -r9
+00000008 <main\+0x8> 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 <main> 20010000 .word 0x20010000
+00000004 <main\+0x4> 000000f9 .word 0x000000f9
+00000008 <main\+0x8> 00004cd5 .word 0x00004cd5
+0000000c <main\+0xc> 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