[ARM GlobalISel] Allow simple binary ops in Thumb2
authorDiana Picus <diana.picus@linaro.org>
Fri, 14 Dec 2018 11:58:14 +0000 (11:58 +0000)
committerDiana Picus <diana.picus@linaro.org>
Fri, 14 Dec 2018 11:58:14 +0000 (11:58 +0000)
commit14dc3b295953aa341f7b3b374c45064fbadb2790
tree7d96e9eba745558b6504f9d96f900d6b975ebd56
parent80391d636068b1bf0398229544b50a586a61ad47
[ARM GlobalISel] Allow simple binary ops in Thumb2

Mark G_ADD, G_SUB, G_MUL, G_AND, G_OR and G_XOR as legal for both ARM
and Thumb2.

Extract the legalizer tests for these opcodes into another file.

Add tests for the instruction selector.

llvm-svn: 349142
llvm/lib/Target/ARM/ARMLegalizerInfo.cpp
llvm/test/CodeGen/ARM/GlobalISel/arm-legalize-binops.mir [new file with mode: 0644]
llvm/test/CodeGen/ARM/GlobalISel/arm-legalizer.mir
llvm/test/CodeGen/ARM/GlobalISel/thumb-select-binops.mir [new file with mode: 0644]