[LLVMdev] broken LLVM-MC?

Jun Koi junkoi2004 at gmail.com
Thu Dec 12 19:32:53 PST 2013


Hi,

It seems LLVM-MC is broken with Avx512?


$ echo "vinserti32x4 \$1, %xmm21, %zmm5,
%zmm17"|./Release+Asserts/bin/llvm-mc -assemble -arch=x86-64 -show-encoding
-x86-asm-syntax=att
    .text
    vinserti32x4    $1, %xmm21, %zmm5, %zmm17 # encoding:
[0x62,0xa3,0x55,0x48,0x38,0xcd,0x01]

$ echo "0x62,0xa3,0x55,0x48,0x38,0xcd,0x01" |./Release+Asserts/bin/llvm-mc
-disassemble -arch=x86-64
<stdin>:1:1: warning: invalid instruction encoding


Similarly, 3DNow seems broken, too.


$ echo "pavgusb %mm2, %mm1"|./Release+Asserts/bin/llvm-mc -assemble
-arch=x86-64 -show-encoding -x86-asm-syntax=att
    .text
    pavgusb    %mm2, %mm1              # encoding: [0x0f,0x0f,0xca,0xbf]

$ echo "0x0f,0x0f,0xca,0xbf" |./Release+Asserts/bin/llvm-mc -disassemble
-arch=x86-64
<stdin>:1:1: warning: invalid instruction encoding




Or I did not use LLVM-MC properly? Any idea??

Thank you,
Jun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131213/e033d87c/attachment.html>


More information about the llvm-dev mailing list