blob: dc5d5f67d3e8b001f17f64e3f2cff2973d4abe1f [file] [log] [blame]
Michael Walled65f0832011-02-17 23:45:16 +01001.include "macros.inc"
2
3start
4
5test_name LBU_1
6load r1 data
7lbu r3, (r1+0)
8check_r3 0x7e
9
10test_name LBU_2
Michael Wallea946ce82014-04-22 20:18:41 +020011load r1 data
Michael Walled65f0832011-02-17 23:45:16 +010012lbu r3, (r1+1)
13check_r3 0x7f
14
15test_name LBU_3
Michael Wallea946ce82014-04-22 20:18:41 +020016load r1 data
Michael Walled65f0832011-02-17 23:45:16 +010017lbu r3, (r1+-1)
18check_r3 0x7d
19
20test_name LBU_4
21load r1 data_msb
22lbu r3, (r1+0)
23check_r3 0xfe
24
25test_name LBU_5
Michael Wallea946ce82014-04-22 20:18:41 +020026load r1 data_msb
Michael Walled65f0832011-02-17 23:45:16 +010027lbu r3, (r1+1)
28check_r3 0xff
29
30test_name LBU_6
Michael Wallea946ce82014-04-22 20:18:41 +020031load r1 data_msb
Michael Walled65f0832011-02-17 23:45:16 +010032lbu r3, (r1+-1)
33check_r3 0xfd
34
35test_name LBU_7
36load r3 data
37lbu r3, (r3+0)
38check_r3 0x7e
39
40end
41
42.data
43 .align 4
44 .byte 0x7a, 0x7b, 0x7c, 0x7d
45data:
46 .byte 0x7e, 0x7f, 0x70, 0x71
47 .byte 0xfa, 0xfb, 0xfc, 0xfd
48data_msb:
49 .byte 0xfe, 0xff, 0xf0, 0xf1