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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gdb/] [gdb-6.8/] [sim/] [testsuite/] [sim/] [sh64/] [media/] [bgeu.cgs] - Rev 26

Compare with Previous | Blame | View Log

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

        .include "media/testutils.inc"

        start

        .global bgeu
init:
        movi 0, r0
        
bgeu1:
        # Compare r0 with itself.
        pta bgeu2, tr0
        bgeu/l r0, r0, tr0
        # We should branch here.
        fail

bgeu2:
        movi 1, r1
        movi 1, r2
        pta bge3, tr0
        bgeu r1, r2, tr0
        # We should branch here.
        fail

bge3:
        movi -1, r1
        movi 1, r2
        # We SHOULD branch here.
        pta bge4, tr0
        bgeu r1, r2, tr0
        fail

bge4:
        movi 1, r1
        movi -1, r2
        # We should not branch here.
        pta wrong, tr0
        bgeu r1, r2, tr0
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.