]> git.proxmox.com Git - mirror_qemu.git/commit
tests/tcg/tricore: Add macros to create tests and first test 'abs'
authorBastian Koppelmann <kbastian@mail.uni-paderborn.de>
Wed, 12 May 2021 10:20:36 +0000 (11:20 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 18 May 2021 08:36:21 +0000 (09:36 +0100)
commit2d934b5951880ba68948e2c42060d53ceb578e06
treef32169057d8eac92f897253fe81c53251c231d6c
parent433de74ced65cb6bffec3493876584d1ce73fd3b
tests/tcg/tricore: Add macros to create tests and first test 'abs'

This kind of tests is inspired by the riscv-tests repository. This adds
macros that makes it easy to create single instruction self containing
tests.

It is achieved by macros that create a test sequence for an
instruction and check for a supplied correct value. If the value is correct the
next instruction is tested. Otherwise we jump to fail handler that writes is
test number as a status code back to qemu that then exits on that status code.
If all tests pass we write back 0 as a status code and exit.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
Message-Id: <20210305170045.869437-7-kbastian@mail.uni-paderborn.de>
[AJB: add container_hosts]
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210512102051.12134-17-alex.bennee@linaro.org>
tests/tcg/configure.sh
tests/tcg/tricore/Makefile.softmmu-target
tests/tcg/tricore/macros.h [new file with mode: 0644]
tests/tcg/tricore/test_abs.S [new file with mode: 0644]