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/] [cr16/] [cmpd.cgs] - Rev 330

Compare with Previous | Blame | View Log

# cr16 testcase for cmpd (regp), (regp)
# mach(): cr16 

        .include "testutils.inc"

        start

        .global cmpd
cmpd:
        mvi_h_condbit 0
        movd $0x12345678, (r4,r3)
        movd $0x12345678, (r6,r5)
        cmpd (r4,r3), (r6,r5)
        beq ok
not_ok:
        fail
ok:
        mvi_h_condbit 1
        movd $0x12341234, (r6,r5)
        cmpd (r4,r3), (r6,r5)
        beq not_ok

        pass

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.