[AVR] Fix wrong ABI of AVRTiny.
authorBen Shi <powerman1st@163.com>
Thu, 17 Nov 2022 12:35:55 +0000 (20:35 +0800)
committerBen Shi <powerman1st@163.com>
Wed, 23 Nov 2022 01:32:47 +0000 (09:32 +0800)
commitf452b9dcaff5e6b0fe123a0bba775eeb2194208a
tree6d02b445f7ddf5068aee9a3e3f37f18168e3d061
parent4ffc6f3b833817f2dc57917b80f8c5530721e706
[AVR] Fix wrong ABI of AVRTiny.

A scalar which exceeds 4 bytes should be returned via stack, other
than via registers, on an AVRTiny device.

Reviewed By: aykevl

Differential Revision: https://reviews.llvm.org/D138201
llvm/lib/Target/AVR/AVRISelLowering.cpp
llvm/test/CodeGen/AVR/return.ll