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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gdb-7.2/] [gdb/] [testsuite/] [gdb.disasm/] [t12_bit.exp] - Blame information for rev 860

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

Line No. Rev Author Line
1 330 jeremybenn
# Copyright (C) 2003, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
2
 
3
# This program is free software; you can redistribute it and/or modify
4
# it under the terms of the GNU General Public License as published by
5
# the Free Software Foundation; either version 3 of the License, or
6
# (at your option) any later version.
7
#
8
# This program is distributed in the hope that it will be useful,
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
# GNU General Public License for more details.
12
#
13
# You should have received a copy of the GNU General Public License
14
# along with this program.  If not, see .
15
 
16
# This file was written by Michael Snyder (msnyder@redhat.com)
17
 
18
if $tracelevel then {
19
        strace $tracelevel
20
}
21
 
22
if ![istarget "h8300*-*-*"] {
23
    verbose "Tests ignored for all but h8300s based targets."
24
    return
25
}
26
 
27
 
28
set testfile "t12_bit"
29
set srcfile ${srcdir}/${subdir}/${testfile}.s
30
set objfile ${objdir}/${subdir}/${testfile}.o
31
set binfile ${objdir}/${subdir}/${testfile}.x
32
 
33
set asm-flags "";
34
set link-flags "-m h8300sxelf";
35
 
36
 
37
if {[target_assemble $srcfile $objfile "${asm-flags}"] != ""} then {
38
     untested t12_bit.exp
39
     return -1
40
}
41
 
42
if {[target_link $objfile $binfile "${link-flags}"] != ""} then {
43
     untested t12_bit.exp
44
     return -1
45
}
46
 
47
gdb_start
48
gdb_reinitialize_dir $srcdir/$subdir
49
gdb_load $binfile
50
 
51
gdb_test "x /i start" "bset\t#0x7,r1h" \
52
        "bset #0x7,r1h"
53
gdb_test "x" "bset\t#0x7,@er1" \
54
        "bset #0x7,@er1"
55
gdb_test "x" "bset\t#0x7,@0x12(:8|)" \
56
        "bset #0x7,@0x12:8"
57
gdb_test "x" "bset\t#0x7,@0x1234(:16|)" \
58
        "bset #0x7,@0x1234:16"
59
gdb_test "x" "bset\t#0x7,@0x12345678(:32|)" \
60
        "bset #0x7,@0x12345678:32"
61
gdb_test "x" "bset\tr3h,r1h" \
62
        "bset r3h,r1h"
63
gdb_test "x" "bset\tr3h,@er1" \
64
        "bset r3h,@er1"
65
gdb_test "x" "bset\tr3h,@0x12(:8|)" \
66
        "bset r3h,@0x12:8"
67
gdb_test "x" "bset\tr3h,@0x1234(:16|)" \
68
        "bset r3h,@0x1234:16"
69
gdb_test "x" "bset\tr3h,@0x12345678(:32|)" \
70
        "bset r3h,@0x12345678:32"
71
gdb_test "x" "bset/eq\t#0x7,@er1" \
72
        "bset/eq #0x7,@er1"
73
gdb_test "x" "bset/eq\t#0x7,@0x12(:8|)" \
74
        "bset/eq #0x7,@0x12:8"
75
gdb_test "x" "bset/eq\t#0x7,@0x1234(:16|)" \
76
        "bset/eq #0x7,@0x1234:16"
77
gdb_test "x" "bset/eq\t#0x7,@0x12345678(:32|)" \
78
        "bset/eq #0x7,@0x12345678:32"
79
gdb_test "x" "bset/eq\tr3h,@er1" \
80
        "bset/eq r3h,@er1"
81
gdb_test "x" "bset/eq\tr3h,@0x12(:8|)" \
82
        "bset/eq r3h,@0x12:8"
83
gdb_test "x" "bset/eq\tr3h,@0x1234(:16|)" \
84
        "bset/eq r3h,@0x1234:16"
85
gdb_test "x" "bset/eq\tr3h,@0x12345678(:32|)" \
86
        "bset/eq r3h,@0x12345678:32"
87
gdb_test "x" "bset/ne\t#0x7,@er1" \
88
        "bset/ne #0x7,@er1"
89
gdb_test "x" "bset/ne\t#0x7,@0x12(:8|)" \
90
        "bset/ne #0x7,@0x12:8"
91
gdb_test "x" "bset/ne\t#0x7,@0x1234(:16|)" \
92
        "bset/ne #0x7,@0x1234:16"
93
gdb_test "x" "bset/ne\t#0x7,@0x12345678(:32|)" \
94
        "bset/ne #0x7,@0x12345678:32"
95
gdb_test "x" "bset/ne\tr3h,@er1" \
96
        "bset/ne r3h,@er1"
97
gdb_test "x" "bset/ne\tr3h,@0x12(:8|)" \
98
        "bset/ne r3h,@0x12:8"
99
gdb_test "x" "bset/ne\tr3h,@0x1234(:16|)" \
100
        "bset/ne r3h,@0x1234:16"
101
gdb_test "x" "bset/ne\tr3h,@0x12345678(:32|)" \
102
        "bset/ne r3h,@0x12345678:32"
103
gdb_test "x" "bnot\t#0x7,r1h" \
104
        "bnot #0x7,r1h"
105
gdb_test "x" "bnot\t#0x7,@er1" \
106
        "bnot #0x7,@er1"
107
gdb_test "x" "bnot\t#0x7,@0x12(:8|)" \
108
        "bnot #0x7,@0x12:8"
109
gdb_test "x" "bnot\t#0x7,@0x1234(:16|)" \
110
        "bnot #0x7,@0x1234:16"
111
gdb_test "x" "bnot\t#0x7,@0x12345678(:32|)" \
112
        "bnot #0x7,@0x12345678:32"
113
gdb_test "x" "bnot\tr3h,r1h" \
114
        "bnot r3h,r1h"
115
gdb_test "x" "bnot\tr3h,@er1" \
116
        "bnot r3h,@er1"
117
gdb_test "x" "bnot\tr3h,@0x12(:8|)" \
118
        "bnot r3h,@0x12:8"
119
gdb_test "x" "bnot\tr3h,@0x1234(:16|)" \
120
        "bnot r3h,@0x1234:16"
121
gdb_test "x" "bnot\tr3h,@0x12345678(:32|)" \
122
        "bnot r3h,@0x12345678:32"
123
gdb_test "x" "bclr\t#0x7,r1h" \
124
        "bclr #0x7,r1h"
125
gdb_test "x" "bclr\t#0x7,@er1" \
126
        "bclr #0x7,@er1"
127
gdb_test "x" "bclr\t#0x7,@0x12(:8|)" \
128
        "bclr #0x7,@0x12:8"
129
gdb_test "x" "bclr\t#0x7,@0x1234(:16|)" \
130
        "bclr #0x7,@0x1234:16"
131
gdb_test "x" "bclr\t#0x7,@0x12345678(:32|)" \
132
        "bclr #0x7,@0x12345678:32"
133
gdb_test "x" "bclr\tr3h,r1h" \
134
        "bclr r3h,r1h"
135
gdb_test "x" "bclr\tr3h,@er1" \
136
        "bclr r3h,@er1"
137
gdb_test "x" "bclr\tr3h,@0x12(:8|)" \
138
        "bclr r3h,@0x12:8"
139
gdb_test "x" "bclr\tr3h,@0x1234(:16|)" \
140
        "bclr r3h,@0x1234:16"
141
gdb_test "x" "bclr\tr3h,@0x12345678(:32|)" \
142
        "bclr r3h,@0x12345678:32"
143
gdb_test "x" "bclr/eq\t#0x7,@er1" \
144
        "bclr/eq #0x7,@er1"
145
gdb_test "x" "bclr/eq\t#0x7,@0x12(:8|)" \
146
        "bclr/eq #0x7,@0x12:8"
147
gdb_test "x" "bclr/eq\t#0x7,@0x1234(:16|)" \
148
        "bclr/eq #0x7,@0x1234:16"
149
gdb_test "x" "bclr/eq\t#0x7,@0x12345678(:32|)" \
150
        "bclr/eq #0x7,@0x12345678:32"
151
gdb_test "x" "bclr/eq\tr3h,@er1" \
152
        "bclr/eq r3h,@er1"
153
gdb_test "x" "bclr/eq\tr3h,@0x12(:8|)" \
154
        "bclr/eq r3h,@0x12:8"
155
gdb_test "x" "bclr/eq\tr3h,@0x1234(:16|)" \
156
        "bclr/eq r3h,@0x1234:16"
157
gdb_test "x" "bclr/eq\tr3h,@0x12345678(:32|)" \
158
        "bclr/eq r3h,@0x12345678:32"
159
gdb_test "x" "bclr/ne\t#0x7,@er1" \
160
        "bclr/ne #0x7,@er1"
161
gdb_test "x" "bclr/ne\t#0x7,@0x12(:8|)" \
162
        "bclr/ne #0x7,@0x12:8"
163
gdb_test "x" "bclr/ne\t#0x7,@0x1234(:16|)" \
164
        "bclr/ne #0x7,@0x1234:16"
165
gdb_test "x" "bclr/ne\t#0x7,@0x12345678(:32|)" \
166
        "bclr/ne #0x7,@0x12345678:32"
167
gdb_test "x" "bclr/ne\tr3h,@er1" \
168
        "bclr/ne r3h,@er1"
169
gdb_test "x" "bclr/ne\tr3h,@0x12(:8|)" \
170
        "bclr/ne r3h,@0x12:8"
171
gdb_test "x" "bclr/ne\tr3h,@0x1234(:16|)" \
172
        "bclr/ne r3h,@0x1234:16"
173
gdb_test "x" "bclr/ne\tr3h,@0x12345678(:32|)" \
174
        "bclr/ne r3h,@0x12345678:32"
175
gdb_test "x" "btst\t#0x7,r1h" \
176
        "btst #0x7,r1h"
177
gdb_test "x" "btst\t#0x7,@er1" \
178
        "btst #0x7,@er1"
179
gdb_test "x" "btst\t#0x7,@0x12(:8|)" \
180
        "btst #0x7,@0x12:8"
181
gdb_test "x" "btst\t#0x7,@0x1234(:16|)" \
182
        "btst #0x7,@0x1234:16"
183
gdb_test "x" "btst\t#0x7,@0x12345678(:32|)" \
184
        "btst #0x7,@0x12345678:32"
185
gdb_test "x" "btst\tr3h,r1h" \
186
        "btst r3h,r1h"
187
gdb_test "x" "btst\tr3h,@er1" \
188
        "btst r3h,@er1"
189
gdb_test "x" "btst\tr3h,@0x12(:8|)" \
190
        "btst r3h,@0x12:8"
191
gdb_test "x" "btst\tr3h,@0x1234(:16|)" \
192
        "btst r3h,@0x1234:16"
193
gdb_test "x" "btst\tr3h,@0x12345678(:32|)" \
194
        "btst r3h,@0x12345678:32"
195
gdb_test "x" "bor\t#0x7,r1h" \
196
        "bor #0x7,r1h"
197
gdb_test "x" "bor\t#0x7,@er1" \
198
        "bor #0x7,@er1"
199
gdb_test "x" "bor\t#0x7,@0x12(:8|)" \
200
        "bor #0x7,@0x12:8"
201
gdb_test "x" "bor\t#0x7,@0x1234(:16|)" \
202
        "bor #0x7,@0x1234:16"
203
gdb_test "x" "bor\t#0x7,@0x12345678(:32|)" \
204
        "bor #0x7,@0x12345678:32"
205
gdb_test "x" "bior\t#0x7,r1h" \
206
        "bior #0x7,r1h"
207
gdb_test "x" "bior\t#0x7,@er1" \
208
        "bior #0x7,@er1"
209
gdb_test "x" "bior\t#0x7,@0x12(:8|)" \
210
        "bior #0x7,@0x12:8"
211
gdb_test "x" "bior\t#0x7,@0x1234(:16|)" \
212
        "bior #0x7,@0x1234:16"
213
gdb_test "x" "bior\t#0x7,@0x12345678(:32|)" \
214
        "bior #0x7,@0x12345678:32"
215
gdb_test "x" "bxor\t#0x7,r1h" \
216
        "bxor #0x7,r1h"
217
gdb_test "x" "bxor\t#0x7,@er1" \
218
        "bxor #0x7,@er1"
219
gdb_test "x" "bxor\t#0x7,@0x12(:8|)" \
220
        "bxor #0x7,@0x12:8"
221
gdb_test "x" "bxor\t#0x7,@0x1234(:16|)" \
222
        "bxor #0x7,@0x1234:16"
223
gdb_test "x" "bxor\t#0x7,@0x12345678(:32|)" \
224
        "bxor #0x7,@0x12345678:32"
225
gdb_test "x" "bixor\t#0x7,r1h" \
226
        "bixor #0x7,r1h"
227
gdb_test "x" "bixor\t#0x7,@er1" \
228
        "bixor #0x7,@er1"
229
gdb_test "x" "bixor\t#0x7,@0x12(:8|)" \
230
        "bixor #0x7,@0x12:8"
231
gdb_test "x" "bixor\t#0x7,@0x1234(:16|)" \
232
        "bixor #0x7,@0x1234:16"
233
gdb_test "x" "bixor\t#0x7,@0x12345678(:32|)" \
234
        "bixor #0x7,@0x12345678:32"
235
gdb_test "x" "band\t#0x7,r1h" \
236
        "band #0x7,r1h"
237
gdb_test "x" "band\t#0x7,@er1" \
238
        "band #0x7,@er1"
239
gdb_test "x" "band\t#0x7,@0x12(:8|)" \
240
        "band #0x7,@0x12:8"
241
gdb_test "x" "band\t#0x7,@0x1234(:16|)" \
242
        "band #0x7,@0x1234:16"
243
gdb_test "x" "band\t#0x7,@0x12345678(:32|)" \
244
        "band #0x7,@0x12345678:32"
245
gdb_test "x" "biand\t#0x7,r1h" \
246
        "biand #0x7,r1h"
247
gdb_test "x" "biand\t#0x7,@er1" \
248
        "biand #0x7,@er1"
249
gdb_test "x" "biand\t#0x7,@0x12(:8|)" \
250
        "biand #0x7,@0x12:8"
251
gdb_test "x" "biand\t#0x7,@0x1234(:16|)" \
252
        "biand #0x7,@0x1234:16"
253
gdb_test "x" "biand\t#0x7,@0x12345678(:32|)" \
254
        "biand #0x7,@0x12345678:32"
255
gdb_test "x" "bld\t#0x7,r1h" \
256
        "bld #0x7,r1h"
257
gdb_test "x" "bld\t#0x7,@er1" \
258
        "bld #0x7,@er1"
259
gdb_test "x" "bld\t#0x7,@0x12(:8|)" \
260
        "bld #0x7,@0x12:8"
261
gdb_test "x" "bld\t#0x7,@0x1234(:16|)" \
262
        "bld #0x7,@0x1234:16"
263
gdb_test "x" "bld\t#0x7,@0x12345678(:32|)" \
264
        "bld #0x7,@0x12345678:32"
265
gdb_test "x" "bild\t#0x7,r1h" \
266
        "bild #0x7,r1h"
267
gdb_test "x" "bild\t#0x7,@er1" \
268
        "bild #0x7,@er1"
269
gdb_test "x" "bild\t#0x7,@0x12(:8|)" \
270
        "bild #0x7,@0x12:8"
271
gdb_test "x" "bild\t#0x7,@0x1234(:16|)" \
272
        "bild #0x7,@0x1234:16"
273
gdb_test "x" "bild\t#0x7,@0x12345678(:32|)" \
274
        "bild #0x7,@0x12345678:32"
275
gdb_test "x" "bst\t#0x7,r1h" \
276
        "bst #0x7,r1h"
277
gdb_test "x" "bst\t#0x7,@er1" \
278
        "bst #0x7,@er1"
279
gdb_test "x" "bst\t#0x7,@0x12(:8|)" \
280
        "bst #0x7,@0x12:8"
281
gdb_test "x" "bst\t#0x7,@0x1234(:16|)" \
282
        "bst #0x7,@0x1234:16"
283
gdb_test "x" "bst\t#0x7,@0x12345678(:32|)" \
284
        "bst #0x7,@0x12345678:32"
285
gdb_test "x" "bstz\t#0x7,@er1" \
286
        "bstz #0x7,@er1"
287
gdb_test "x" "bstz\t#0x7,@0x12(:8|)" \
288
        "bstz #0x7,@0x12:8"
289
gdb_test "x" "bstz\t#0x7,@0x1234(:16|)" \
290
        "bstz #0x7,@0x1234:16"
291
gdb_test "x" "bstz\t#0x7,@0x12345678(:32|)" \
292
        "bstz #0x7,@0x12345678:32"
293
gdb_test "x" "bist\t#0x7,r1h" \
294
        "bist #0x7,r1h"
295
gdb_test "x" "bist\t#0x7,@er1" \
296
        "bist #0x7,@er1"
297
gdb_test "x" "bist\t#0x7,@0x12(:8|)" \
298
        "bist #0x7,@0x12:8"
299
gdb_test "x" "bist\t#0x7,@0x1234(:16|)" \
300
        "bist #0x7,@0x1234:16"
301
gdb_test "x" "bist\t#0x7,@0x12345678(:32|)" \
302
        "bist #0x7,@0x12345678:32"
303
gdb_test "x" "bistz\t#0x7,@er1" \
304
        "bistz #0x7,@er1"
305
gdb_test "x" "bistz\t#0x7,@0x12(:8|)" \
306
        "bistz #0x7,@0x12:8"
307
gdb_test "x" "bistz\t#0x7,@0x1234(:16|)" \
308
        "bistz #0x7,@0x1234:16"
309
gdb_test "x" "bistz\t#0x7,@0x12345678(:32|)" \
310
        "bistz #0x7,@0x12345678:32"
311
gdb_test "x" "bfld\t#0x34(:8|),@er1,r3h" \
312
        "bfld #0x34:8,@er1,r3h"
313
gdb_test "x" "bfld\t#0x34(:8|),@0x12(:8|),r3h" \
314
        "bfld #0x34:8,@0x12:8,r3h"
315
gdb_test "x" "bfld\t#0x34(:8|),@0x1234(:16|),r3h" \
316
        "bfld #0x34:8,@0x1234:16,r3h"
317
gdb_test "x" "bfld\t#0x34(:8|),@0x12345678(:32|),r3h" \
318
        "bfld #0x34:8,@0x12345678:32,r3h"
319
gdb_test "x" "bfst\tr3h,#0x34(:8|),@er1" \
320
        "bfst r3h,#0x34:8,@er1"
321
gdb_test "x" "bfst\tr3h,#0x34(:8|),@0x12(:8|)" \
322
        "bfst r3h,#0x34:8,@0x12:8"
323
gdb_test "x" "bfst\tr3h,#0x34(:8|),@0x1234(:16|)" \
324
        "bfst r3h,#0x34:8,@0x1234:16"
325
gdb_test "x" "bfst\tr3h,#0x34(:8|),@0x12345678(:32|)" \
326
        "bfst r3h,#0x34:8,@0x12345678:32"

powered by: WebSVN 2.1.0

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