Signed-off-by: Tomek Grabiec <[email protected]>
---
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 f6f59c2..7e3e492 100644
--- a/arch/x86/emit-code.c
+++ b/arch/x86/emit-code.c
@@ -1361,6 +1361,14 @@ static void emit_conv_fpu_to_gpr(struct buffer *buf,
struct operand *src,
emit_reg_reg(buf, 0x2d, dest, src);
}
+static void emit_mov_xmm_xmm(struct buffer *buf, struct operand *src,
+ struct operand *dest)
+{
+ emit(buf, 0xf3);
+ emit(buf, 0x0f);
+ emit_reg_reg(buf, 0x10, dest, src);
+}
+
static void emit_mov_membase_xmm(struct buffer *buf, struct operand *src,
struct operand *dest)
{
@@ -1431,6 +1439,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_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),
DECL_EMITTER(INSN_MOVZX_16_REG_REG, emit_movzx_16_reg_reg,
TWO_OPERANDS),
diff --git a/arch/x86/include/arch/instruction.h
b/arch/x86/include/arch/instruction.h
index 3220a53..4345e88 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_XMM,
INSN_MOVSX_8_REG_REG,
INSN_MOVSX_16_REG_REG,
INSN_MOVZX_16_REG_REG,
diff --git a/arch/x86/lir-printer.c b/arch/x86/lir-printer.c
index a9bcaff..15ed4bb 100644
--- a/arch/x86/lir-printer.c
+++ b/arch/x86/lir-printer.c
@@ -528,6 +528,12 @@ static int print_mov_reg_reg(struct string *str, struct
insn *insn)
return print_reg_reg(str, insn);
}
+static int print_mov_xmm_xmm(struct string *str, struct insn *insn)
+{
+ print_func_name(str);
+ return print_reg_reg(str, insn);
+}
+
static int print_movsx_8_reg_reg(struct string *str, struct insn *insn)
{
print_func_name(str);
@@ -765,6 +771,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_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,
[INSN_MOVZX_16_REG_REG] = print_movzx_16_reg_reg,
diff --git a/arch/x86/use-def.c b/arch/x86/use-def.c
index db02bb3..b6d7014 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_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),
DECLARE_INFO(INSN_MOVZX_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
[email protected]
https://lists.sourceforge.net/lists/listinfo/jatovm-devel