[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)
commit69aa20e3caa5aeb291241765288d31d65c817a97
tree273bb5209efeaa535776f502b157bb1f78ecb761
parent4ebb64b95fe22ec7916afdf7445bb4256ccfccf1
[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).

llvm-svn: 318047
llvm/test/CodeGen/ARM/GlobalISel/arm-legalizer.mir