aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2005-04-01 14:17:17 +0000
committerNick Clifton <nickc@redhat.com>2005-04-01 14:17:17 +0000
commitd2c5f73ed772457d6e3b82d38abe007863ddca2c (patch)
treecc63ea9e267d2fd11b1abd7901f0bc36c40bb8df /gas/testsuite
parentce8d332a69fd042e0fa29d8c08050efafc1bffd0 (diff)
downloadgdb-d2c5f73ed772457d6e3b82d38abe007863ddca2c.zip
gdb-d2c5f73ed772457d6e3b82d38abe007863ddca2c.tar.gz
gdb-d2c5f73ed772457d6e3b82d38abe007863ddca2c.tar.bz2
Support the .f_floating, .d_floating, .g_floating and .h_floating directives
for the VAX target in order to be more compatible with the VAX MACRO assembler.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog11
-rw-r--r--gas/testsuite/gas/vax/flonum.d12
-rw-r--r--gas/testsuite/gas/vax/flonum.s12
-rw-r--r--gas/testsuite/gas/vax/vax.exp2
4 files changed, 33 insertions, 4 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 44bf28f..be44600 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,9 +1,12 @@
2005-04-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
- * gas/testsuite/gas/vax/elf-rel.d: Call gas with -k. Thanks to
- Matt Thomas for figuring out.
- * gas/testsuite/gas/vax/vax.exp: Run elf-rel.[sd] for NetBSD-ELF
- and Linux.
+ * gas/vax/flonum.s: New testcase: Encode some flonums.
+ * gas/vax/flonum.d: Expected result of new testcase.
+ * gas/vax/vax.exp: Call the new testcase.
+
+ * gas/vax/elf-rel.d: Call gas with -k. Thanks to Matt Thomas for
+ figuring out.
+ * gas/vax/vax.exp: Run elf-rel.[sd] for NetBSD-ELF and Linux.
2005-04-01 Jan Beulich <jbeulich@novell.com>
diff --git a/gas/testsuite/gas/vax/flonum.d b/gas/testsuite/gas/vax/flonum.d
new file mode 100644
index 0000000..38d20cd
--- /dev/null
+++ b/gas/testsuite/gas/vax/flonum.d
@@ -0,0 +1,12 @@
+#objdump: -sw
+#name: VAX flonum test
+
+.*: file format .*
+
+Contents of section .data:
+ 0000 fc3e5bd3 9e401006 1641751f 5d41e23b .*
+ 0010 5d2e5de1 9241272c 37a6ce36 b5418cb9 .*
+ 0020 287e0b24 3b40f227 c83c2bde 3f407b8f .*
+ 0030 069ee40f 0440d61c 4ce09205 3810675c .*
+ 0040 e3df062a 04406520 db16d80d d72f205e .*
+ 0050 c746ae64 .*
diff --git a/gas/testsuite/gas/vax/flonum.s b/gas/testsuite/gas/vax/flonum.s
new file mode 100644
index 0000000..9793c38
--- /dev/null
+++ b/gas/testsuite/gas/vax/flonum.s
@@ -0,0 +1,12 @@
+.data
+
+.float 0.12345
+.ffloat 1.23456
+.f_floating 2.34567
+.double 3.45678
+.dfloat 4.56789
+.d_floating 5.67890
+.gfloat 6.78901
+.g_floating 7.89012
+.hfloat 8.90123
+.h_floating 9.01234
diff --git a/gas/testsuite/gas/vax/vax.exp b/gas/testsuite/gas/vax/vax.exp
index 7ba8c27..d1b9986 100644
--- a/gas/testsuite/gas/vax/vax.exp
+++ b/gas/testsuite/gas/vax/vax.exp
@@ -29,6 +29,8 @@ proc do_quad {} {
if [istarget vax-*-* ] then {
do_quad
+ run_dump_test "flonum"
+
if { [istarget vax-*-*elf*] || [istarget vax-*-linux-gnu*] } then {
run_dump_test "elf-rel"
}