Wed May 7 16:18:30 1997 Manfred Hollstein <manfred@s-direktnet.de>
authorIan Lance Taylor <ian@airs.com>
Wed, 7 May 1997 20:45:30 +0000 (20:45 +0000)
committerIan Lance Taylor <ian@airs.com>
Wed, 7 May 1997 20:45:30 +0000 (20:45 +0000)
* gas/m88k/init.{s,d}: New checks for proper padding of
.init sections.
* gas/m88k/m88.exp: Run them.

* gas/m68k/t2.d: New file for check of presence of section
symbols on the m68k-motorola-sysv.
* gas/m68k/all.exp: Run t2 if [istarget m68*-motorola-sysv].

gas/testsuite/gas/.Sanitize
gas/testsuite/gas/m68k/.Sanitize
gas/testsuite/gas/m68k/t2.d [new file with mode: 0644]
gas/testsuite/gas/m88k/.Sanitize [new file with mode: 0644]
gas/testsuite/gas/m88k/init.d [new file with mode: 0644]
gas/testsuite/gas/m88k/init.s [new file with mode: 0644]
gas/testsuite/gas/m88k/m88k.exp [new file with mode: 0644]

index 45a5de41c9de1a85643097608800f3e6d4087252..9083a1b66db400abe0eeef9aadd46923d1e014fe 100644 (file)
@@ -59,6 +59,7 @@ ieee-fp
 m32r
 m68k
 m68k-coff
+m88k
 macros
 mips
 mn10200
index a15725f3fc7a7a9b94b9c3283f801018389b0c5d..ea0f26ac7e1df0b1f890064ac15eae0cba95a32e 100644 (file)
@@ -43,6 +43,7 @@ p2663.s
 pcrel.d
 pcrel.s
 pic1.s
+t2.d
 t2.s
 
 Things-to-lose:
diff --git a/gas/testsuite/gas/m68k/t2.d b/gas/testsuite/gas/m68k/t2.d
new file mode 100644 (file)
index 0000000..65109c8
--- /dev/null
@@ -0,0 +1,8 @@
+#PROG: nm
+#name: presence of section symbols
+
+00000012 b .bss
+0000000e d .data
+00000000 t .text
+0000000e d loop1
+00000000 t loop2
diff --git a/gas/testsuite/gas/m88k/.Sanitize b/gas/testsuite/gas/m88k/.Sanitize
new file mode 100644 (file)
index 0000000..f6071fe
--- /dev/null
@@ -0,0 +1,36 @@
+# Sanitize.in for devo.
+#
+
+# Each directory to survive it's way into a release will need a file
+# like this one called "./.Sanitize".  All keyword lines must exist,
+# and must exist in the order specified by this file.  Each directory
+# in the tree will be processed, top down, in the following order.
+
+# Hash started lines like this one are comments and will be deleted
+# before anything else is done.  Blank lines will also be squashed
+# out.
+
+# The lines between the "Do-first:" line and the "Things-to-keep:"
+# line are executed as a /bin/sh shell script before anything else is
+# done in this 
+
+Do-first:
+
+
+# All files listed between the "Things-to-keep:" line and the
+# "Files-to-sed:" line will be kept.  All other files will be removed.
+# Directories listed in this section will have their own Sanitize
+# called.  Directories not listed will be removed in their entirety
+# with rm -rf.
+
+Things-to-keep:
+
+init.d
+init.s
+m88k.exp
+
+Things-to-lose:
+
+Do-last:
+
+# End of file.
diff --git a/gas/testsuite/gas/m88k/init.d b/gas/testsuite/gas/m88k/init.d
new file mode 100644 (file)
index 0000000..b664578
--- /dev/null
@@ -0,0 +1,11 @@
+#objdump: -d --prefix-addresses
+#name: padding of .init section
+
+.*: +file format .*
+
+Disassembly of section .text:
+Disassembly of section .init:
+00000000 <.init> subu        r31,r31,0x10
+00000004 <.init\+4> st          r13,r31,0x20
+00000008 <.init\+8> or          r0,r0,r0
+0000000c <.init\+c> or          r0,r0,r0
diff --git a/gas/testsuite/gas/m88k/init.s b/gas/testsuite/gas/m88k/init.s
new file mode 100644 (file)
index 0000000..29681cb
--- /dev/null
@@ -0,0 +1,5 @@
+; Test proper padding of the .init section
+       section  .init,"x"
+       align    4
+       subu     r31,r31,16
+       st       r13,r31,32
diff --git a/gas/testsuite/gas/m88k/m88k.exp b/gas/testsuite/gas/m88k/m88k.exp
new file mode 100644 (file)
index 0000000..6907c11
--- /dev/null
@@ -0,0 +1,10 @@
+#
+# Tests for m88k svr3 targets
+#
+if { [istarget m88*-*-sysv3] || [istarget m88*-*-coff* ] } then {
+    set testname "Proper padding of .init section"
+    run_dump_test init
+}
+if [info exists errorInfo] then {
+    unset errorInfo
+}