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
03df82c8
Commit
03df82c8
authored
Apr 14, 2006
by
Christian Würdig
Browse files
copy result mode on final transformations (lea->add and sub->neg-add)
parent
150afbaf
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/ia32_transform.c
View file @
03df82c8
...
...
@@ -2039,6 +2039,7 @@ void ia32_transform_sub_to_neg_add(ir_node *irn, ia32_code_gen_t *cg) {
set_ia32_am_support
(
res
,
ia32_am_Full
);
set_ia32_commutative
(
res
);
}
set_ia32_res_mode
(
res
,
tenv
.
mode
);
SET_IA32_ORIG_NODE
(
res
,
ia32_get_old_node_name
(
tenv
.
cg
,
irn
));
/* copy register */
...
...
@@ -2152,6 +2153,7 @@ void ia32_transform_lea_to_add(ir_node *irn, ia32_code_gen_t *cg) {
arch_set_irn_register
(
cg
->
arch_env
,
res
,
out_reg
);
set_ia32_op_type
(
res
,
ia32_Normal
);
set_ia32_commutative
(
res
);
set_ia32_res_mode
(
res
,
tenv
.
mode
);
if
(
imm
)
{
set_ia32_cnst
(
res
,
offs
);
...
...
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