repo.or.cz
/
qemu
/
cris-port.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
etraxfs-ser: Correct default value for RW_REC_CTRL
[qemu/cris-port.git]
/
tests
/
lm32
/
test_sr.S
blob
62431a9864b716a74e8526e53936166ee316af97
1
.include "macros.inc"
2
3
start
4
5
test_name SR_1
6
mvi r1, 1
7
mvi r2, 0
8
sr r3, r1, r2
9
check_r3 1
10
11
test_name SR_2
12
mvi r1, 0
13
mvi r2, 1
14
sr r3, r1, r2
15
check_r3 0
16
17
test_name SR_3
18
load r1 0x40000000
19
mvi r2, 30
20
sr r3, r1, r2
21
check_r3 1
22
23
test_name SR_4
24
load r1 0x40000000
25
mvi r2, 31
26
sr r3, r1, r2
27
check_r3 0
28
29
test_name SR_5
30
mvi r1, 16
31
mvi r2, 34
32
sr r3, r1, r2
33
check_r3 4
34
35
test_name SR_6
36
mvi r1, 2
37
sr r3, r1, r1
38
check_r3 0
39
40
test_name SR_7
41
mvi r3, 2
42
sr r3, r3, r3
43
check_r3 0
44
45
test_name SR_8
46
mvi r1, 0xfffffff0
47
mvi r2, 2
48
sr r3, r1, r2
49
check_r3 0xfffffffc
50
51
test_name SR_9
52
mvi r1, 0xfffffff0
53
mvi r2, 4
54
sr r3, r1, r2
55
check_r3 0xffffffff
56
57
end