diff options
author | Bastian Koppelmann <kbastian@mail.uni-paderborn.de> | 2021-05-12 11:20:36 +0100 |
---|---|---|
committer | Alex Bennée <alex.bennee@linaro.org> | 2021-05-18 09:36:21 +0100 |
commit | 2d934b5951880ba68948e2c42060d53ceb578e06 (patch) | |
tree | f32169057d8eac92f897253fe81c53251c231d6c /qom | |
parent | 433de74ced65cb6bffec3493876584d1ce73fd3b (diff) |
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>
Diffstat (limited to 'qom')
0 files changed, 0 insertions, 0 deletions