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

sparc: need to reset alignment padding on SubSP/AddSP

After a SubSP the top end of the stack is used and not just unused
alignment padding anymore.
parent e610ea5c
......@@ -121,6 +121,8 @@ static void sparc_sp_sim(ir_node *const node, stack_pointer_state_t *state)
attr->immediate_value = -(aligned - prev_offset);
state->align_padding = aligned - new_offset;
state->offset = aligned;
} else if (is_sparc_SubSP(node) || is_sparc_AddSP(node)) {
state->align_padding = 0;
} else if (is_sparc_RestoreZero(node)) {
state->offset = 0;
state->align_padding = 0;
......
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