tests/tcg/nios2: Add test-shadow-1
commit7f176c5a0bcb70492f3b158a36311e75f1eb87d7
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 21 Apr 2022 15:17:35 +0000 (21 08:17 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 26 Apr 2022 15:17:10 +0000 (26 08:17 -0700)
tree6123811392098ef003f89c6f37995986b3f9be41
parentccbaa553a18a2062dd1e208a2f3aa3a59f3737cc
tests/tcg/nios2: Add test-shadow-1

Add a regression test for tcg indirect global lowering.

This appeared with nios2, with cps != 0, so that we use
indirection into the shadow register set.  An indirect
call verifies alignment of rA.  The use of rA was live
across the brcond leading to a tcg_debug_assert failure.

Cc: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20220421151735.31996-65-richard.henderson@linaro.org>
tests/tcg/nios2/Makefile.softmmu-target
tests/tcg/nios2/test-shadow-1.S [new file with mode: 0644]