From: Matthias Braun Date: Tue, 16 Aug 2011 11:26:19 +0000 (+0200) Subject: sparc: fix mode of Ldf Projs X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=615c945f19859681949026e6037799bc2c8a7bbd;p=libfirm sparc: fix mode of Ldf Projs --- diff --git a/ir/be/sparc/sparc_transform.c b/ir/be/sparc/sparc_transform.c index 269ab79e5..c79c07c34 100644 --- a/ir/be/sparc/sparc_transform.c +++ b/ir/be/sparc/sparc_transform.c @@ -1922,7 +1922,10 @@ static ir_node *gen_Proj_Load(ir_node *node) break; case iro_sparc_Ldf: if (pn == pn_Load_res) { - return new_rd_Proj(dbgi, new_load, mode_fp, pn_sparc_Ldf_res); + const sparc_load_store_attr_t *attr + = get_sparc_load_store_attr_const(new_load); + ir_mode *mode = attr->load_store_mode; + return new_rd_Proj(dbgi, new_load, mode, pn_sparc_Ldf_res); } else if (pn == pn_Load_M) { return new_rd_Proj(dbgi, new_load, mode_M, pn_sparc_Ld_M); }