Signed-off-by: Tomek Grabiec <[email protected]>
---
 jit/bytecode-to-ir.c |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/jit/bytecode-to-ir.c b/jit/bytecode-to-ir.c
index c4c3f9b..f9caa72 100644
--- a/jit/bytecode-to-ir.c
+++ b/jit/bytecode-to-ir.c
@@ -271,7 +271,11 @@ assign_temporary(struct basic_block *bb, int entry, int 
slot_ndx,
                                expr->slot_ndx != slot_ndx)
                        continue;
 
-               expr_set_type(expr, EXPR_TEMPORARY);
+               if (vm_type_is_float(expr->vm_type))
+                       expr_set_type(expr, EXPR_FLOAT_TEMPORARY);
+               else
+                       expr_set_type(expr, EXPR_TEMPORARY);
+
                expr->tmp_high = tmp_high;
                expr->tmp_low = tmp_low;
        }
@@ -321,11 +325,13 @@ static void pick_and_propagate_temporaries(struct 
basic_block *bb, bool entry)
                if (expr->entry != entry)
                        continue;
 
-               tmp_low = get_var(bb->b_parent, J_INT);
-               if (expr->vm_type == J_LONG)
+               if (expr->vm_type == J_LONG) {
                        tmp_high = get_var(bb->b_parent, J_INT);
-               else
+                       tmp_low = get_var(bb->b_parent, J_INT);
+               } else {
+                       tmp_low = get_var(bb->b_parent, expr->vm_type);
                        tmp_high = NULL;
+               }
 
                /* Save the slot number */
                slot_ndx = expr->slot_ndx;
-- 
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

Reply via email to