]> granicus.if.org Git - llvm/commit
[AArch64][GlobalISel] Select logical_imm32 and logical_imm64 patterns
authorJessica Paquette <jpaquette@apple.com>
Tue, 20 Aug 2019 22:31:25 +0000 (22:31 +0000)
committerJessica Paquette <jpaquette@apple.com>
Tue, 20 Aug 2019 22:31:25 +0000 (22:31 +0000)
commit2fac815faa4dd990ee098a7de21997d617cdb6e5
tree39a0171cdde768e4c48a27f475c5ce429678e1b3
parent6a813e0f3e0f153120ce0ebff3f914d6870d511d
[AArch64][GlobalISel] Select logical_imm32 and logical_imm64 patterns

Add a GlobalISel equivalent for the logical_imm32_XFORM and logical_imm64_XFORM
SDNodeXForms in AArch64InstrFormats.td.

- Add select-logical-imm.mir, which contains tests for each imported pattern.

- Update select-pr32733.mir and select-scalar-shift-imm.mir, since they now
select instructions of this form.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369465 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64InstrFormats.td
lib/Target/AArch64/AArch64InstructionSelector.cpp
test/CodeGen/AArch64/GlobalISel/select-logical-imm.mir [new file with mode: 0644]
test/CodeGen/AArch64/GlobalISel/select-pr32733.mir
test/CodeGen/AArch64/GlobalISel/select-scalar-shift-imm.mir