Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
c2433fa1
Commit
c2433fa1
authored
Aug 10, 2006
by
Sebastian Hack
Browse files
Fixed a bug in register class handling of AddSP
parent
55347641
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/benode.c
View file @
c2433fa1
...
...
@@ -507,7 +507,7 @@ ir_node *be_new_IncSP(const arch_register_t *sp, ir_graph *irg, ir_node *bl, ir_
/* Set output constraint to stack register. */
be_node_set_reg_class
(
irn
,
0
,
sp
->
reg_class
);
be_set_constr_single_reg
(
irn
,
-
1
,
sp
);
be_set_constr_single_reg
(
irn
,
BE_OUT_POS
(
0
)
,
sp
);
be_node_set_irn_reg
(
NULL
,
irn
,
sp
);
return
irn
;
...
...
@@ -528,6 +528,8 @@ ir_node *be_new_AddSP(const arch_register_t *sp, ir_graph *irg, ir_node *bl, ir_
be_node_set_flags
(
irn
,
OUT_POS
(
0
),
arch_irn_flags_ignore
|
arch_irn_flags_modify_sp
);
/* Set output constraint to stack register. */
be_set_constr_single_reg
(
irn
,
be_pos_AddSP_old_sp
,
sp
);
be_node_set_reg_class
(
irn
,
be_pos_AddSP_size
,
arch_register_get_class
(
sp
));
be_set_constr_single_reg
(
irn
,
OUT_POS
(
0
),
sp
);
return
irn
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment