Statistics
| Branch: | Revision:

root / tests / lm32 / test_sli.S @ d65f0831

History | View | Annotate | Download (306 Bytes)

1
.include "macros.inc"
2

    
3
start
4

    
5
test_name SLI_1
6
mvi r1, 1
7
sli r3, r1, 0
8
check_r3 1
9

    
10
test_name SLI_2
11
mvi r1, 0
12
sli r3, r1, 1
13
check_r3 0
14

    
15
test_name SLI_3
16
mvi r1, 1
17
sli r3, r1, 31
18
check_r3 0x80000000
19

    
20
test_name SLI_4
21
mvi r1, 16
22
sli r3, r1, 31
23
check_r3 0
24

    
25
test_name SLI_7
26
mvi r3, 2
27
sli r3, r3, 2
28
check_r3 8
29

    
30
end