* src/vm/jit/allocator/simplereg.c (new_allocate_scratch_registers):
authoredwin <none@none>
Fri, 14 Jul 2006 16:54:11 +0000 (16:54 +0000)
committeredwin <none@none>
Fri, 14 Jul 2006 16:54:11 +0000 (16:54 +0000)
Fixed dupslots indices for ICMD_DUP_X1.

src/vm/jit/allocator/simplereg.c

index 540498b9e905d9e546aeac7148ec1aaee2fe98b6..72f2ad31168ff4fb4415710be5ba6f582b98c7f6 100644 (file)
@@ -32,7 +32,7 @@
             Michael Starzinger
             Edwin Steiner
 
-   $Id: simplereg.c 5096 2006-07-10 14:02:25Z twisti $
+   $Id: simplereg.c 5131 2006-07-14 16:54:11Z edwin $
 
 */
 
@@ -1534,7 +1534,7 @@ static void new_allocate_scratch_registers(jitdata *jd)
                                        /* src       --> dst             (copied value, take same reg/mem) */
                                        /* src       --> dst->prev->prev (copied value, take same reg/mem) */
                                                                                                
-                                       if (!reg_alloc_dup(iptr->dst.dupslots[2], iptr->dst.dupslots[2+0]))
+                                       if (!reg_alloc_dup(iptr->dst.dupslots[1], iptr->dst.dupslots[2+0]))
                                                reg_new_temp(rd, iptr->dst.dupslots[2+0]);
                                        if (!reg_alloc_dup(iptr->dst.dupslots[1], iptr->dst.dupslots[2+2]))
                                                reg_new_temp(rd, iptr->dst.dupslots[2+2]);