[clang] Fix wrong ABI of AVRTiny.
authorBen Shi <powerman1st@163.com>
Wed, 16 Nov 2022 13:12:28 +0000 (21:12 +0800)
committerBen Shi <powerman1st@163.com>
Thu, 17 Nov 2022 00:38:44 +0000 (08:38 +0800)
commit84ef7235732896530564289c8db59291a7d5413e
treec4bb550bd9ed143e5f77c71a16693583e49c80f6
parent3c448c2cef43c754b48022d99b4801d1de9e7af2
[clang] Fix wrong ABI of AVRTiny.

A scalar which exceeds 4 bytes should be returned via a stack slot,
on an AVRTiny device.

Reviewed By: aykevl

Differential Revision: https://reviews.llvm.org/D138125
clang/lib/CodeGen/TargetInfo.cpp
clang/test/CodeGen/avr/return-value.c [moved from clang/test/CodeGen/avr/struct.c with 92% similarity]