[AVR] Fix incorrect calling convention for varargs functions
authorBen Shi <ben.shi@streamcomputing.com>
Fri, 4 Mar 2022 14:42:41 +0000 (14:42 +0000)
committerBen Shi <ben.shi@streamcomputing.com>
Wed, 23 Mar 2022 02:00:15 +0000 (02:00 +0000)
commit3fd9a320da8adbefa47071f70667d641f7dd26f2
treee8bef318b8a9622c8cf53ad93474d503cf4cbb71
parentf014303e2ce410aa20517db612d91488e7a06d22
[AVR] Fix incorrect calling convention for varargs functions

An i8 argument should only cost 1 byte on the stack. This is
compatible with avr-gcc.

There are also more test cases (of calling convention) are added.

Reviewed By: aykevl, dylanmckay

Differential Revision: https://reviews.llvm.org/D121767
llvm/lib/Target/AVR/AVRCallingConv.td
llvm/test/CodeGen/AVR/calling-conv/c/basic.ll
llvm/test/CodeGen/AVR/calling-conv/c/basic_aggr.ll
llvm/test/CodeGen/AVR/calling-conv/c/stack.ll