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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-6.8/] [sim/] [testsuite/] [sim/] [frv/] [xoricc.cgs] - Blame information for rev 827

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

Line No. Rev Author Line
1 24 jeremybenn
# frv testcase for xoricc $GRi,$s10,$GRk,$ICCi_1
2
# mach: all
3
 
4
        .include "testutils.inc"
5
 
6
        start
7
 
8
        .global xoricc
9
xoricc:
10
        set_gr_limmed   0xaaaa,0xaaaa,gr7
11
        set_icc         0x07,0          ; Set mask opposite of expected
12
        xoricc          gr7,0x155,gr8,icc0
13
        test_icc        1 0 1 1 icc0
14
        test_gr_limmed  0xaaaa,0xabff,gr8
15
 
16
        set_gr_immed    0x00000000,gr7
17
        set_gr_immed    0x00000000,gr8
18
        set_icc         0x08,0          ; Set mask opposite of expected
19
        xoricc          gr7,0,gr8,icc0
20
        test_icc        0 1 0 0 icc0
21
        test_gr_immed   0x00000000,gr8
22
 
23
        set_gr_limmed   0xaaaa,0xaaaa,gr7
24
        set_gr_limmed   0xaaaa,0xaaaa,gr8
25
        set_icc         0x07,0          ; Set mask opposite of expected
26
        xoricc          gr7,0xaa,gr8,icc0
27
        test_icc        1 0 1 1 icc0
28
        test_gr_limmed  0xaaaa,0xaa00,gr8
29
 
30
        set_gr_limmed   0xdead,0xb000,gr7
31
        set_icc         0x0d,0          ; Set mask opposite of expected
32
        xoricc          gr7,-273,gr8,icc0
33
        test_icc        0 0 0 1 icc0
34
        test_gr_limmed  0x2152,0x4eef,gr8
35
 
36
        pass

powered by: WebSVN 2.1.0

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