[LLVMdev] IMUL x86 instruction

James Courtier-Dutton james.dutton at gmail.com
Sun Jul 13 09:16:41 PDT 2014


Hi,

The x86 CPU IMUL instruction has forms such as:
IMUL reg
EDX:EAX ← EAX ∗ reg

reg, EAX and EDX are 32bit registers.

How can I represent this sort of instruction in LLVM IR ?
It is really a 32bit * 32 bit = 64 bit, but no LLVM IR exists to do that.
Or, a similar question:
What LLVM IR would produce this IMUL instruction form?

For context, I am writing a x86 to LLVM IR decompiler, so wish to
represent IMUL in LLVM IR.

Kind Regards

James




More information about the llvm-dev mailing list