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

ia32: Rename fpushCopy to fdup.

parent 01fa0b51
......@@ -3070,7 +3070,7 @@ static void bemit_fpush(const ir_node *node)
bemit_fop_reg(node, 0xD9, 0xC0);
}
static void bemit_fpushcopy(const ir_node *node)
static void bemit_fdup(const ir_node *node)
{
bemit_fop_reg(node, 0xD9, 0xC0);
}
......@@ -3251,7 +3251,7 @@ static void ia32_register_binary_emitters(void)
be_set_emitter(op_ia32_fmul, bemit_fmul);
be_set_emitter(op_ia32_fpop, bemit_fpop);
be_set_emitter(op_ia32_fpush, bemit_fpush);
be_set_emitter(op_ia32_fpushCopy, bemit_fpushcopy);
be_set_emitter(op_ia32_fdup, bemit_fdup);
be_set_emitter(op_ia32_fst, bemit_fst);
be_set_emitter(op_ia32_fsub, bemit_fsub);
be_set_emitter(op_ia32_fxch, bemit_fxch);
......
......@@ -91,13 +91,13 @@ static bool has_ia32_x87_attr(ir_node const *const node)
case iro_ia32_FucomppFnstsw:
case iro_ia32_fadd:
case iro_ia32_fdiv:
case iro_ia32_fdup:
case iro_ia32_ffreep:
case iro_ia32_fist:
case iro_ia32_fisttp:
case iro_ia32_fmul:
case iro_ia32_fpop:
case iro_ia32_fpush:
case iro_ia32_fpushCopy:
case iro_ia32_fst:
case iro_ia32_fsub:
case iro_ia32_fxch:
......
......@@ -2089,7 +2089,7 @@ fpush => {
latency => 1,
},
fpushCopy => {
fdup => {
reg_req => { in => [ "fp" ], out => [ "fp" ] },
attrs_equal => "attrs_equal_false",
emit => "fld %F0",
......
......@@ -1093,7 +1093,7 @@ static ir_node *create_Copy(x87_state *state, ir_node *n)
} else {
dbg_info *const dbgi = get_irn_dbg_info(n);
ir_mode *const mode = get_irn_mode(n);
res = new_bd_ia32_fpushCopy(dbgi, block, pred, mode);
res = new_bd_ia32_fdup(dbgi, block, pred, mode);
ia32_x87_attr_t *const attr = get_ia32_x87_attr(res);
arch_register_t const *const op1 = arch_get_irn_register(pred);
......@@ -1128,7 +1128,7 @@ static void sim_Copy(x87_state *state, ir_node *n)
if (is_fp_live(op1->index, live)) {
/* Operand is still live, a real copy. We need here an fpush that can
hold a a register, so use the fpushCopy or recreate constants */
hold a a register, so use a fdup or recreate constants */
ir_node *const node = create_Copy(state, n);
sched_replace(n, node);
exchange(n, node);
......
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