Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
4fec3351
Commit
4fec3351
authored
Sep 17, 2015
by
Christoph Mallon
Browse files
ia32: Simply assign the flags register unconditionally.
parent
a77befc1
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/bearch_ia32.c
View file @
4fec3351
...
...
@@ -451,16 +451,11 @@ static ir_node *ia32_turn_back_dest_am(ir_node *node)
ir_node
*
const
new_node
=
func
(
dbgi
,
block
,
noreg
,
noreg
,
nomem
,
load_res
,
operand
);
set_ia32_ls_mode
(
new_node
,
get_ia32_ls_mode
(
node
));
set_irn_mode
(
new_node
,
mode_T
);
ir_node
*
const
res_proj
=
be_new_Proj
(
new_node
,
pn_ia32_res
);
/* Fix out info of the flags Proj */
ir_node
*
flags_proj
=
get_Proj_for_pn
(
node
,
pn_ia32_flags
);
if
(
flags_proj
!=
NULL
)
{
arch_register_t
const
*
const
flags_reg
=
arch_get_irn_register
(
flags_proj
);
arch_set_irn_register_out
(
new_node
,
pn_ia32_flags
,
flags_reg
);
}
arch_set_irn_register_out
(
new_node
,
pn_ia32_flags
,
&
ia32_registers
[
REG_EFLAGS
]);
ir_node
*
const
store
=
new_bd_ia32_Store
(
dbgi
,
block
,
base
,
idx
,
load_mem
,
res_proj
);
ir_node
*
const
res_proj
=
be_new_Proj
(
new_node
,
pn_ia32_res
);
ir_node
*
const
store
=
new_bd_ia32_Store
(
dbgi
,
block
,
base
,
idx
,
load_mem
,
res_proj
);
ia32_copy_am_attrs
(
store
,
node
);
set_ia32_op_type
(
store
,
ia32_AddrModeD
);
sched_add_after
(
node
,
store
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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