Commit c6db706e authored by Christoph Mallon's avatar Christoph Mallon
Browse files

ia32: Deduce the mode of fdup from the given value.

parent 924baa3b
......@@ -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,
},
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment