示例#1
0
void test_emit_mov_memindex_reg(void)
{
	assert_emit_insn_3(0x8b, 0x0c, 0x18, memindex_reg_insn(INSN_MOV_MEMINDEX_REG, &VAR_EAX, &VAR_EBX, 0, &VAR_ECX));
	assert_emit_insn_3(0x8b, 0x14, 0x4b, memindex_reg_insn(INSN_MOV_MEMINDEX_REG, &VAR_EBX, &VAR_ECX, 1, &VAR_EDX));
}
示例#2
0
void test_memindex_reg_uses_source_defines_target(void)
{
	assert_uses_r0_and_r1_defines_r2(memindex_reg_insn(INSN_MOV_MEMINDEX_REG, &r0, &r1, 0, &r2));
}