[LLVMdev] problem with X86's AVX assembler?

Adam Nemet anemet at apple.com
Wed Jun 25 14:47:14 PDT 2014


Hi Jun,

On Jun 25, 2014, at 8:14 AM, Jun Koi <junkoi2004 at gmail.com> wrote:

> Hi,
> 
> I am trying to assemble below instruction with latest LLVM code, but fail. Am I doing something wrong, or is this a bug?
> 
> 
> $ echo "vaddps zmm7 {k6}, zmm2, zmm4, {rd-sae}"|./Release+Asserts/bin/llvm-mc -assemble -triple=x86_64 -mcpu=knl -show-encoding -x86-asm-syntax=intel
>     .text
> <stdin>:1:31: error: unknown token in expression
> vaddps zmm7 {k6}, zmm2, zmm4, {rd-sae}
>                               ^
> <stdin>:1:31: error: unknown token in expression
> vaddps zmm7 {k6}, zmm2, zmm4, {rd-sae}

Unfortunately, I don’t think sae is supported yet.  (I think the ^ is misplaced; it should point to the {rd-sae}.)

(I may be wrong here but looks like even the X86AsmParser is lacking support for sae even though some instruction in the .td file contain {sae} in their asm syntax.)

Adam

> 
> 
> Thanks,
> Jun
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev





More information about the llvm-dev mailing list