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
tests/vm: add --build-target option
[qemu/ar7.git]
/
tests
/
tcg
/
lm32
/
test_sw.S
blob
2b1c017e7b4a99da406c75dd822927191934e394
1
.include "macros.inc"
2
3
start
4
5
test_name SW_1
6
load r1 data
7
load r2 0xaabbccdd
8
sw (r1+0), r2
9
check_mem data 0xaabbccdd
10
11
test_name SW_2
12
load r1 data
13
load r2 0x00112233
14
sw (r1+4), r2
15
check_mem data1 0x00112233
16
17
test_name SW_3
18
load r1 data
19
load r2 0x44556677
20
sw (r1+-4), r2
21
check_mem data0 0x44556677
22
23
test_name SW_4
24
load r1 data
25
sw (r1+0), r1
26
lw r3, (r1+0)
27
check_r3 data
28
29
end
30
31
.data
32
.align 4
33
data0:
34
.byte 0, 0, 0, 0
35
data:
36
.byte 0, 0, 0, 0
37
data1:
38
.byte 0, 0, 0, 0