[LLVMdev] IMUL x86 instruction

James Courtier-Dutton james.dutton at gmail.com
Sun Jul 13 11:34:53 PDT 2014


On Jul 13, 2014 5:57 PM, "Tim Northover" <t.p.northover at gmail.com> wrote:
>
> > For context, I am writing a x86 to LLVM IR decompiler, so wish to
> > represent IMUL in LLVM IR.
>
> From a decompiler's perspective, it probably represents 3
> instructions: 2 sexts (imul is the signed one, isn't it?) and a mul.
> With the usual caveats you'll be dealing with over EFLAGS.
>

I will take a bit more than that, if the following instructions only use
edx.
Are there any llvm ir instructions that can break a 64bit value into 2
32bit values.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140713/13520fb5/attachment.html>


More information about the llvm-dev mailing list