* src/vm/jit/mips/codegen.c: LAND/LOR/LXOR fixes.
authorStefan Ring <stefan@complang.tuwien.ac.at>
Wed, 7 Oct 2009 11:54:48 +0000 (13:54 +0200)
committerStefan Ring <stefan@complang.tuwien.ac.at>
Wed, 7 Oct 2009 11:54:48 +0000 (13:54 +0200)
Patch by Joe Buehler <aspam@cox.net>
http://c1.complang.tuwien.ac.at/pipermail/cacao/2009-September/001146.html

src/vm/jit/mips/codegen.c

index ebc4b52172093d61a1fbf92ef2cec8ce1e1665f4..f0896927624c88c9700e1f37dc8b46abba1652bf 100644 (file)
@@ -1010,7 +1010,7 @@ void codegen_emit_instruction(jitdata* jd, instruction* iptr)
                        s2 = emit_load_s2_low(jd, iptr, REG_ITMP3);
                        d = codegen_reg_of_dst(jd, iptr, REG_ITMP12_PACKED);
                        M_AND(s1, s2, GET_LOW_REG(d));
-                       s1 = emit_load_s1_high(jd, iptr, REG_ITMP2);
+                       s1 = emit_load_s1_high(jd, iptr, REG_ITMP1);
                        s2 = emit_load_s2_high(jd, iptr, REG_ITMP3);
                        M_AND(s1, s2, GET_HIGH_REG(d));
 #endif
@@ -1082,7 +1082,7 @@ void codegen_emit_instruction(jitdata* jd, instruction* iptr)
                        s2 = emit_load_s2_low(jd, iptr, REG_ITMP3);
                        d = codegen_reg_of_dst(jd, iptr, REG_ITMP12_PACKED);
                        M_OR(s1, s2, GET_LOW_REG(d));
-                       s1 = emit_load_s1_high(jd, iptr, REG_ITMP2);
+                       s1 = emit_load_s1_high(jd, iptr, REG_ITMP1);
                        s2 = emit_load_s2_high(jd, iptr, REG_ITMP3);
                        M_OR(s1, s2, GET_HIGH_REG(d));
 #endif
@@ -1154,7 +1154,7 @@ void codegen_emit_instruction(jitdata* jd, instruction* iptr)
                        s2 = emit_load_s2_low(jd, iptr, REG_ITMP3);
                        d = codegen_reg_of_dst(jd, iptr, REG_ITMP12_PACKED);
                        M_XOR(s1, s2, GET_LOW_REG(d));
-                       s1 = emit_load_s1_high(jd, iptr, REG_ITMP2);
+                       s1 = emit_load_s1_high(jd, iptr, REG_ITMP1);
                        s2 = emit_load_s2_high(jd, iptr, REG_ITMP3);
                        M_XOR(s1, s2, GET_HIGH_REG(d));
 #endif