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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-7.2/] [sim/] [testsuite/] [sim/] [sh/] [bandor.s] - Blame information for rev 467

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

Line No. Rev Author Line
1 330 jeremybenn
# sh testcase for band, bor
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
        band.b  #0, @(3, r1)
21
        bf8k    mfail
22
        bor.b   #1, @(3, r1)
23
        bf8k    mfail
24
        band.b  #2, @(3, r1)
25
        bf8k    mfail
26
        bor.b   #3, @(3, r1)
27
        bf8k    mfail
28
 
29
        bor.b   #4, @(3, r1)
30
        bf8k    mfail
31
        band.b  #5, @(3, r1)
32
        bf8k    mfail
33
        bor.b   #6, @(3, r1)
34
        bf8k    mfail
35
        band.b  #7, @(3, r1)
36
        bf8k    mfail
37
 
38
        band.b  #0, @(2, r1)
39
        bf8k    mfail
40
        bor.b   #1, @(2, r1)
41
        bf8k    mfail
42
        band.b  #2, @(2, r1)
43
        bf8k    mfail
44
        bor.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
        bor.b   #4, @(2, r1)
55
        bf8k    mfail
56
        band.b  #5, @(2, r1)
57
        bf8k    mfail
58
        bor.b   #6, @(2, r1)
59
        bf8k    mfail
60
        band.b  #7, @(2, r1)
61
        bf8k    mfail
62
 
63
        band.b  #0, @(1, r1)
64
        bf8k    mfail
65
        bor.b   #1, @(1, r1)
66
        bf8k    mfail
67
        band.b  #2, @(1, r1)
68
        bf8k    mfail
69
        bor.b   #3, @(1, r1)
70
        bf8k    mfail
71
 
72
        bor.b   #4, @(1, r1)
73
        bf8k    mfail
74
        band.b  #5, @(1, r1)
75
        bf8k    mfail
76
        bor.b   #6, @(1, r1)
77
        bf8k    mfail
78
        band.b  #7, @(1, r1)
79
        bf8k    mfail
80
 
81
        band.b  #0, @(0, r1)
82
        bf8k    mfail
83
        bor.b   #1, @(0, r1)
84
        bf8k    mfail
85
        band.b  #2, @(0, r1)
86
        bf8k    mfail
87
        bor.b   #3, @(0, r1)
88
        bf8k    mfail
89
 
90
        bor.b   #4, @(0, r1)
91
        bf8k    mfail
92
        band.b  #5, @(0, r1)
93
        bf8k    mfail
94
        bor.b   #6, @(0, r1)
95
        bf8k    mfail
96
        band.b  #7, @(0, r1)
97
        bf8k    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.