<div dir="ltr"><div><div>Hi Tom,<br><br></div><div>Thanks.<br></div>It should be always ABC.<br></div>What should be the iops? just (ins i8imm:$val)? what would be the placeholder for a constant string in "ins"?<br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 5, 2015 at 4:33 PM, Tom Stellard <span dir="ltr"><<a href="mailto:tom@stellard.net" target="_blank">tom@stellard.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, Nov 05, 2015 at 03:20:45PM +0100, Sky Flyer via llvm-dev wrote:<br>
> Hello all,<br>
><br>
> how can one can describe a constant string as an operand in the assembly<br>
> instruction?<br>
><br>
> for example imagine this instruction:<br>
><br>
> xyz 14 ABC<br>
><br>
> where "xyz" is the operator, 14 is an immediate value, and because of<br>
> assembly dialect, there should be a constant string with the value of ABC<br>
> follow the immediate value. How is this possible?<br>
><br>
> What should be the dat describing the instruction?<br>
><br>
> string asm = "xyz $val ABC"<br>
<br>
</span>Can this be an arbitrary string or will it always be ABC?  If it's the later,<br>
then what you've posted above should work for the asm string.<br>
<br>
-Tom<br>
<span class=""><br>
> dag iops = (ins i8imm:val, ... )<br>
><br>
><br>
> Cheers,<br>
> ES<br>
<br>
</span>> _______________________________________________<br>
> LLVM Developers mailing list<br>
> <a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
<br>
</blockquote></div><br></div>