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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-6.8/] [sim/] [testsuite/] [sim/] [sh/] [bandornot.s] - Blame information for rev 827

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

Line No. Rev Author Line
1 24 jeremybenn
# sh testcase for bandnot, bornot
2
# mach:  all
3
# as(sh):       -defsym sim_cpu=0
4
# as(shdsp):    -defsym sim_cpu=1 -dsp
5
 
6
        .include "testutils.inc"
7
 
8
        .align 2
9
_x:     .long   0xa5a5a5a5
10
 
11
        start
12
 
13
bandor_b_imm_disp12_reg:
14
        set_grs_a5a5
15
        # Make sure T is true to start.
16
        sett
17
 
18
        mov.l   x, r1
19
 
20
        bandnot.b       #0, @(3, r1)
21
        bt8k    mfail
22
        bornot.b        #1, @(3, r1)
23
        bf8k    mfail
24
        bandnot.b       #2, @(3, r1)
25
        bt8k    mfail
26
        bornot.b        #3, @(3, r1)
27
        bf8k    mfail
28
 
29
        bornot.b        #4, @(3, r1)
30
        bf8k    mfail
31
        bandnot.b       #5, @(3, r1)
32
        bt8k    mfail
33
        bornot.b        #6, @(3, r1)
34
        bf8k    mfail
35
        bandnot.b       #7, @(3, r1)
36
        bt8k    mfail
37
 
38
        bandnot.b       #0, @(2, r1)
39
        bt8k    mfail
40
        bornot.b        #1, @(2, r1)
41
        bf8k    mfail
42
        bandnot.b       #2, @(2, r1)
43
        bt8k    mfail
44
        bornot.b        #3, @(2, r1)
45
        bf8k    mfail
46
 
47
        bra     .L2
48
        nop
49
 
50
        .align 2
51
x:      .long   _x
52
 
53
.L2:
54
        bornot.b        #4, @(2, r1)
55
        bf8k    mfail
56
        bandnot.b       #5, @(2, r1)
57
        bt8k    mfail
58
        bornot.b        #6, @(2, r1)
59
        bf8k    mfail
60
        bandnot.b       #7, @(2, r1)
61
        bt8k    mfail
62
 
63
        bandnot.b       #0, @(1, r1)
64
        bt8k    mfail
65
        bornot.b        #1, @(1, r1)
66
        bf8k    mfail
67
        bandnot.b       #2, @(1, r1)
68
        bt8k    mfail
69
        bornot.b        #3, @(1, r1)
70
        bf8k    mfail
71
 
72
        bornot.b        #4, @(1, r1)
73
        bf8k    mfail
74
        bandnot.b       #5, @(1, r1)
75
        bt8k    mfail
76
        bornot.b        #6, @(1, r1)
77
        bf8k    mfail
78
        bandnot.b       #7, @(1, r1)
79
        bt8k    mfail
80
 
81
        bandnot.b       #0, @(0, r1)
82
        bt8k    mfail
83
        bornot.b        #1, @(0, r1)
84
        bf8k    mfail
85
        bandnot.b       #2, @(0, r1)
86
        bt8k    mfail
87
        bornot.b        #3, @(0, r1)
88
        bf8k    mfail
89
 
90
        bornot.b        #4, @(0, r1)
91
        bf8k    mfail
92
        bandnot.b       #5, @(0, r1)
93
        bt8k    mfail
94
        bornot.b        #6, @(0, r1)
95
        bf8k    mfail
96
        bandnot.b       #7, @(0, r1)
97
        bt8k    mfail
98
 
99
        assertreg _x, r1
100
 
101
        test_gr_a5a5 r0
102
        test_gr_a5a5 r2
103
        test_gr_a5a5 r3
104
        test_gr_a5a5 r4
105
        test_gr_a5a5 r5
106
        test_gr_a5a5 r6
107
        test_gr_a5a5 r7
108
        test_gr_a5a5 r8
109
        test_gr_a5a5 r9
110
        test_gr_a5a5 r10
111
        test_gr_a5a5 r11
112
        test_gr_a5a5 r12
113
        test_gr_a5a5 r13
114
        test_gr_a5a5 r14
115
 
116
        pass
117
 
118
        exit 0
119
 
120
 

powered by: WebSVN 2.1.0

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