<div dir="ltr"><div><div><div>Hi Jun,<br><br></div>I'm not sure how to fix this yet, but this looks incorrectly defined in lib/Target/X86/X86InstrInfo.td:<br><br>def MOV32o32a : Ii32 <0xA1, RawFrm, (outs), (ins offset32:$src),<br>
                      "mov{l}\t{$src, %eax|eax, $src}", [], IIC_MOV_MEM>,<br>                     Requires<[In32BitMode]>;<br><br></div>This instruction can be REX-prefixed for a 64-bit move, and that also doesn't appear to be defined anywhere.<br>
<br></div>I would file a bugzilla in the x86 component and cc Craig Topper, the x86 disasm/codegen expert.<br><div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Nov 27, 2013 at 8:56 AM, Jun Koi <span dir="ltr"><<a href="mailto:junkoi2004@gmail.com" target="_blank">junkoi2004@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Hi,<br><br></div>With objdump, i have this (Intel syntax)<br><br>         64 a1 00 00 00 00        mov    eax,fs:0x0<br>
<br><br></div>However, if I pass above string to llvm-mc, I would have:<br>

<br>$ echo "0x64 0xa1 0x00 0x00 0x00 0x00"|./Release+Asserts/bin/llvm-mc -disassemble -arch=x86 --output-asm-variant=1<br>    .text<br>    mov    eax, dword ptr [0]<br><br><br></div>You can see a big difference. This is on the latest code. Any idea how to fix this bug?<br>


<br></div>Thank you,<br></div>Jun<br><div><div><div><br></div></div></div></div>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br></div>