sparc: fix wrong mode on Div result
authorMatthias Braun <matze@braunis.de>
Thu, 26 Jan 2012 17:57:18 +0000 (18:57 +0100)
committerMatthias Braun <matze@braunis.de>
Thu, 9 Feb 2012 17:01:51 +0000 (18:01 +0100)
ir/be/sparc/sparc_transform.c

index f9aac17..310f575 100644 (file)
@@ -2275,7 +2275,7 @@ static ir_node *gen_Proj_Div(ir_node *node)
        case pn_Div_res:
                return new_r_Proj(new_pred, res_mode, pn_sparc_SDiv_res);
        case pn_Div_M:
-               return new_r_Proj(new_pred, mode_gp, pn_sparc_SDiv_M);
+               return new_r_Proj(new_pred, mode_M, pn_sparc_SDiv_M);
        default:
                break;
        }