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/] [cmpb.cgs] - Blame information for rev 227

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 227 jeremybenn
# frv testcase for cmpb $GRi,$GRj,$ICCi_1
2
# mach: fr400 fr550
3
 
4
        .include "testutils.inc"
5
 
6
        start
7
 
8
        .global cmpb
9
cmpb:
10
        set_gr_limmed   0xdead,0xbeef,gr7
11
        set_gr_limmed   0xdead,0xbeef,gr8
12
        set_icc         0x00,0          ; Set mask opposite of expected
13
        cmpb            gr7,gr8,icc0
14
        test_icc        1 1 1 1 icc0
15
 
16
        set_gr_limmed   0x21ad,0xbeef,gr8
17
        set_icc         0x08,0          ; Set mask opposite of expected
18
        cmpb            gr7,gr8,icc0
19
        test_icc        0 1 1 1 icc0
20
 
21
        set_gr_limmed   0xde52,0xbeef,gr8
22
        set_icc         0x04,0          ; Set mask opposite of expected
23
        cmpb            gr7,gr8,icc0
24
        test_icc        1 0 1 1 icc0
25
 
26
        set_gr_limmed   0xdead,0x41ef,gr8
27
        set_icc         0x02,0          ; Set mask opposite of expected
28
        cmpb            gr7,gr8,icc0
29
        test_icc        1 1 0 1 icc0
30
 
31
        set_gr_limmed   0xdead,0xbe10,gr8
32
        set_icc         0x01,0          ; Set mask opposite of expected
33
        cmpb            gr7,gr8,icc0
34
        test_icc        1 1 1 0 icc0
35
 
36
        set_gr_limmed   0xbeef,0xdead,gr8
37
        set_icc         0x0f,0          ; Set mask opposite of expected
38
        cmpb            gr7,gr8,icc0
39
        test_icc        0 0 0 0 icc0
40
 
41
        pass

powered by: WebSVN 2.1.0

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