~ahs3/+junk/cq-qemu

« back to all changes in this revision

Viewing changes to tests/lm32/test_cmpne.S

  • Committer: Al Stone
  • Date: 2012-02-09 01:17:20 UTC
  • Revision ID: albert.stone@canonical.com-20120209011720-tztl7ik3qayz80p4
first commit to bzr for qemu

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.include "macros.inc"
 
2
 
 
3
start
 
4
 
 
5
test_name CMPNE_1
 
6
mvi r1, 0
 
7
mvi r2, 0
 
8
cmpne r3, r1, r2
 
9
check_r3 0
 
10
 
 
11
test_name CMPNE_2
 
12
mvi r1, 0
 
13
mvi r2, 1
 
14
cmpne r3, r1, r2
 
15
check_r3 1
 
16
 
 
17
test_name CMPNE_3
 
18
mvi r1, 1
 
19
mvi r2, 0
 
20
cmpne r3, r1, r2
 
21
check_r3 1
 
22
 
 
23
test_name CMPNE_4
 
24
mvi r3, 0
 
25
mvi r2, 1
 
26
cmpne r3, r3, r2
 
27
check_r3 1
 
28
 
 
29
test_name CMPNE_5
 
30
mvi r3, 0
 
31
mvi r2, 0
 
32
cmpne r3, r3, r2
 
33
check_r3 0
 
34
 
 
35
test_name CMPNE_6
 
36
mvi r3, 0
 
37
cmpne r3, r3, r3
 
38
check_r3 0
 
39
 
 
40
end