summaryrefslogtreecommitdiffhomepage
path: root/ir/be/mips
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2019-03-04 09:13:02 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2019-04-05 20:44:54 +0200
commitfd82a980b216595e52e27c9ea0e249db0dccda74 (patch)
treedd26fe8287bdfcc7f28097f89d7732e3910cc5fa /ir/be/mips
parent60d0bc93afef8023bf7a940a85c94724490becd1 (diff)
beasm: Tell the backends how to handle the fallthrough exec output of be_Asm.
Diffstat (limited to 'ir/be/mips')
-rw-r--r--ir/be/mips/mips_emitter.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ir/be/mips/mips_emitter.c b/ir/be/mips/mips_emitter.c
index c3e62ef..14811f9 100644
--- a/ir/be/mips/mips_emitter.c
+++ b/ir/be/mips/mips_emitter.c
@@ -149,7 +149,9 @@ static void emit_jmp(ir_node const *const node, ir_node const *const target)
static void emit_be_ASM(const ir_node *node)
{
- be_emit_asm(node, &emit_mips_asm_operand);
+ ir_node const *const fallthrough = be_emit_asm(node, &emit_mips_asm_operand);
+ if (fallthrough)
+ emit_jmp(node, fallthrough);
}
static void emit_be_Copy(ir_node const *const node)