llvm-project/llvm/test/CodeGen/ARM/GlobalISel
Diana Picus 9c52309b37 [ARM] GlobalISel: Lower call params that need extensions
Lower i1, i8 and i16 call parameters by extending them before storing them on
the stack. Also make sure we encode the correct, extended size in the
corresponding memory operand, and that we compute the correct stack size in the
end.

The latter is a bit more complicated because we used to compute the stack size
in the getStackAddress method, based on the Size and Offset of the parameters.
However, if the last parameter is sign extended, we'd be using the wrong,
non-extended size, and we'd end up with a smaller stack than we need to hold the
extended value. Instead of hacking this up based on the value of Size in
getStackAddress, we move our stack size handling logic to assignArg, where we
have access to the CCState which knows everything we could possibly want to know
about the stack. This way we don't need to duplicate any knowledge or resort to
any ugly hacks.

On this same occasion, update the IRTranslator test to check the sizes of the
stores everywhere, not just for sign extended paramteres.

llvm-svn: 296631
2017-03-01 15:35:14 +00:00
..
arm-instruction-select.mir [ARM] GlobalISel: Select 32-bit G_CONSTANT 2017-02-28 13:05:42 +00:00
arm-irtranslator.ll [ARM] GlobalISel: Lower call params that need extensions 2017-03-01 15:35:14 +00:00
arm-isel.ll [ARM] GlobalISel: Add end-to-end tests for double 2017-02-17 11:25:11 +00:00
arm-legalizer.mir [ARM] GlobalISel: Legalize 32-bit constants 2017-02-28 11:33:46 +00:00
arm-regbankselect.mir [ARM] GlobalISel: Add mapping for G_CONSTANT 2017-02-28 12:13:58 +00:00
lit.local.cfg