<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Feb 5, 2017 at 8:05 AM, Dimitry Andric <span dir="ltr"><<a href="mailto:dimitry@andric.com" target="_blank">dimitry@andric.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Appending %= to the label name only works if you append at least one ':' to the asm statement, otherwise it isn't seen as a so-called "assembler template", apparently:</blockquote></div><br></div><div class="gmail_extra">Aha, ok, perfect, this results in LLVM IR:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">  tail call void asm sideeffect "named_label_${:uid}:\0Ajnz named_label_${:uid}\0A", "~{dirflag},~{fpsr},~{flags}"() #2, !dbg !20, !srcloc !25</div><div><br></div><div>So LLVM IR does in fact already support it, and my use case is solved. However, it is undocumented in <a href="http://llvm.org/docs/LangRef.html">http://llvm.org/docs/LangRef.html</a>. Might be night to add there for future developers.</div></div></div>