<div dir="ltr"><div><div>Hi,<br><br>It seems LLVM-MC is broken with Avx512?<br><br><br>$ echo "vinserti32x4 \$1, %xmm21, %zmm5, %zmm17"|./Release+Asserts/bin/llvm-mc -assemble -arch=x86-64 -show-encoding -x86-asm-syntax=att<br>
.text<br> vinserti32x4 $1, %xmm21, %zmm5, %zmm17 # encoding: [0x62,0xa3,0x55,0x48,0x38,0xcd,0x01]<br><br>$ echo "0x62,0xa3,0x55,0x48,0x38,0xcd,0x01" |./Release+Asserts/bin/llvm-mc -disassemble -arch=x86-64<br>
<stdin>:1:1: warning: invalid instruction encoding<br><br><br>Similarly, 3DNow seems broken, too.<br><br><br>$ echo "pavgusb %mm2, %mm1"|./Release+Asserts/bin/llvm-mc -assemble -arch=x86-64 -show-encoding -x86-asm-syntax=att<br>
.text<br> pavgusb %mm2, %mm1 # encoding: [0x0f,0x0f,0xca,0xbf]<br><br>$ echo "0x0f,0x0f,0xca,0xbf" |./Release+Asserts/bin/llvm-mc -disassemble -arch=x86-64<br><stdin>:1:1: warning: invalid instruction encoding<br>
<br><br><br><br></div>Or I did not use LLVM-MC properly? Any idea??<br><br></div>Thank you,<br>Jun<br></div>