Statistics
| Branch: | Revision:

root / tests / tcg / lm32 / test_muli.S @ c09015dd

History | View | Annotate | Download (487 Bytes)

1
.include "macros.inc"
2

    
3
start
4

    
5
test_name MULI_1
6
mvi r1, 0
7
muli r3, r1, 0
8
check_r3 0
9

    
10
test_name MULI_2
11
mvi r1, 1
12
muli r3, r1, 0
13
check_r3 0
14

    
15
test_name MULI_3
16
mvi r1, 0
17
muli r3, r1, 1
18
check_r3 0
19

    
20
test_name MULI_4
21
mvi r1, 1
22
muli r3, r1, 1
23
check_r3 1
24

    
25
test_name MULI_5
26
mvi r1, 2
27
muli r3, r1, -1
28
check_r3 -2
29

    
30
test_name MULI_6
31
mvi r1, -2
32
muli r3, r1, -1
33
check_r3 2
34

    
35
test_name MULI_7
36
mvi r1, 0x1234
37
muli r3, r1, 0x789
38
check_r3 0x8929d4
39

    
40
test_name MULI_8
41
mvi r3, 4
42
muli r3, r3, 4
43
check_r3 16
44

    
45
end