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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [sim/] [testsuite/] [sim/] [fr30/] [orh.cgs] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
# fr30 testcase for orh $Rj,$Ri, orh $Rj,@$Ri
2
# mach(): fr30
3
 
4
        .include "testutils.inc"
5
 
6
        START
7
 
8
        .text
9
        .global orh
10
orh:
11
        ; Test orh $Rj,@$Ri
12
        mvi_h_gr        0xaaaaaaaa,r7
13
        mvi_h_mem       0x55555555,sp
14
        set_cc          0x07            ; Set mask opposite of expected
15
        orh             r7,@sp
16
        test_cc         1 0 1 1
17
        test_h_mem      0xffff5555,sp
18
 
19
        mvi_h_gr        0xffff0000,r7
20
        mvi_h_mem       0x0000ffff,sp
21
        set_cc          0x08            ; Set mask opposite of expected
22
        orh             r7,@sp
23
        test_cc         0 1 0 0
24
        test_h_mem      0x0000ffff,sp
25
 
26
        mvi_h_gr        0x0000de00,r7
27
        mvi_h_mem       0x00adbeef,sp
28
        set_cc          0x05            ; Set mask opposite of expected
29
        orh             r7,@sp
30
        test_cc         1 0 0 1
31
        test_h_mem      0xdeadbeef,sp
32
 
33
        pass

powered by: WebSVN 2.1.0

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