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

Subversion Repositories or1k

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
# fr30 testcase for extub $Ri
2
# mach(): fr30
3
 
4
        .include "testutils.inc"
5
 
6
        START
7
 
8
        .text
9
        .global extub
10
extub:
11
        ; Test extub $Ri
12
        mvi_h_gr        0,r7
13
        set_cc          0x0f            ; Condition codes are irrelevent
14
        extub           r7
15
        test_cc         1 1 1 1
16
        test_h_gr       0,r7
17
 
18
        mvi_h_gr        0x7f,r7
19
        set_cc          0x0e            ; Condition codes are irrelevent
20
        extub           r7
21
        test_cc         1 1 1 0
22
        test_h_gr       0x7f,r7
23
 
24
        mvi_h_gr        0x80,r7
25
        set_cc          0x0d            ; Condition codes are irrelevent
26
        extub           r7
27
        test_cc         1 1 0 1
28
        test_h_gr       0x80,r7
29
 
30
        mvi_h_gr        0xffffff7f,r7
31
        set_cc          0x0c            ; Condition codes are irrelevent
32
        extub           r7
33
        test_cc         1 1 0 0
34
        test_h_gr       0x7f,r7
35
 
36
        mvi_h_gr        0xffffff80,r7
37
        set_cc          0x0b            ; Condition codes are irrelevent
38
        extub           r7
39
        test_cc         1 0 1 1
40
        test_h_gr       0x80,r7
41
 
42
        pass

powered by: WebSVN 2.1.0

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