]> granicus.if.org Git - llvm/commit
[AArch64][GlobalISel] Add support for narrowScalar of G_ZEXT
authorAmara Emerson <aemerson@apple.com>
Wed, 21 Aug 2019 00:12:37 +0000 (00:12 +0000)
committerAmara Emerson <aemerson@apple.com>
Wed, 21 Aug 2019 00:12:37 +0000 (00:12 +0000)
commit4e6cb18b4b6335a2f17ce738b26c22470227d8dc
tree8f0d650fd33e62480d7b166d6ea8fed2c9dc3291
parent6b2c37ffb97b2d1395396e19dd72ece000334a4c
[AArch64][GlobalISel] Add support for narrowScalar of G_ZEXT

We do this by merging the source with the high bits set to 0.

Differential Revision: https://reviews.llvm.org/D66181

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369480 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/GlobalISel/LegalizerHelper.cpp
lib/Target/AArch64/AArch64LegalizerInfo.cpp
lib/Target/X86/X86RegisterBankInfo.cpp
test/CodeGen/AArch64/GlobalISel/legalize-sext-128.mir [deleted file]
test/CodeGen/AArch64/GlobalISel/legalize-sext-zext-128.mir [new file with mode: 0644]
test/CodeGen/AArch64/GlobalISel/legalizer-info-validation.mir