OSDN Git Service

[ARM GlobalISel] Support floating point for Thumb2
authorDiana Picus <diana.picus@linaro.org>
Fri, 22 Feb 2019 09:54:54 +0000 (09:54 +0000)
committerDiana Picus <diana.picus@linaro.org>
Fri, 22 Feb 2019 09:54:54 +0000 (09:54 +0000)
commit1d53cf7ef3397d91f5a1310e0c4542e7b8c4b682
tree089003025a609e656708ec0b04df978618a43c92
parent47f8c8ba921f598d7bc47253dfbda3b314d9ee0e
[ARM GlobalISel] Support floating point for Thumb2

This is exactly the same as arm mode, so for the instruction selector
tests we just extract them to a new file and run with the same checks
for both arm and thumb mode.

For the legalizer we need to update the tests for soft float a bit, but
only because BL and tBL are slightly different. We could be pedantic and
check that we get a well-formed BL for arm mode and a tBL for thumb, but
for the purposes of the legalizer test it's sufficient to just skip over
the predicate operands in the checks. Also note that we have the
pedantic checks in the divmod test, so we're covered.

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