~ubuntu-branches/ubuntu/oneiric/qemu-linaro/oneiric

« back to all changes in this revision

Viewing changes to tests/lm32/test_addi.S

  • Committer: Package Import Robot
  • Author(s): Steve Langasek
  • Date: 2011-04-11 22:26:38 UTC
  • mfrom: (12860.1.6 natty)
  • Revision ID: package-import@ubuntu.com-20110411222638-1zk3pjkmd9zcj0d2
debian/rules: include i386 and x86_64 in the list of possible
binfmt-misc targets, since qemu-user-static does include
qemu-i386-static and qemu-x86_64-static and we want these to work on
non-x86 archs by default.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
.include "macros.inc"
2
 
 
3
 
start
4
 
 
5
 
test_name ADDI_1
6
 
mvi r1, 0
7
 
addi r3, r1, 0
8
 
check_r3 0
9
 
 
10
 
test_name ADDI_2
11
 
mvi r1, 0
12
 
addi r3, r1, 1
13
 
check_r3 1
14
 
 
15
 
test_name ADDI_3
16
 
mvi r1, 1
17
 
addi r3, r1, 0
18
 
check_r3 1
19
 
 
20
 
test_name ADDI_4
21
 
mvi r1, 1
22
 
addi r3, r1, -1
23
 
check_r3 0
24
 
 
25
 
test_name ADDI_5
26
 
mvi r1, -1
27
 
addi r3, r1, 1
28
 
check_r3 0
29
 
 
30
 
test_name ADDI_6
31
 
mvi r1, -1
32
 
addi r3, r1, 0
33
 
check_r3 -1
34
 
 
35
 
test_name ADDI_7
36
 
mvi r1, 0
37
 
addi r3, r1, -1
38
 
check_r3 -1
39
 
 
40
 
test_name ADDI_8
41
 
mvi r3, 4
42
 
addi r3, r3, 4
43
 
check_r3 8
44
 
 
45
 
test_name ADDI_9
46
 
mvi r3, 4
47
 
addi r3, r3, -4
48
 
check_r3 0
49
 
 
50
 
test_name ADDI_10
51
 
mvi r3, 4
52
 
addi r3, r3, -5
53
 
check_r3 -1
54
 
 
55
 
end
56