Commit 900aa079 authored by Matthias Braun's avatar Matthias Braun
Browse files

amd64: Fix bug introduced in x87 rewrite

parent d33e0668
......@@ -2355,7 +2355,7 @@ static ir_node *gen_Store(ir_node *const node)
arch_register_req_t const **const reqs
= (mode_is_float(mode) ? (mode == x86_mode_E ? x87K_am_reqs
: xmm_am_reqs)
: gp_am_reqs)[arity];
: gp_am_reqs)[arity-1];
new_store_func const cons
= mode_is_float(mode) ? (mode == x86_mode_E ? &new_bd_amd64_fstp
......
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