OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [binutils-2.20.1/] [gas/] [testsuite/] [gas/] [maxq10/] [call.s] - Diff between revs 816 and 818

Only display areas with differences | Details | Blame | View Log

Rev 816 Rev 818
;# calls.s
;# calls.s
;# check program flow instruction involving CALL & RET in MAXQ10
;# check program flow instruction involving CALL & RET in MAXQ10
.text
.text
foo:
foo:
        Call SmallCall
        Call SmallCall
        Call LongCall
        Call LongCall
SmallCall:
SmallCall:
        RET
        RET
        RET C
        RET C
        RET Z
        RET Z
        RET NZ
        RET NZ
        RET S
        RET S
        RETI
        RETI
        RETI C
        RETI C
        RETI Z
        RETI Z
        RETI NZ
        RETI NZ
        RETI S
        RETI S
        MOVE LC[1], #10h
        MOVE LC[1], #10h
LoopTop:
LoopTop:
        Call LoopTop
        Call LoopTop
        DJNZ LC[1], LoopTop
        DJNZ LC[1], LoopTop
        MOVE LC[1], #10h
        MOVE LC[1], #10h
LoopTop1:
LoopTop1:
        Call LoopTop1
        Call LoopTop1
        .fill 0x200, 2, 0
        .fill 0x200, 2, 0
        DJNZ LC[1], LoopTop
        DJNZ LC[1], LoopTop
LongCall:
LongCall:
        RETI
        RETI
        RETI C
        RETI C
        RETI Z
        RETI Z
        RETI NZ
        RETI NZ
        RETI S
        RETI S
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.