arm: Add a unit test for some aspects of the aapcs64 ABI.
authorGabe Black <gabeblack@google.com>
Mon, 27 Apr 2020 20:46:42 +0000 (13:46 -0700)
committerGabe Black <gabeblack@google.com>
Wed, 29 Apr 2020 11:30:58 +0000 (11:30 +0000)
commitf8926cd56f01e588b6306733880c6c2e64390b2b
tree336cdc1788e8fefc8dcb80a04d3ef8640ed11d2d
parent0c7f131ed2ce008e8d17aa8530f790f934242713
arm: Add a unit test for some aspects of the aapcs64 ABI.

This test covers the templates which attempt to classify types, but not the
actual gathering of arguments of distribution of return values. As before, we
can't really use standard C++ to accurately test for HFAs and HVAs, so we stick
with approximating them by detecting arrays of the right types.

For example, I think technically we should also accept a struct with only 4
float members, but c++ templates aren't able to match against types in that way
as far as I know.

Change-Id: I1d7756a964a86c0c5ea13e068a5fc74603e14e30
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/28268
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/arm/SConscript
src/arch/arm/aapcs64.test.cc [new file with mode: 0644]