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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-7.1/] [sim/] [testsuite/] [sim/] [frv/] [cmpi.cgs] - Blame information for rev 227

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 227 jeremybenn
# frv testcase for cmpi $GRi,$s12,$ICCi_1
2
# mach: all
3
 
4
        .include "testutils.inc"
5
 
6
        start
7
 
8
        .global cmpi
9
cmpi:
10
        set_gr_immed    2,gr8
11
        set_icc         0x0f,0          ; Set mask opposite of expected
12
        cmpi            gr8,1,icc0
13
        test_icc        0 0 0 0 icc0
14
 
15
        set_gr_limmed   0x8000,0x0000,gr8
16
        set_icc         0x0d,0          ; Set mask opposite of expected
17
        cmpi            gr8,1,icc0
18
        test_icc        0 0 1 0 icc0
19
 
20
        set_gr_immed    0x1ff,gr8
21
        set_icc         0x0b,0          ; Set mask opposite of expected
22
        cmpi            gr8,0x1ff,icc0
23
        test_icc        0 1 0 0 icc0
24
 
25
        set_gr_immed    0,gr8
26
        set_icc         0x06,0          ; Set mask opposite of expected
27
        cmpi            gr8,1,icc0
28
        test_icc        1 0 0 1 icc0
29
 
30
        set_gr_immed    2,gr8
31
        set_icc         0x0e,0          ; Set mask opposite of expected
32
        cmpi            gr8,-1,icc0
33
        test_icc        0 0 0 1 icc0
34
 
35
        set_gr_limmed   0x8000,0x0000,gr8
36
        set_icc         0x06,0          ; Set mask opposite of expected
37
        cmpi            gr8,-1,icc0
38
        test_icc        1 0 0 1 icc0
39
 
40
        set_gr_immed    -512,gr8
41
        set_icc         0x0b,0          ; Set mask opposite of expected
42
        cmpi            gr8,-512,icc0
43
        test_icc        0 1 0 0 icc0
44
 
45
        set_gr_immed    0,gr8
46
        set_icc         0x0e,0          ; Set mask opposite of expected
47
        cmpi            gr8,-1,icc0
48
        test_icc        0 0 0 1 icc0
49
 
50
        pass

powered by: WebSVN 2.1.0

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