repo.or.cz
/
qemu
/
ar7.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
lsi53c895a: check message length value is valid
[qemu/ar7.git]
/
tests
/
tcg
/
xtensa
/
test_s32c1i.S
blob
93b575db95ba033caee4ab9898a131a65c11f3ba
1
#include "macros.inc"
2
3
test_suite s32c1i
4
5
test s32c1i_nowrite
6
movi a2, 1f
7
movi a3, 1
8
wsr a3, scompare1
9
movi a1, 2
10
s32c1i a1, a2, 0
11
assert ne, a1, a3
12
l32i a1, a2, 0
13
assert eqi, a1, 3
14
15
.data
16
.align 4
17
1:
18
.word 3
19
.text
20
test_end
21
22
test s32c1i_write
23
movi a2, 1f
24
movi a3, 3
25
wsr a3, scompare1
26
movi a1, 2
27
s32c1i a1, a2, 0
28
assert eq, a1, a3
29
l32i a1, a2, 0
30
assert eqi, a1, 2
31
32
.data
33
.align 4
34
1:
35
.word 3
36
.text
37
test_end
38
39
test_suite_end