repo.or.cz
/
qemu
/
pbrook.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
hw/omap1.c: Add fallthrough markers and breaks
[qemu/pbrook.git]
/
tests
/
tcg
/
xtensa
/
test_b.S
blob
6cbe5f1fcada714ecc94c2790221035969a86e2f
1
.include "macros.inc"
2
3
test_suite b
4
5
test bnone
6
movi a2, 0xa5a5ff00
7
movi a3, 0x5a5a00ff
8
bnone a2, a3, 1f
9
test_fail
10
1:
11
movi a2, 0xa5a5ff01
12
bnone a2, a3, 1f
13
j 2f
14
1:
15
test_fail
16
2:
17
test_end
18
19
test beq
20
movi a2, 0
21
movi a3, 0
22
beq a2, a3, 1f
23
test_fail
24
1:
25
movi a2, 1
26
beq a2, a3, 1f
27
j 2f
28
1:
29
test_fail
30
2:
31
test_end
32
33
test blt
34
movi a2, 6
35
movi a3, 7
36
blt a2, a3, 1f
37
test_fail
38
1:
39
movi a2, 0xffffffff
40
blt a2, a3, 1f
41
test_fail
42
1:
43
movi a2, 7
44
blt a2, a3, 1f
45
j 2f
46
1:
47
test_fail
48
2:
49
test_end
50
51
test bltu
52
movi a2, 6
53
movi a3, 7
54
bltu a2, a3, 1f
55
test_fail
56
1:
57
movi a2, 7
58
bltu a2, a3, 1f
59
j 2f
60
1:
61
test_fail
62
2:
63
movi a2, 0xffffffff
64
bltu a2, a3, 1f
65
j 2f
66
1:
67
test_fail
68
2:
69
test_end
70
71
test ball
72
movi a2, 0xa5a5ffa5
73
movi a3, 0xa5a5ff00
74
ball a2, a3, 1f
75
test_fail
76
1:
77
movi a2, 0xa5a5a5a5
78
ball a2, a3, 1f
79
j 2f
80
1:
81
test_fail
82
2:
83
test_end
84
85
test bbc
86
movi a2, 0xfffffffd
87
movi a3, 0xffffff01
88
bbc a2, a3, 1f
89
test_fail
90
1:
91
movi a2, 8
92
movi a3, 0xffffff03
93
bbc a2, a3, 1f
94
j 2f
95
1:
96
test_fail
97
2:
98
test_end
99
100
test bbci
101
movi a2, 0xfffdffff
102
bbci a2, 17, 1f
103
test_fail
104
1:
105
movi a2, 0x00020000
106
bbci a2, 17, 1f
107
j 2f
108
1:
109
test_fail
110
2:
111
test_end
112
113
test bany
114
movi a2, 0xa5a5ff01
115
movi a3, 0x5a5a00ff
116
bany a2, a3, 1f
117
test_fail
118
1:
119
movi a2, 0xa5a5ff00
120
bany a2, a3, 1f
121
j 2f
122
1:
123
test_fail
124
2:
125
test_end
126
127
test bne
128
movi a2, 1
129
movi a3, 0
130
bne a2, a3, 1f
131
test_fail
132
1:
133
movi a2, 0
134
bne a2, a3, 1f
135
j 2f
136
1:
137
test_fail
138
2:
139
test_end
140
141
test bge
142
movi a2, 7
143
movi a3, 7
144
bge a2, a3, 1f
145
test_fail
146
1:
147
movi a2, 6
148
bge a2, a3, 1f
149
j 2f
150
1:
151
test_fail
152
2:
153
movi a2, 0xffffffff
154
bge a2, a3, 1f
155
j 2f
156
1:
157
test_fail
158
2:
159
test_end
160
161
test bgeu
162
movi a2, 7
163
movi a3, 7
164
bgeu a2, a3, 1f
165
test_fail
166
1:
167
movi a2, 0xffffffff
168
bgeu a2, a3, 1f
169
test_fail
170
1:
171
movi a2, 6
172
bgeu a2, a3, 1f
173
j 2f
174
1:
175
test_fail
176
2:
177
test_end
178
179
test bnall
180
movi a2, 0xa5a5a5a5
181
movi a3, 0xa5a5ff00
182
bnall a2, a3, 1f
183
test_fail
184
1:
185
movi a2, 0xa5a5ffa5
186
bnall a2, a3, 1f
187
j 2f
188
1:
189
test_fail
190
2:
191
test_end
192
193
test bbs
194
movi a2, 8
195
movi a3, 0xffffff03
196
bbs a2, a3, 1f
197
test_fail
198
1:
199
movi a2, 0xfffffffd
200
movi a3, 0xffffff01
201
bbs a2, a3, 1f
202
j 2f
203
1:
204
test_fail
205
2:
206
test_end
207
208
test bbsi
209
movi a2, 0x00020000
210
bbsi a2, 17, 1f
211
test_fail
212
1:
213
movi a2, 0xfffdffff
214
bbsi a2, 17, 1f
215
j 2f
216
1:
217
test_fail
218
2:
219
test_end
220
221
test_suite_end