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

Subversion Repositories openrisc

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

Compare with Previous | Blame | View Log

# sh testcase for and #$imm8, r0 -*- Asm -*-
# mach: all
# as: -isa=shcompact
# ld: -m shelf32

        .include "compact/testutils.inc"

        start

        .global andi
andi:
        mov #0, r0
        or #255, r0
        and #0, r0
        assert r0, #0

large:
        mov #0, r0
        or #255, r0
        shll8 r0
        or #255, r0
        shll8 r0
        or #255, r0
        shll8 r0
        or #255, r0

mask:
        and #255, r0
        mov r0, r1
        mov #0, r0
        or #255, r0
        cmp/eq r0, r1
        bf wrong

mask0:
        and #0, r0
        assert r0, #0

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.