[llvm-dev] LLVM Assembly Instructions Generation Syntax

hameeza ahmed via llvm-dev llvm-dev at lists.llvm.org
Thu Jun 22 00:32:31 PDT 2017


Hello,
I am generating some assembly code via llvm and using x86.
in all the instructions source appears before destination like;

subl $8, %esp
movl 16(%esp), %eax

vmovdqu32 c(%rip), %zmm0
addl b+132(%rip), %eax
movl %eax, a+132(%rip)


but when i refered the intel x86 manual, it says instruction has 1st
destination and then source;

is it due to llvm follows gas syntax instead of intel? but my machine and
normally machines are intel based then how does this gas syntax assembly of
llvm execute on our machines?

please correct me if i am wrong.


Thank You
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170622/744e262e/attachment.html>


More information about the llvm-dev mailing list