aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'gas/testsuite')
-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