projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
036ede1
)
sparc: fix mode of Ldf Projs
author
Matthias Braun
<matze@braunis.de>
Tue, 16 Aug 2011 11:26:19 +0000
(13:26 +0200)
committer
Matthias Braun
<matze@braunis.de>
Wed, 17 Aug 2011 13:33:26 +0000
(15:33 +0200)
ir/be/sparc/sparc_transform.c
patch
|
blob
|
history
diff --git
a/ir/be/sparc/sparc_transform.c
b/ir/be/sparc/sparc_transform.c
index
269ab79
..
c79c07c
100644
(file)
--- 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);
}