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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 227 jeremybenn
# frv testcase for cadd $GRi,$GRj,$GRk,$CCi,$cond
2
# mach: all
3
 
4
        .include "testutils.inc"
5
 
6
        start
7
 
8
        .global cadd
9
cadd:
10
        set_spr_immed   0x1b1b,cccr
11
 
12
        set_gr_immed    1,gr7
13
        set_gr_immed    2,gr8
14
        cadd            gr7,gr8,gr8,cc4,1
15
        test_gr_immed   3,gr8
16
 
17
        set_gr_limmed   0x7fff,0xffff,gr7
18
        set_gr_immed    1,gr8
19
        cadd            gr7,gr8,gr8,cc4,1
20
        test_gr_limmed  0x8000,0x0000,gr8
21
 
22
        cadd            gr8,gr8,gr8,cc4,1
23
        test_gr_immed   0,gr8
24
 
25
        set_gr_immed    1,gr7
26
        set_gr_immed    2,gr8
27
        cadd            gr7,gr8,gr8,cc4,0
28
        test_gr_immed   2,gr8
29
 
30
        set_gr_limmed   0x7fff,0xffff,gr7
31
        set_gr_immed    1,gr8
32
        cadd            gr7,gr8,gr8,cc4,0
33
        test_gr_immed   1,gr8
34
 
35
        cadd            gr8,gr8,gr8,cc4,0
36
        test_gr_immed   1,gr8
37
 
38
        set_gr_immed    1,gr7
39
        set_gr_immed    2,gr8
40
        cadd            gr7,gr8,gr8,cc5,0
41
        test_gr_immed   3,gr8
42
 
43
        set_gr_limmed   0x7fff,0xffff,gr7
44
        set_gr_immed    1,gr8
45
        cadd            gr7,gr8,gr8,cc5,0
46
        test_gr_limmed  0x8000,0x0000,gr8
47
 
48
        cadd            gr8,gr8,gr8,cc5,0
49
        test_gr_immed   0,gr8
50
 
51
        set_gr_immed    1,gr7
52
        set_gr_immed    2,gr8
53
        cadd            gr7,gr8,gr8,cc5,1
54
        test_gr_immed   2,gr8
55
 
56
        set_gr_limmed   0x7fff,0xffff,gr7
57
        set_gr_immed    1,gr8
58
        cadd            gr7,gr8,gr8,cc5,1
59
        test_gr_immed   1,gr8
60
 
61
        cadd            gr8,gr8,gr8,cc5,1
62
        test_gr_immed   1,gr8
63
 
64
        set_gr_immed    1,gr7
65
        set_gr_immed    2,gr8
66
        cadd            gr7,gr8,gr8,cc6,1
67
        test_gr_immed   2,gr8
68
 
69
        set_gr_limmed   0x7fff,0xffff,gr7
70
        set_gr_immed    1,gr8
71
        cadd            gr7,gr8,gr8,cc6,0
72
        test_gr_immed   1,gr8
73
 
74
        cadd            gr8,gr8,gr8,cc6,1
75
        test_gr_immed   1,gr8
76
 
77
        set_gr_immed    1,gr7
78
        set_gr_immed    2,gr8
79
        cadd            gr7,gr8,gr8,cc7,0
80
        test_gr_immed   2,gr8
81
 
82
        set_gr_limmed   0x7fff,0xffff,gr7
83
        set_gr_immed    1,gr8
84
        cadd            gr7,gr8,gr8,cc7,1
85
        test_gr_immed   1,gr8
86
 
87
        cadd            gr8,gr8,gr8,cc7,0
88
        test_gr_immed   1,gr8
89
 
90
        pass

powered by: WebSVN 2.1.0

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