aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-07-09 08:19:18 +0000
committerNick Clifton <nickc@redhat.com>2001-07-09 08:19:18 +0000
commit7e005732aa09aad97c790cab88d294aeed06eada (patch)
tree9411e3103de35962825513144f9ba3b719ddaeda /gas/testsuite
parent46712191470afb32ce078cfa49550f84a774973c (diff)
downloadgdb-7e005732aa09aad97c790cab88d294aeed06eada.zip
gdb-7e005732aa09aad97c790cab88d294aeed06eada.tar.gz
gdb-7e005732aa09aad97c790cab88d294aeed06eada.tar.bz2
Add .incbin pseudo op
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog6
-rw-r--r--gas/testsuite/gas/all/gas.exp2
-rw-r--r--gas/testsuite/gas/all/incbin.d17
-rw-r--r--gas/testsuite/gas/all/incbin.s5
4 files changed, 30 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 2208210..da080f8 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2001-07-08 Anders Norlander <anorland@synergenix.se>
+
+ * gas/all/gas.exp: Run incbin test.
+ * gas/all/incbin.s: New file.
+ * gas/all/incbin.d: New file.
+
2001-07-04 Richard Sandiford <rsandifo@redhat.com>
* gas/mips/elf-rel3.s: Add zero word to end of file.
diff --git a/gas/testsuite/gas/all/gas.exp b/gas/testsuite/gas/all/gas.exp
index 84118fa..796f105 100644
--- a/gas/testsuite/gas/all/gas.exp
+++ b/gas/testsuite/gas/all/gas.exp
@@ -156,6 +156,8 @@ if ![istarget *c54x*-*-*] then {
test_cond
}
+run_dump_test incbin
+
# FIXME: this is here cause of a bug in DejaGnu 1.1.1. When it is no longer
# in use, then this can be removed.
if [info exists errorInfo] then {
diff --git a/gas/testsuite/gas/all/incbin.d b/gas/testsuite/gas/all/incbin.d
new file mode 100644
index 0000000..096506a
--- /dev/null
+++ b/gas/testsuite/gas/all/incbin.d
@@ -0,0 +1,17 @@
+#as: -I$srcdir/$subdir
+#objdump: -s -j .data
+#name: incbin
+
+# Test the incbin pseudo-op
+
+.*: .*
+
+Contents of section .data:
+ 0000 2e646174 610a2e69 6e636269 6e202269 .data..incbin "i
+ 0010 6e636269 6e2e7322 0a2e696e 6362696e ncbin.s"..incbin
+ 0020 2022696e 6362696e 2e73222c 302c3238 "incbin.s",0,28
+ 0030 0a2e696e 6362696e 2022696e 6362696e ..incbin "incbin
+ 0040 2e73222c 31352c39 0a2e7032 616c6967 .s",15,9..p2alig
+ 0050 6e20340a 2e646174 610a2e69 6e636269 n 4..data..incbi
+ 0060 6e202269 6e636269 6e2e7322 0a2e696e n "incbin.s"..in
+ 0070 696e6362 696e2e73 22000000 00000000 incbin.s".......
diff --git a/gas/testsuite/gas/all/incbin.s b/gas/testsuite/gas/all/incbin.s
new file mode 100644
index 0000000..850c89b
--- /dev/null
+++ b/gas/testsuite/gas/all/incbin.s
@@ -0,0 +1,5 @@
+.data
+.incbin "incbin.s"
+.incbin "incbin.s",0,28
+.incbin "incbin.s",15,9
+.p2align 4