[LLVMdev] Can LLVM vectorize <2 x i32> type

zhi chen zchenhn at gmail.com
Wed Jun 24 15:05:29 PDT 2015


Hi,

Is LLVM be able to generate code for the following code?

%mul = mul <2 x i32> %1, %2, where %1 and %2 are <2 x i32> type.

I am running it on a Haswell processor with LLVM-3.4.2. It seems that it
will generates really complicated code with vpaddq, vpmuludq, vpsllq,
vpsrlq.

Thanks,
Zhi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150624/3ac7c2f4/attachment.html>


More information about the llvm-dev mailing list