diff --git a/gas/testsuite/gas/.Sanitize b/gas/testsuite/gas/.Sanitize index 45a5de41c9..9083a1b66d 100644 --- a/gas/testsuite/gas/.Sanitize +++ b/gas/testsuite/gas/.Sanitize @@ -59,6 +59,7 @@ ieee-fp m32r m68k m68k-coff +m88k macros mips mn10200 diff --git a/gas/testsuite/gas/m68k/.Sanitize b/gas/testsuite/gas/m68k/.Sanitize index a15725f3fc..ea0f26ac7e 100644 --- a/gas/testsuite/gas/m68k/.Sanitize +++ b/gas/testsuite/gas/m68k/.Sanitize @@ -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 index 0000000000..65109c8bb5 --- /dev/null +++ b/gas/testsuite/gas/m68k/t2.d @@ -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 index 0000000000..f6071fee15 --- /dev/null +++ b/gas/testsuite/gas/m88k/.Sanitize @@ -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 index 0000000000..b6645789ea --- /dev/null +++ b/gas/testsuite/gas/m88k/init.d @@ -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 index 0000000000..29681cb1e2 --- /dev/null +++ b/gas/testsuite/gas/m88k/init.s @@ -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 index 0000000000..6907c11506 --- /dev/null +++ b/gas/testsuite/gas/m88k/m88k.exp @@ -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 +}