Commit 84fcb507 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

be: Handle '%=' in asm.

parent 3a821ba5
......@@ -314,6 +314,15 @@ void be_emit_asm(ir_node const *const asmn, be_emit_asm_operand_func *const emit
case '=':
/* From gcc source:
* %= outputs a number which is unique to each insn in the entire
* compilation. This is useful for making local labels that are
* referred to more than once in a given insn. */
++s; /* Skip '='. */
be_emit_irprintf("%ld", get_irn_node_nr(asmn));
default: {
char const modifier = isalpha((unsigned char)*s) ? *s++ : '\0';
unsigned pos;
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