[PATCH 3/6] x86: new instruction - INSN_MOV_MEMDISP_REG

2009-06-02 Thread Tomek Grabiec
This instruction type is created with img_reg_insn(). It's similar to INSN_MOV_MEMBASE_REG but there is no register part in memory addressing, just 32-bit offset. It's useful when we want to load pointer value and we know the absolute memory location of the pointer variable. Signed-off-by: Tomek

[PATCH 6/6] regression: test ldiv and lrem for ArithmeticException

2009-06-02 Thread Tomek Grabiec
Signed-off-by: Tomek Grabiec tgrab...@gmail.com --- regression/jvm/ExceptionsTest.java |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/regression/jvm/ExceptionsTest.java b/regression/jvm/ExceptionsTest.java index 4606e0d..60a119b 100644 ---

[PATCH] bc2ir: fix converters array out-of-bound access

2009-06-02 Thread Arthur HUILLET
--- jit/bytecode-to-ir.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/jit/bytecode-to-ir.c b/jit/bytecode-to-ir.c index 0ad607e..19a0c29 100644 --- a/jit/bytecode-to-ir.c +++ b/jit/bytecode-to-ir.c @@ -371,6 +371,11 @@ static int do_convert_bb_to_ir(struct

[PATCH] test_convert_goto: empty basic blocks need OPC_NOP

2009-06-02 Thread Arthur HUILLET
An empty basic block is a block of size 1, with a JVM NOP instruction. Signed-off-by: Arthur HUILLET arthur.huil...@free.fr --- test/jit/branch-bc-test.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/test/jit/branch-bc-test.c b/test/jit/branch-bc-test.c index

[PATCH] regression: fix building of ObjectStackTest

2009-06-02 Thread Arthur HUILLET
Signed-off-by: Arthur HUILLET arthur.huil...@free.fr --- regression/jvm/ObjectStackTest.java |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/regression/jvm/ObjectStackTest.java b/regression/jvm/ObjectStackTest.java index f5afcbe..ee2184a 100644 ---

[PATCH 3/6] x86: new instruction INSN_MOV_THREAD_LOCAL_MEMDISP_REG

2009-06-02 Thread Tomek Grabiec
This instruction type is created with img_reg_insn(). It's similar to INSN_MOV_MEMBASE_REG but there is no register part in memory addressing, just 32-bit offset. It also uses GS segment for memory addressing (hence THREAD_LOCAL). This instruction will be used to load the value of a

[PATCH 6/6] regression: test ldiv and lrem for ArithmeticException

2009-06-02 Thread Tomek Grabiec
Signed-off-by: Tomek Grabiec tgrab...@gmail.com --- regression/jvm/ExceptionsTest.java |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/regression/jvm/ExceptionsTest.java b/regression/jvm/ExceptionsTest.java index 4606e0d..60a119b 100644 ---