1#include "macros.h" 2.data 3test_data: 4 .word 0xaffedead 5 .word 0x001122ff 6.text 7.global _start 8_start: 9# expect. addr reg val after load 10# insn num expect. load value | pattern for loading 11# | | | | | 12 TEST_LD (ld.h, 1, 0xffffaffe, MEM_BASE_ADDR, [AREG_ADDR]2) 13 TEST_LD_SRO(ld.h, 2, 0x000022ff, MEM_BASE_ADDR, [AREG_ADDR]4) 14 15 TEST_PASSFAIL 16