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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [sim/] [testsuite/] [sim/] [frv/] [cjmpl.cgs] - Blame information for rev 856

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

Line No. Rev Author Line
1 227 jeremybenn
# frv testcase for cjmpl @($GRi,$GRj),$CCi,$cond
2
# mach: all
3
 
4
        .include "testutils.inc"
5
 
6
        start
7
 
8
        .global cjmpl
9
cjmpl:
10
        set_spr_immed   0x1b1b,cccr
11
 
12
        set_spr_immed   0,lr
13
        set_gr_addr     ok1,gr8
14
        set_gr_immed    0,gr9
15
        cjmpl           @(gr8,gr9),cc0,1
16
        fail
17
ok1:
18
        test_spr_immed  0,lr
19
 
20
        set_spr_immed   0,lr
21
        set_gr_addr     bad,gr8
22
        set_gr_immed    0,gr9
23
        cjmpl           @(gr8,gr9),cc0,0
24
        test_spr_immed  0,lr
25
 
26
        set_spr_immed   0,lr
27
        set_gr_addr     ok4,gr8
28
        set_gr_immed    3,gr9                   ; target gets aligned down
29
        cjmpl           @(gr8,gr9),cc1,0
30
        fail
31
ok4:
32
        test_spr_immed  0,lr
33
 
34
        set_spr_immed   0,lr
35
        set_gr_addr     bad,gr8
36
        set_gr_immed    0,gr9
37
        cjmpl           @(gr8,gr9),cc1,1
38
        test_spr_immed  0,lr
39
 
40
        set_spr_immed   0,lr
41
        set_gr_addr     bad,gr8
42
        set_gr_immed    0,gr9
43
        cjmpl           @(gr8,gr9),cc2,0
44
        test_spr_immed  0,lr
45
 
46
        set_spr_immed   0,lr
47
        set_gr_addr     bad,gr8
48
        set_gr_immed    0,gr9
49
        cjmpl           @(gr8,gr9),cc3,1
50
        test_spr_immed  0,lr
51
 
52
        pass
53
bad:
54
        fail
55
 

powered by: WebSVN 2.1.0

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