Statistics
| Branch: | Revision:

root / tests / lm32 / test_sru.S @ d65f0831

History | View | Annotate | Download (639 Bytes)

1
.include "macros.inc"
2

    
3
start
4

    
5
test_name SRU_1
6
mvi r1, 1
7
mvi r2, 0
8
sru r3, r1, r2
9
check_r3 1
10

    
11
test_name SRU_2
12
mvi r1, 0
13
mvi r2, 1
14
sru r3, r1, r2
15
check_r3 0
16

    
17
test_name SRU_3
18
load r1 0x40000000
19
mvi r2, 30
20
sru r3, r1, r2
21
check_r3 1
22

    
23
test_name SRU_4
24
load r1 0x40000000
25
mvi r2, 31
26
sru r3, r1, r2
27
check_r3 0
28

    
29
test_name SRU_5
30
mvi r1, 16
31
mvi r2, 34
32
sru r3, r1, r2
33
check_r3 4
34

    
35
test_name SRU_6
36
mvi r1, 2
37
sru r3, r1, r1
38
check_r3 0
39

    
40
test_name SRU_7
41
mvi r3, 2
42
sru r3, r3, r3
43
check_r3 0
44

    
45
test_name SRU_8
46
mvi r1, 0xfffffff0
47
mvi r2, 2
48
sru r3, r1, r2
49
check_r3 0x3ffffffc
50

    
51
test_name SRU_9
52
mvi r1, 0xfffffff0
53
mvi r2, 4
54
sru r3, r1, r2
55
check_r3 0x0fffffff
56

    
57
end