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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-6.8/] [sim/] [testsuite/] [sim/] [sh64/] [media/] [beqi.cgs] - Rev 840

Compare with Previous | Blame | View Log

# sh testcase for beqi$likely $rm, $imm6, $tra -*- Asm -*-
# mach: all
# as: -isa=shmedia
# ld: -m shelf64

        .include "media/testutils.inc"

        start

        .global beqi
init:
        # Load up the branch target registers.
        pta beqi2, tr0
        pta beqi3, tr1
        pta wrong, tr2

beqi1:
        # Always true, so branch likely.
        movi 1, r0
        beqi/l r0, 1, tr0
        # We should branch over this.
        fail

beqi2:
        movi 22, r3
        beqi r3, 22, tr1
        # We should branch over this.
        fail

beqi3:  
        movi 27, r7
        # We shouldn't branch here.
        beqi/u r7, 23, tr2
        # We should proceed to pass here.

okay:
        pass
        
wrong:
        fail

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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