[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)
commite6c299b98312b7fcff2fdfe1681263c82e9453af
treea6d91d7357f1bac160e3310952ddaeae6c259fc1
parent1c528e8f1b29b48bcb37a3a6e5e4c97572300102
[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

llvm-svn: 369465
llvm/lib/Target/AArch64/AArch64InstrFormats.td
llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp
llvm/test/CodeGen/AArch64/GlobalISel/select-logical-imm.mir [new file with mode: 0644]
llvm/test/CodeGen/AArch64/GlobalISel/select-pr32733.mir
llvm/test/CodeGen/AArch64/GlobalISel/select-scalar-shift-imm.mir