repo.or.cz
/
qemu
/
lumag.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
migration: move some declarations to migration.h
[qemu/lumag.git]
/
tests
/
lm32
/
test_sw.S
blob
d1fdadce6143b65ce0c3da4ac6709a7e3fd9977b
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 r2 0x00112233
13
sw (r1+4), r2
14
check_mem data1 0x00112233
15
16
test_name SW_3
17
load r2 0x44556677
18
sw (r1+-4), r2
19
check_mem data0 0x44556677
20
21
test_name SW_4
22
sw (r1+0), r1
23
lw r3, (r1+0)
24
check_r3 data
25
26
end
27
28
.data
29
.align 4
30
data0:
31
.byte 0, 0, 0, 0
32
data:
33
.byte 0, 0, 0, 0
34
data1:
35
.byte 0, 0, 0, 0