[M68k] Refactor codegen patterns for logic operations and add tests for it
authorJim Lin <jim@andestech.com>
Wed, 23 Jun 2021 05:25:23 +0000 (13:25 +0800)
committerJim Lin <jim@andestech.com>
Wed, 23 Jun 2021 05:25:24 +0000 (13:25 +0800)
commit5cb5225cf5c2adb55c55af842c4df5876e47169e
treef1063656f18302d8a887c57253f398db68608ce0
parent842b4c83cb751d5f371ba27881fc92fdbd38d850
[M68k] Refactor codegen patterns for logic operations and add tests for it

Refactor pat for and, or and xor operation and add missing tests for it

Reviewed By: myhsu

Differential Revision: https://reviews.llvm.org/D104626
llvm/lib/Target/M68k/M68kInstrArithmetic.td
llvm/test/CodeGen/M68k/Arith/bitwise.ll [new file with mode: 0644]