* gas/m32r/fslot.[sd]: New testcase.

* gas/m32r/m32r.exp: Run it.
	* gas/m32r/fslotx.[sd]: New testcase.
	* gas/m32r/m32rx.exp: Run it.
	* gas/m32r/m32rx.[sd]: Update.
PR 18134.
This commit is contained in:
Doug Evans 1998-11-03 04:25:28 +00:00
parent 668f52e048
commit 7c678e9e63
6 changed files with 113 additions and 1 deletions

View file

@ -1,3 +1,13 @@
Mon Nov 2 20:16:50 1998 Doug Evans <devans@canuck.cygnus.com>
* gas/m32r/fslot.[sd]: New testcase.
* gas/m32r/m32r.exp: Run it.
start-sanitize-m32rx
* gas/m32r/fslotx.[sd]: New testcase.
* gas/m32r/m32rx.exp: Run it.
* gas/m32r/m32rx.[sd]: Update.
end-sanitize-m32rx
start-sanitize-r5900
Fri Oct 23 13:01:24 EDT 1998 Frank Ch. Eigler <fche@cygnus.com>

View file

@ -15,7 +15,7 @@
Do-first:
m32rx_files="m32rx.s m32rx.d m32rx.exp"
m32rx_files="fslotx.s fslotx.d m32rx.s m32rx.d m32rx.exp"
if ( echo $* | grep keep\-m32rx > /dev/null ) ; then
keep_these_too="${m32rx_files} ${keep_these_too}"
else
@ -33,6 +33,8 @@ Things-to-keep:
allinsn.d
allinsn.exp
allinsn.s
fslot.d
fslot.s
high-1.d
high-1.s
m32r.exp

View file

@ -0,0 +1,31 @@
#as:
#objdump: -dr
#name: fslot
.*: +file format .*
Disassembly of section .text:
0+0 <bl>:
*0: 7e 00 f0 00 bl 0 <bl> || nop
*4: 60 08 f0 00 ldi r0,[#]*8 || nop
0+8 <bl_s>:
*8: 7e 00 f0 00 bl 8 <bl_s> || nop
*c: 60 08 f0 00 ldi r0,[#]*8 || nop
0+10 <bra>:
*10: 7f 00 f0 00 bra 10 <bra> || nop
*14: 60 08 f0 00 ldi r0,[#]*8 || nop
0+18 <bra_s>:
*18: 7f 00 f0 00 bra 18 <bra_s> || nop
*1c: 60 08 f0 00 ldi r0,[#]*8 || nop
0+20 <jl>:
*20: 1e c0 f0 00 jl r0 || nop
*24: 60 08 f0 00 ldi r0,[#]*8 || nop
0+28 <trap>:
*28: 10 f4 f0 00 trap [#]*0x4 || nop
*2c: 60 08 f0 00 ldi r0,[#]*8 || nop

View file

@ -0,0 +1,27 @@
# Test the FILL-SLOT attribute.
# The FILL-SLOT attribute ensures the next insn begins on a 32 byte boundary.
# This is needed for example with bl because the subroutine will return
# to a 32 bit boundary.
.text
bl:
bl bl
ldi r0,#8
bl_s:
bl.s bl_s
ldi r0,#8
bra:
bra bra
ldi r0,#8
bra_s:
bra.s bra_s
ldi r0,#8
jl:
jl r0
ldi r0,#8
trap:
trap #4
ldi r0,#8

View file

@ -0,0 +1,23 @@
#as: -m32rx
#objdump: -dr
#name: fslotx
.*: +file format .*
Disassembly of section .text:
0+0 <bcl>:
*0: 78 00 f0 00 bcl 0 <bcl> || nop
*4: 60 08 f0 00 ldi r0,[#]*8 || nop
0+8 <bcl_s>:
*8: 78 00 f0 00 bcl 8 <bcl_s> || nop
*c: 60 08 f0 00 ldi r0,[#]*8 || nop
0+10 <bncl>:
10: 79 00 f0 00 bncl 10 <bncl> || nop
14: 60 08 f0 00 ldi r0,[#]*8 || nop
0+18 <bncl_s>:
18: 79 00 f0 00 bncl 18 <bncl_s> || nop
1c: 60 08 f0 00 ldi r0,[#]*8 || nop

View file

@ -0,0 +1,19 @@
# Test the FILL-SLOT attribute.
# The FILL-SLOT attribute ensures the next insn begins on a 32 byte boundary.
# This is needed for example with bl because the subroutine will return
# to a 32 bit boundary.
.text
bcl:
bcl bcl
ldi r0,#8
bcl_s:
bcl.s bcl_s
ldi r0,#8
bncl:
bncl bncl
ldi r0,#8
bncl_s:
bncl.s bncl_s
ldi r0,#8