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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-7.2/] [sim/] [testsuite/] [sim/] [sh64/] [media/] [sharil.cgs] - Rev 373

Go to most recent revision | Compare with Previous | Blame | View Log

# sh testcase for shari.l $rm, $imm6, $rd -*- Asm -*-
# mach: all
# as: -isa=shmedia
# ld: -m shelf64

        .include "media/testutils.inc"

        start

init:
        pta wrong, tr0

sharil1:
        movi 0x1020, r0
        shlli r0, 8, r0
        ori r0, 0x30, r0
        shlli r0, 8, r0
        ori r0, 0x40, r0
        shlli r0, 8, r0
        ori r0, 0x50, r0
        shlli r0, 8, r0
        ori r0, 0x60, r0
        shlli r0, 8, r0
        ori r0, 0x70, r0
        shlli r0, 8, r0
        ori r0, 0x80, r0

        movi 1, r1
        shari.l r0, 1, r0
        shari.l r0, 1, r0
        shari.l r0, 1, r0
        shari.l r0, 1, r0
        shari.l r0, 1, r0
        shari.l r0, 1, r0
        shari.l r0, 1, r0
        shari.l r0, 1, r0
        shari.l r0, 20, r0
        bnei r0, 5, tr0

okay:   
        pass

wrong:
        fail

Go to most recent revision | 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.