1.include "macros.inc" 2 3start 4 5test_name LHU_1 6load r1 data 7lhu r3, (r1+0) 8check_r3 0x7e7f 9 10test_name LHU_2 11lhu r3, (r1+2) 12check_r3 0x7071 13 14test_name LHU_3 15lhu r3, (r1+-2) 16check_r3 0x7c7d 17 18test_name LHU_4 19load r1 data_msb 20lhu r3, (r1+0) 21check_r3 0xfeff 22 23test_name LHU_5 24lhu r3, (r1+2) 25check_r3 0xf0f1 26 27test_name LHU_6 28lhu r3, (r1+-2) 29check_r3 0xfcfd 30 31test_name LHU_7 32load r3 data 33lhu r3, (r3+0) 34check_r3 0x7e7f 35 36end 37 38.data 39 .align 4 40 .byte 0x7a, 0x7b, 0x7c, 0x7d 41data: 42 .byte 0x7e, 0x7f, 0x70, 0x71 43 .byte 0xfa, 0xfb, 0xfc, 0xfd 44data_msb: 45 .byte 0xfe, 0xff, 0xf0, 0xf1 46