aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2007-10-04 17:05:37 +0000
committerNick Clifton <nickc@redhat.com>2007-10-04 17:05:37 +0000
commit38a57ae7a5cafb2eeca853494a6c2aa994efc956 (patch)
treecfb9b9ac767db4859052e315d77269ec398da808 /gas/testsuite
parent45d42143d489a6b7ee78fd118b573906c43ecb0b (diff)
downloadgdb-38a57ae7a5cafb2eeca853494a6c2aa994efc956.zip
gdb-38a57ae7a5cafb2eeca853494a6c2aa994efc956.tar.gz
gdb-38a57ae7a5cafb2eeca853494a6c2aa994efc956.tar.bz2
* read.c (potable): Add string8, string16, string32 and string64. Add bit size for stringer function.
(stringer_append_char): New. (stringer): Use stringer_append_char(). * config/obj-coff.c (obj_coff_ident): Add bit size for stringer function. * config/obj-elf.c (obj_elf_ident): Likewise. * config/tc-alpha.c (s_alpha_stringer): Likewise. * config/tc-dlx.c (dlx_pseudo_table): Likewise. * config/tc-hppa.c (pa_stringer): Likewise. * config/tc-ia64.c (md_pseudo_table, pseudo_opcode): Likewise. * config/tc-m68hc11.c (md_pseudo_table): Likewise. * config/tc-mcore.c (md_pseudo_table): Likewise. * config/tc-mips.c (mips_pseudo_table): Likewise. * config/tc-spu.c (md_pseudo_table): Likewise. * config/tc-s390.c (md_pseudo_table): Likewise. Replace '2' by '1'. * doc/as.texinfo (ABORT): Fix identing. (String): Document new string8, string16, string32, string64 functions. * NEWS: Mention the new feature. * testsuite/gas/all/gas.exp: Include new test "strings". * testsuite/gas/all/string.s: New * testsuite/gas/all/string.d: New.
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/string.d12
-rw-r--r--gas/testsuite/gas/all/string.s14
4 files changed, 34 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 7967a1a..f2cb037 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2007-10-04 Helge Deller <deller@gmx.de>
+
+ * gas/all/gas.exp: Include new test "strings".
+ * gas/all/string.s: New
+ * gas/all/string.d: New.
+
2007-10-01 Tristan Gingold <gingold@adacore.com>
* gas/ppc/altivec_xcoff.s: Do not use .machine pseudo-ops as it
diff --git a/gas/testsuite/gas/all/gas.exp b/gas/testsuite/gas/all/gas.exp
index 081c418..119eeb0 100644
--- a/gas/testsuite/gas/all/gas.exp
+++ b/gas/testsuite/gas/all/gas.exp
@@ -297,6 +297,8 @@ gas_test_error "weakref2.s" "" "e: would close weakref loop: e => a => b => c =>
gas_test_error "weakref3.s" "" "a: would close weakref loop: a => b => c => d => e => a"
gas_test_error "weakref4.s" "" "is already defined"
+run_dump_test string
+
load_lib gas-dg.exp
dg-init
dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/err-*.s $srcdir/$subdir/warn-*.s]] "" ""
diff --git a/gas/testsuite/gas/all/string.d b/gas/testsuite/gas/all/string.d
new file mode 100644
index 0000000..da6177d
--- /dev/null
+++ b/gas/testsuite/gas/all/string.d
@@ -0,0 +1,12 @@
+#objdump : -s -j .data -j "\$DATA\$"
+#name : .strings tests
+
+.*: .*
+
+Contents of section (\.data|\$DATA\$):
+ 0000 73747238 00000000 00000000 00000000 str8.*
+ 0010 7374726e 65773800 00000000 00000000 strnew8.*
+ 0020 (73007400 72003100 36000000 00000000|00730074 00720031 00360000 00000000).*
+ 0030 (33000000 32000000 00000000 00000000|00000033 00000032 00000000 00000000).*
+ 0040 (36000000 00000000 34000000 00000000|00000000 00000036 00000000 00000034).*
+#pass
diff --git a/gas/testsuite/gas/all/string.s b/gas/testsuite/gas/all/string.s
new file mode 100644
index 0000000..80743bb
--- /dev/null
+++ b/gas/testsuite/gas/all/string.s
@@ -0,0 +1,14 @@
+ .data
+ .string "str8"
+
+ .balign 16
+ .string8 "strnew8"
+
+ .balign 16
+ .string16 "str16"
+
+ .balign 16
+ .string32 "32"
+
+ .balign 16
+ .string64 "64"