OSDN Git Service

[ARM GlobalISel] Select extensions to < 32 bits
authorDiana Picus <diana.picus@linaro.org>
Thu, 2 May 2019 09:28:00 +0000 (09:28 +0000)
committerDiana Picus <diana.picus@linaro.org>
Thu, 2 May 2019 09:28:00 +0000 (09:28 +0000)
commitb4dded67c1c9a6e1f6eb5629d2d6f366bc3fa049
treebfdcf9c9f66079468fe0b6dd7c5f93d11714ddc8
parent1e513e8bae84a9daad70f9b2d40aa8adaf81ccd8
[ARM GlobalISel] Select extensions to < 32 bits

Select G_SEXT and G_ZEXT with destination types smaller than 32 bits in
the exact same way as 32 bits. This overwrites the higher bits, but that
should be ok since all legal users of types smaller than 32 bits ignore
those bits anyway.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359768 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMInstructionSelector.cpp
test/CodeGen/ARM/GlobalISel/arm-instruction-select.mir
test/CodeGen/ARM/GlobalISel/thumb-select-exts.mir