OSDN Git Service

[AArch64][GlobalISel] Add manual selection support for G_ZEXTLOADs to s64.
authorAmara Emerson <aemerson@apple.com>
Thu, 6 Jun 2019 07:58:37 +0000 (07:58 +0000)
committerAmara Emerson <aemerson@apple.com>
Thu, 6 Jun 2019 07:58:37 +0000 (07:58 +0000)
commit16fb14874c4bd40063a26895c4bbafe7cd42042d
treec211cb4f2da30fba727506f093b6a24d72979ed9
parent334900ff872aafeb361688952b9d5707d0ae92f3
[AArch64][GlobalISel] Add manual selection support for G_ZEXTLOADs to s64.

We already get support for G_ZEXTLOAD to s32 from the importer, but it can't
deal with the SUBREG_TO_REG in the pattern. Tweaking the existing manual
selection code for G_LOAD to handle an additional SUBREG_TO_REG when dealing
with G_ZEXTLOAD isn't much work.

Also add tests to check the imported pattern selections to s32 work.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362681 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64InstructionSelector.cpp
test/CodeGen/AArch64/GlobalISel/select-zextload.mir