OSDN Git Service

[ARM] GlobalISel: Add support for G_MUL
authorDiana Picus <diana.picus@linaro.org>
Wed, 19 Apr 2017 07:29:46 +0000 (07:29 +0000)
committerDiana Picus <diana.picus@linaro.org>
Wed, 19 Apr 2017 07:29:46 +0000 (07:29 +0000)
commit909758a6a6abad340c3c528039189ae0e356eb84
treece3e5b442a74e952625e55c4d2a752980848a327
parentbece65fd181960d89bd565806babecf0f1d49846
[ARM] GlobalISel: Add support for G_MUL

Support G_MUL, very similar to G_ADD and G_SUB. The only difference is
in the instruction selector, where we have to select either MUL or MULv5
depending on the target.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300665 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMInstructionSelector.cpp
lib/Target/ARM/ARMLegalizerInfo.cpp
lib/Target/ARM/ARMRegisterBankInfo.cpp
test/CodeGen/ARM/GlobalISel/arm-instruction-select.mir
test/CodeGen/ARM/GlobalISel/arm-isel.ll
test/CodeGen/ARM/GlobalISel/arm-legalizer.mir
test/CodeGen/ARM/GlobalISel/arm-regbankselect.mir