* ProtectedConfigurationProvider.cs:
[mono.git] / mono / mini / inssel-long.brg
index 944f498b4b772b3f3cdc50f3426b5fe096cc9f83..f9a9b46d39b80cc33d9cc65815fde17a037b3c53 100644 (file)
@@ -125,12 +125,17 @@ reg: OP_LSHR_UN (reg, OP_ICONST) {
 
 reg: CEE_CONV_I8 (reg) {
        /* Sign extend the value in the lower word into the upper word */
-       MONO_EMIT_BIALU_IMM (s, tree, OP_SHR_IMM, state->reg1, state->left->reg1, 0);
+       tree->sreg1 = state->left->reg1;
+       tree->dreg = state->reg1;
+       mono_bblock_add_inst (s->cbb, tree);    
 }
 
 reg: CEE_CONV_U8 (reg) {
        /* Clean out the upper word */
-       MONO_EMIT_BIALU_IMM (s, tree, OP_SHR_UN_IMM, state->reg1, state->left->reg1, 0);
+       /* Sign extend the value in the lower word into the upper word */
+       tree->sreg1 = state->left->reg1;
+       tree->dreg = state->reg1;
+       mono_bblock_add_inst (s->cbb, tree);
 }
 
 i8con: CEE_CONV_U8 (OP_ICONST) "0" {