~ahs3/+junk/cq-qemu

« back to all changes in this revision

Viewing changes to tests/lm32/test_lh.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 LH_1
 
6
load r1 data
 
7
lh r3, (r1+0)
 
8
check_r3 0x7e7f
 
9
 
 
10
test_name LH_2
 
11
lh r3, (r1+2)
 
12
check_r3 0x7071
 
13
 
 
14
test_name LH_3
 
15
lh r3, (r1+-2)
 
16
check_r3 0x7c7d
 
17
 
 
18
test_name LH_4
 
19
load r1 data_msb
 
20
lh r3, (r1+0)
 
21
check_r3 0xfffffeff
 
22
 
 
23
test_name LH_5
 
24
lh r3, (r1+2)
 
25
check_r3 0xfffff0f1
 
26
 
 
27
test_name LH_6
 
28
lh r3, (r1+-2)
 
29
check_r3 0xfffffcfd
 
30
 
 
31
test_name LH_7
 
32
load r3 data
 
33
lh r3, (r3+0)
 
34
check_r3 0x7e7f
 
35
 
 
36
end
 
37
 
 
38
.data
 
39
        .align 4
 
40
        .byte 0x7a, 0x7b, 0x7c, 0x7d
 
41
data:
 
42
        .byte 0x7e, 0x7f, 0x70, 0x71
 
43
        .byte 0xfa, 0xfb, 0xfc, 0xfd
 
44
data_msb:
 
45
        .byte 0xfe, 0xff, 0xf0, 0xf1