Commit c78283c1 authored by Matthias Braun's avatar Matthias Braun
Browse files

amd64: fix wrong parameter order

Didn't notice this before because gcc doesn't report a warning for this,
clang does.
parent 2f19eeaa
......@@ -121,7 +121,7 @@ static ir_node *amd64_turn_back_am(ir_node *node)
load_in[load_arity++] = get_irn_n(node, attr->addr.mem_input);
ir_node *load = new_bd_amd64_Mov(dbgi, block, load_arity, load_in,
AMD64_OP_ADDR, attr->insn_mode, new_addr);
attr->insn_mode, AMD64_OP_ADDR, new_addr);
ir_node *load_res = new_r_Proj(load, mode_Lu, pn_amd64_Mov_res);
/* change operation */
......@@ -287,8 +287,8 @@ static ir_node *gen_Address(ir_node *node)
} else {
assert(mode == REFERENCE_GOT);
addr.immediate.entity = new_got_entry_entity(entity);
ir_node *load = new_bd_amd64_Mov(dbgi, block, 0, NULL, AMD64_OP_ADDR,
INSN_MODE_64, addr);
ir_node *load = new_bd_amd64_Mov(dbgi, block, 0, NULL, INSN_MODE_64,
AMD64_OP_ADDR, addr);
return new_r_Proj(load, mode_gp, pn_amd64_Mov_res);
Supports Markdown
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