OSDN Git Service

[ARM GlobalISel] Update legalizer test
authorDiana Picus <diana.picus@linaro.org>
Mon, 13 Nov 2017 16:02:42 +0000 (16:02 +0000)
committerDiana Picus <diana.picus@linaro.org>
Mon, 13 Nov 2017 16:02:42 +0000 (16:02 +0000)
commita797fb9901c2f642a8e635555ef1811d92e332f7
treeba6afccf67ea0e1c678299247cfee3d8e519675a
parent71f0575da1706d55e090b90d3afde6f2ad5e94f0
[ARM GlobalISel] Update legalizer test

Make one of the legalizer tests a bit more robust by making sure all
values we're interested in are used (either in a store or a return) and
by using loads instead of constants for obtaining values on fewer than
32 bits. This should make the test less fragile to changes in the
legalize combiner, since those loads are legal (as opposed to the
constants, which were being widened and thus produced opportunities for
the legalize combiner).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@318047 91177308-0d34-0410-b5e6-96231b3b80d8
test/CodeGen/ARM/GlobalISel/arm-legalizer.mir