fixed debug output of unary x87 nodes
[libfirm] / ir / be / ppc32 / ppc32_emitter.c
index 228edfc..4a1a0f7 100644 (file)
@@ -454,11 +454,11 @@ static void emit_be_Copy(const ir_node *n, ppc32_emit_env_t *env) {
        FILE *F = env->out;
        const arch_register_class_t *regclass = arch_get_irn_reg_class(env->arch_env, n, 0);
 
-       if (regclass == &ppc32_reg_classes[CLASS_ppc32_general_purpose])
+       if (regclass == &ppc32_reg_classes[CLASS_ppc32_gp])
        {
                lc_efprintf(ppc32_get_arg_env(), F, "\tmr      %1D, %1S\t\t\t/* Move register */\n",n,n);
        }
-       else if (regclass == &ppc32_reg_classes[CLASS_ppc32_floating_point])
+       else if (regclass == &ppc32_reg_classes[CLASS_ppc32_fp])
        {
                lc_efprintf(ppc32_get_arg_env(), F, "\tfmr     %1D, %1S\t\t\t/* Move register */\n",n,n);
        }
@@ -476,13 +476,13 @@ static void emit_be_Perm(const ir_node *n, ppc32_emit_env_t *env) {
        FILE *F = env->out;
        const arch_register_class_t *regclass = arch_get_irn_reg_class(env->arch_env, n, 0);
 
-       if (regclass == &ppc32_reg_classes[CLASS_ppc32_general_purpose])
+       if (regclass == &ppc32_reg_classes[CLASS_ppc32_gp])
        {
                lc_efprintf(ppc32_get_arg_env(), F, "\txor     %1S, %1S, %2S\t\t\t/* Swap %1S, %2S with XOR */\n",n,n,n,n,n);
                lc_efprintf(ppc32_get_arg_env(), F, "\txor     %2S, %1S, %2S\t\t\t/* (continued) */\n",n,n,n);
                lc_efprintf(ppc32_get_arg_env(), F, "\txor     %1S, %1S, %2S\t\t\t/* (continued) */\n",n,n,n);
        }
-       else if (regclass == &ppc32_reg_classes[CLASS_ppc32_floating_point])
+       else if (regclass == &ppc32_reg_classes[CLASS_ppc32_fp])
        {
                lc_efprintf(ppc32_get_arg_env(), F, "\tfmr     f0, %1S\t\t\t/* Swap %1S, %2S with moves */\n",n,n,n);
                lc_efprintf(ppc32_get_arg_env(), F, "\tfmr     %1S, %2S\t\t\t/* (continued) */\n",n,n);
@@ -574,10 +574,10 @@ static void ppc32_register_emitters(void) {
  * Emits code for a node.
  */
 static void ppc32_emit_node(ir_node *irn, void *env) {
-       ppc32_emit_env_t *emit_env   = env;
-       firm_dbg_module_t *mod = emit_env->mod;
-       FILE              *F   = emit_env->out;
-       ir_op             *op = get_irn_op(irn);
+       ppc32_emit_env_t  *emit_env = env;
+       FILE              *F        = emit_env->out;
+       ir_op             *op       = get_irn_op(irn);
+       DEBUG_ONLY(firm_dbg_module_t *mod = emit_env->mod;)
 
        DBG((mod, LEVEL_1, "emitting code for %+F\n", irn));