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

fix sparc stack offset emitter

[r27783]
parent 1841e1ec
......@@ -163,8 +163,9 @@ void sparc_emit_offset(const ir_node *node)
const sparc_load_store_attr_t *attr = get_sparc_load_store_attr_const(node);
assert(attr->base.is_load_store);
if (attr->offset > 0)
be_emit_irprintf("+%ld", attr->offset);
if (attr->offset != 0) {
be_emit_irprintf("%+ld", attr->offset);
}
}
......
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