OSDN Git Service

[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)
commitf4f855ccc75fcb26eb4a64dc1bb52da33a1091dd
treea00a4eff72de6445bede9d71eda0297118293bf3
parentc25292edd5cedd5aff7fce9150265038fcca83ac
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@349142 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMLegalizerInfo.cpp
test/CodeGen/ARM/GlobalISel/arm-legalize-binops.mir [new file with mode: 0644]
test/CodeGen/ARM/GlobalISel/arm-legalizer.mir
test/CodeGen/ARM/GlobalISel/thumb-select-binops.mir [new file with mode: 0644]