OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gdb/] [gdb-6.8/] [gdb-6.8.openrisc-2.1/] [sim/] [testsuite/] [sim/] [cris/] [asm/] [pcplus.ms] - Diff between revs 24 and 33

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

Rev 24 Rev 33
# mach: crisv0 crisv3 crisv8 crisv10
# mach: crisv0 crisv3 crisv8 crisv10
; Test that a forward as well as backward 32-bit "branch" expansion
; Test that a forward as well as backward 32-bit "branch" expansion
; works including that the right offset is applied.
; works including that the right offset is applied.
        .macro nop32
        .macro nop32
        .rept 32
        .rept 32
        nop
        nop
        .endr
        .endr
        .endm
        .endm
        .include "testutils.inc"
        .include "testutils.inc"
        start
        start
        jump start1
        jump start1
        fail
        fail
        nop32
        nop32
        subq 63,$r10
        subq 63,$r10
9:      subq 1,$r10
9:      subq 1,$r10
        nop32
        nop32
        jump 0f
        jump 0f
        fail
        fail
0:      move [$pc=$pc+1f-6-0b],$p0
0:      move [$pc=$pc+1f-6-0b],$p0
        nop32
        nop32
        fail
        fail
        .skip 32768,0
        .skip 32768,0
        nop32
        nop32
        subq 63,$r10
        subq 63,$r10
1:
1:
        subq 1,$r10
        subq 1,$r10
        nop32
        nop32
        test.d $r10
        test.d $r10
        bne 7f
        bne 7f
        nop
        nop
        pass
        pass
7:
7:
        fail
        fail
start1:
start1:
        moveq 2,$r10
        moveq 2,$r10
0:      move [$pc=$pc+9b-6-0b],$p0
0:      move [$pc=$pc+9b-6-0b],$p0
        subq 63,$r10
        subq 63,$r10
        fail
        fail
 
 

powered by: WebSVN 2.1.0

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