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
c6db706e
Commit
c6db706e
authored
Nov 24, 2014
by
Christoph Mallon
Browse files
ia32: Deduce the mode of fdup from the given value.
parent
924baa3b
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/ia32_spec.pl
View file @
c6db706e
...
...
@@ -2091,9 +2091,11 @@ fpush => {
fdup
=>
{
reg_req
=>
{
in
=>
[
"
fp
"
],
out
=>
[
"
fp
"
]
},
ins
=>
[
"
val
"
],
attrs_equal
=>
"
attrs_equal_false
",
emit
=>
"
fld %F0
",
attr_type
=>
"
ia32_x87_attr_t
",
mode
=>
"
get_irn_mode(val)
",
latency
=>
1
,
},
...
...
ir/be/ia32/ia32_x87.c
View file @
c6db706e
...
...
@@ -1095,8 +1095,7 @@ static ir_node *create_Copy(x87_state *state, ir_node *n)
set_nodes_block
(
res
,
block
);
}
else
{
dbg_info
*
const
dbgi
=
get_irn_dbg_info
(
n
);
ir_mode
*
const
mode
=
get_irn_mode
(
n
);
res
=
new_bd_ia32_fdup
(
dbgi
,
block
,
pred
,
mode
);
res
=
new_bd_ia32_fdup
(
dbgi
,
block
,
pred
);
ia32_x87_attr_t
*
const
attr
=
get_ia32_x87_attr
(
res
);
unsigned
const
op1_idx
=
x87_on_stack_val
(
state
,
pred
);
...
...
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