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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [sim/] [testsuite/] [sim/] [sh/] [bxor.s] - Blame information for rev 157

Details | Compare with Previous | View Log

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