[LLVMdev] IMUL x86 instruction

Tim Northover t.p.northover at gmail.com
Sun Jul 13 11:45:28 PDT 2014


> 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.

Those would be trunc and lshr. The low bits are simply a trunc of the
64-bit value; the high bits are a trunc of the 64-bit value shifted
right by 32 bits.

Cheers.

Tim.



More information about the llvm-dev mailing list