Skip to content

Commit 2bec50c

Browse files
committed
Add warning for _RET_ in (fast) inline assembly
1 parent 36848eb commit 2bec50c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backends/asm/inlineasm.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,9 @@ CompileInlineInstr_only(IRList *irl, AST *ast, bool isInFcache)
402402
}
403403
if (condbits==0 && gl_p2) {
404404
IR *newir = NewIR(OPC_RET);
405+
newir->next = ir->next;
405406
ir->next = newir;
406-
//ERROR(ast, "Cannot handle _ret_ on instruction in inline asm; convert to regular ret for flexspin compatibility");
407+
WARNING(ast, "Cannot handle _ret_ on instruction in fast inline asm; inserting RET");
407408
} else {
408409
ir->cond = (IRCond)(condbits^15);
409410
}

0 commit comments

Comments
 (0)