Hey Wei-zhi,<div><br></div><div>I also had this issue with the X86 backend. And, unfortunately, searching for the warning did not turn up too much information. My solution was to emit a raw 0x66 byte in place of the data16 prefix. I believe those are equivalent and the assembler is much happier about it...</div>
<div><br></div><div><div>> #if LLVM_31_MERGE</div><div>>    SmallString<11> byte;</div><div>>    byte = "\t.byte 0x66";</div><div>>    OutStreamer.EmitRawText(byte);</div><div>>#else /* LLVM_31_MERGE */</div>
<div>>    prefix.setOpcode(X86::DATA16_PREFIX);</div><div>>    OutStreamer.EmitInstruction(prefix);</div><div>>#endif /* LLVM_31_MERGE */</div></div><div><br></div><div>-Cameron<br><br><div class="gmail_quote">On Fri, Aug 17, 2012 at 12:27 PM, Wei-zhi Liao <span dir="ltr"><<a href="mailto:giggle@zillians.com" target="_blank">giggle@zillians.com</a>></span> wrote:</div>
<div class="gmail_quote">...<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>I think it is the logic to generate data16 instruction, but I wonder why gcc report warning. Is it a LLVM's bug?</div>
<div>Thanks for your time in advance :D</div>
</blockquote></div><br></div>