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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [sim/] [testsuite/] [sim/] [cr16/] [cmpw.cgs] - Blame information for rev 816

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

Line No. Rev Author Line
1 227 jeremybenn
# cr16 testcase for cmp $imm, reg
2
# mach(): cr16
3
 
4
        .include "testutils.inc"
5
 
6
        start
7
 
8
        .global cmp
9
cmp:
10
        mvi_h_condbit 0
11
        movw $0x1234, r4
12
        movw $0x1234, r5
13
        cmpb r4,r5
14
        beq ok
15
not_ok:
16
        fail
17
ok:
18
        mvi_h_condbit 1
19
        movw $0x2222, r5
20
        cmpw r4,r5
21
        beq not_ok
22
 
23
        pass

powered by: WebSVN 2.1.0

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