qemu-e2k/tests/tcg
Pavel Zbitskiy 3cea09271b target/s390x: fix PACK reading 1 byte less and writing 1 byte more
PACK fails on the test from the Principles of Operation: F1F2F3F4
becomes 0000234C instead of 0001234C due to an off-by-one error.
Furthermore, it overwrites one extra byte to the left of F1.

If len_dest is 0, then we only want to flip the 1st byte and never loop
over the rest. Therefore, the loop condition should be > and not >=.

If len_src is 1, then we should flip the 1st byte and pack the 2nd.
Since len_src is already decremented before the loop, the first
condition should be >=, and not >.

Likewise for len_src == 2 and the second condition.

Signed-off-by: Pavel Zbitskiy <pavel.zbitskiy@gmail.com>
Message-Id: <20180821025104.19604-7-pavel.zbitskiy@gmail.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
2018-08-28 17:37:01 +02:00
..
aarch64 tests/tcg: add run, diff, and skip helper macros 2018-06-20 20:22:34 +01:00
alpha tests/tcg/alpha: add Alpha specific tests 2018-06-20 20:22:34 +01:00
arm tests/tcg: add run, diff, and skip helper macros 2018-06-20 20:22:34 +01:00
cris tests: Avoid non-portable 'echo -ARG' 2017-07-11 17:45:00 +02:00
hppa tests/tcg: enable building for HPPA 2018-06-20 20:22:34 +01:00
i386 tests/tcg: remove runcom test 2018-07-24 11:45:25 +01:00
lm32 test: lm32: use semihosting for testing 2014-05-24 19:42:29 +02:00
m68k tests/tcg: enable building for m68k 2018-06-20 20:22:34 +01:00
mips tests/tcg: override runners for broken tests 2018-06-20 20:22:34 +01:00
multiarch tests: add check_invalid_maps to test-mmap 2018-07-31 09:57:25 +02:00
openrisc target/openrisc: Rename the cpu from or32 to or1k 2017-02-14 08:14:58 +11:00
ppc tests/tcg: enable building for PowerPC 2018-06-20 20:22:34 +01:00
riscv tests/tcg: enable building for RISCV64 2018-06-20 20:22:34 +01:00
s390x target/s390x: fix PACK reading 1 byte less and writing 1 byte more 2018-08-28 17:37:01 +02:00
sh4 tests/tcg: enable building for sh4 2018-06-20 20:22:34 +01:00
sparc64 tests/tcg: override runners for broken tests 2018-06-20 20:22:34 +01:00
x86_64 tests/tcg/x86_64: add Makefile.target 2018-06-20 20:22:34 +01:00
xtensa target/xtensa: fix timers test 2018-03-26 14:17:04 -07:00
Makefile tests/tcg: add run, diff, and skip helper macros 2018-06-20 20:22:34 +01:00
Makefile.include Makefile.target: add (clean-/build-)guest-tests targets 2018-06-20 20:22:34 +01:00
Makefile.probe tests: add top-level make dependency for docker builds 2018-06-20 22:13:32 +01:00
README tests/tcg: move MIPS specific tests into subdir 2018-06-20 20:22:34 +01:00

README

This directory contains various interesting guest programs for
regression testing. Tests are either multi-arch, meaning they can be
built for all guest architectures that support linux-user executable,
or they are architecture specific.

CRIS
====
The testsuite for CRIS is in tests/tcg/cris.  You can run it
with "make test-cris".

LM32
====
The testsuite for LM32 is in tests/tcg/cris.  You can run it
with "make test-lm32".