OSDN Git Service

[ARM] GlobalISel: Add support for G_TRUNC
authorDiana Picus <diana.picus@linaro.org>
Fri, 21 Apr 2017 13:16:50 +0000 (13:16 +0000)
committerDiana Picus <diana.picus@linaro.org>
Fri, 21 Apr 2017 13:16:50 +0000 (13:16 +0000)
commit2fe29b4914fef5e3c3f346eafaa359afd9fae2d8
treeae240ea33d0add84ffbbe7d8553f3f728036e6bb
parent20f23a27dd82c7a205190d1dfed5dfaedc6da6ee
[ARM] GlobalISel: Add support for G_TRUNC

Select them as copies. We only select if both the source and the
destination are on the same register bank, so this shouldn't cause any
trouble.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300971 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMInstructionSelector.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-regbankselect.mir