2006-06-04 Zoltan Varga <vargaz@gmail.com>
[mono.git] / mono / mini / inssel-long.brg
index 9f774f8ac07130dd1e5b9d712c1844c939469b14..d828f9952a5d83d234b6e3d55545fbce137ca780 100644 (file)
@@ -346,14 +346,14 @@ freg: OP_LCONV_TO_R_UN (lreg) {
 
 reg: CEE_CONV_OVF_I8 (reg) {
        /* Sign extend the value in the lower word into the upper word */
-       MONO_EMIT_BIALU_IMM (s, tree, OP_LSHR_IMM, state->reg1, state->left->reg1, 0);
+       MONO_EMIT_UNALU (s, tree, CEE_CONV_I8, state->reg1, state->left->reg1);
 }
 
 reg: CEE_CONV_OVF_I8_UN (reg),
 reg: CEE_CONV_OVF_U8_UN (reg) {
        /* an unsigned 32 bit num always fits in an (un)signed 64 bit one */
        /* Clean out the upper word */
-       MONO_EMIT_BIALU_IMM (s, tree, OP_ISHR_UN_IMM, state->reg1, state->left->reg1, 0);
+       MONO_EMIT_UNALU (s, tree, CEE_CONV_U8, state->reg1, state->left->reg1);
 }
 
 reg: CEE_CONV_OVF_U8 (reg) {