* mini-codegen.c (mono_local_regalloc): Make free mask
[mono.git] / mono / mini / decompose.c
index 359163009e0214921bc77ea8fd455b44ee9a65f7..5a5f1c9cd34861fd696852ca16c349c46421a48f 100644 (file)
@@ -10,6 +10,8 @@
 #include "mini.h"
 #include "ir-emit.h"
 
+#ifndef DISABLE_JIT
+
 /* FIXME: This conflicts with the definition in mini.c, so it cannot be moved to mini.h */
 MonoInst* mono_emit_native_call (MonoCompile *cfg, gconstpointer func, MonoMethodSignature *sig, MonoInst **args);
 void mini_emit_stobj (MonoCompile *cfg, MonoInst *dest, MonoInst *src, MonoClass *klass, gboolean native);
@@ -164,7 +166,7 @@ mono_decompose_opcode (MonoCompile *cfg, MonoInst *ins)
                MONO_EMIT_NEW_BIALU_IMM (cfg, OP_ISHR_UN_IMM, ins->dreg, ins->sreg1, 0);
                ins->opcode = OP_NOP;
                break;
-#if defined(__ppc__)
+#if defined(__ppc__) || defined(__powerpc__)
        case OP_LADD_OVF:
                /* ADC sets the condition code */
                MONO_EMIT_NEW_BIALU (cfg, OP_ADDCC, ins->dreg + 1, ins->sreg1 + 1, ins->sreg2 + 1);
@@ -666,7 +668,7 @@ mono_decompose_long_opts (MonoCompile *cfg)
                                MONO_EMIT_NEW_BIALU (cfg, OP_ISBB, tree->dreg + 2, tree->sreg1 + 2, tree->sreg2 + 2);
                                break;
 
-#if defined(__ppc__)
+#if defined(__ppc__) || defined(__powerpc__)
                        case OP_LADD_OVF:
                                /* ADC sets the condition code */
                                MONO_EMIT_NEW_BIALU (cfg, OP_ADDCC, tree->dreg + 1, tree->sreg1 + 1, tree->sreg2 + 1);
@@ -745,7 +747,7 @@ mono_decompose_long_opts (MonoCompile *cfg)
 #elif defined(__arm__)
                                MONO_EMIT_NEW_BIALU_IMM (cfg, OP_ARM_RSBS_IMM, tree->dreg + 1, tree->sreg1 + 1, 0);
                                MONO_EMIT_NEW_BIALU_IMM (cfg, OP_ARM_RSC_IMM, tree->dreg + 2, tree->sreg1 + 2, 0);
-#elif defined(__ppc__)
+#elif defined(__ppc__) || defined(__powerpc__)
                                /* This is the old version from inssel-long32.brg */
                                MONO_EMIT_NEW_UNALU (cfg, OP_INOT, tree->dreg + 1, tree->sreg1 + 1);
                                MONO_EMIT_NEW_UNALU (cfg, OP_INOT, tree->dreg + 2, tree->sreg1 + 2);
@@ -1053,7 +1055,7 @@ mono_decompose_vtype_opts (MonoCompile *cfg)
                gboolean restart;
                int dreg;
 
-               if (cfg->verbose_level > 1) mono_print_bb (bb, "BEFORE LOWER-VTYPE-OPTS ");
+               if (cfg->verbose_level > 2) mono_print_bb (bb, "BEFORE LOWER-VTYPE-OPTS ");
 
                cfg->cbb->code = cfg->cbb->last_ins = NULL;
                restart = TRUE;
@@ -1236,6 +1238,8 @@ mono_decompose_vtype_opts (MonoCompile *cfg)
                        }
                }
 
-               if (cfg->verbose_level > 1) mono_print_bb (bb, "AFTER LOWER-VTYPE-OPTS ");
+               if (cfg->verbose_level > 2) mono_print_bb (bb, "AFTER LOWER-VTYPE-OPTS ");
        }
 }
+
+#endif /* DISABLE_JIT */