Signed-off-by: Tomek Grabiec <tgrab...@gmail.com> --- arch/x86/emit-code.c | 9 +++++++++ arch/x86/include/arch/instruction.h | 1 + arch/x86/lir-printer.c | 7 +++++++ arch/x86/use-def.c | 1 + 4 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/arch/x86/emit-code.c b/arch/x86/emit-code.c index 7e3e492..5ce2672 100644 --- a/arch/x86/emit-code.c +++ b/arch/x86/emit-code.c @@ -1385,6 +1385,14 @@ static void emit_mov_xmm_membase(struct buffer *buf, struct operand *src, emit_membase_reg(buf, 0x11, dest, src); } +static void emit_mov_xmm_memdisp(struct buffer *buf, struct operand *src, + struct operand *dest) +{ + emit(buf, 0xf3); + emit(buf, 0x0f); + __emit_reg_memdisp(buf, 0x11, mach_reg(&src->reg), dest->imm); +} + static void emit_jmp_memindex(struct buffer *buf, struct operand *target) { emit(buf, 0xff); @@ -1439,6 +1447,7 @@ struct emitter emitters[] = { DECL_EMITTER(INSN_MOV_REG_THREAD_LOCAL_MEMDISP, emit_mov_reg_thread_local_memdisp, TWO_OPERANDS), DECL_EMITTER(INSN_MOV_FREG_MEMLOCAL, emit_mov_freg_memlocal, TWO_OPERANDS), DECL_EMITTER(INSN_MOV_REG_REG, emit_mov_reg_reg, TWO_OPERANDS), + DECL_EMITTER(INSN_MOV_XMM_MEMDISP, emit_mov_xmm_memdisp, TWO_OPERANDS), DECL_EMITTER(INSN_MOV_XMM_XMM, emit_mov_xmm_xmm, TWO_OPERANDS), DECL_EMITTER(INSN_MOVSX_8_REG_REG, emit_movsx_8_reg_reg, TWO_OPERANDS), DECL_EMITTER(INSN_MOVSX_16_REG_REG, emit_movsx_16_reg_reg, TWO_OPERANDS), diff --git a/arch/x86/include/arch/instruction.h b/arch/x86/include/arch/instruction.h index 4345e88..30d420f 100644 --- a/arch/x86/include/arch/instruction.h +++ b/arch/x86/include/arch/instruction.h @@ -110,6 +110,7 @@ enum insn_type { INSN_MOV_REG_REG, INSN_MOV_MEMBASE_XMM, INSN_MOV_XMM_MEMBASE, + INSN_MOV_XMM_MEMDISP, INSN_MOV_XMM_XMM, INSN_MOVSX_8_REG_REG, INSN_MOVSX_16_REG_REG, diff --git a/arch/x86/lir-printer.c b/arch/x86/lir-printer.c index 15ed4bb..5833d28 100644 --- a/arch/x86/lir-printer.c +++ b/arch/x86/lir-printer.c @@ -462,6 +462,12 @@ static int print_mov_reg_memdisp(struct string *str, struct insn *insn) return print_reg_memdisp(str, insn); } +static int print_mov_xmm_memdisp(struct string *str, struct insn *insn) +{ + print_func_name(str); + return print_reg_memdisp(str, insn); +} + static int print_mov_tlmemdisp_reg(struct string *str, struct insn *insn) { print_func_name(str); @@ -771,6 +777,7 @@ static print_insn_fn insn_printers[] = { [INSN_MOV_REG_THREAD_LOCAL_MEMDISP] = print_mov_reg_tlmemdisp, [INSN_MOV_FREG_MEMLOCAL] = print_mov_freg_memlocal, [INSN_MOV_REG_REG] = print_mov_reg_reg, + [INSN_MOV_XMM_MEMDISP] = print_mov_xmm_memdisp, [INSN_MOV_XMM_XMM] = print_mov_xmm_xmm, [INSN_MOVSX_8_REG_REG] = print_movsx_8_reg_reg, [INSN_MOVSX_16_REG_REG] = print_movsx_16_reg_reg, diff --git a/arch/x86/use-def.c b/arch/x86/use-def.c index b6d7014..e0abf6a 100644 --- a/arch/x86/use-def.c +++ b/arch/x86/use-def.c @@ -93,6 +93,7 @@ static struct insn_info insn_infos[] = { DECLARE_INFO(INSN_MOV_REG_THREAD_LOCAL_MEMDISP, USE_SRC | DEF_NONE), DECLARE_INFO(INSN_MOV_FREG_MEMLOCAL, USE_SRC), DECLARE_INFO(INSN_MOV_REG_REG, USE_SRC | DEF_DST), + DECLARE_INFO(INSN_MOV_XMM_MEMDISP, USE_SRC | DEF_NONE), DECLARE_INFO(INSN_MOV_XMM_XMM, USE_SRC | DEF_DST), DECLARE_INFO(INSN_MOVSX_8_REG_REG, USE_SRC | DEF_DST), DECLARE_INFO(INSN_MOVSX_16_REG_REG, USE_SRC | DEF_DST), -- 1.6.0.6 ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Jatovm-devel mailing list Jatovm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jatovm-devel