[Qemu-devel] [PATCH RFC 0/2] tests/tcg: Vector instruction tests for target/s390x

David Hildenbrand posted 2 patches 6 years, 8 months ago
Test asan passed
Test docker-mingw@fedora passed
Test docker-clang@ubuntu failed
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20190227111411.22890-1-david@redhat.com
Maintainers: David Hildenbrand <david@redhat.com>, Cornelia Huck <cohuck@redhat.com>, "Alex Bennée" <alex.bennee@linaro.org>, "Philippe Mathieu-Daudé" <f4bug@amsat.org>, Richard Henderson <rth@twiddle.net>
tests/tcg/Makefile                  |  4 +--
tests/tcg/s390x/Makefile.target     |  3 ++-
tests/tcg/s390x/helper.h            | 28 +++++++++++++++++++++
tests/tcg/s390x/signal_helper.inc.c | 39 +++++++++++++++++++++++++++++
tests/tcg/s390x/vlgv.c              | 37 +++++++++++++++++++++++++++
5 files changed, 108 insertions(+), 3 deletions(-)
create mode 100644 tests/tcg/s390x/helper.h
create mode 100644 tests/tcg/s390x/signal_helper.inc.c
create mode 100644 tests/tcg/s390x/vlgv.c
[Qemu-devel] [PATCH RFC 0/2] tests/tcg: Vector instruction tests for target/s390x
Posted by David Hildenbrand 6 years, 8 months ago
As I currently work on vector instruction support for s390x/tcg, for now
I wrote my tests for kvm-unit-tests, but tests/tcg seems to be a better fit.
The only tricky part is testing interrupt handling, but that also seems to
be possible using some signal hackery.

This is only one test to discuss if the approach make sense. These patches
only work when applied on top of:
    https://github.com/davidhildenbrand/qemu/tree/vx

David Hildenbrand (2):
  tests/tcg: Allow targets to set the optimization level
  tests/tcg: target/s390: Add test for VECTOR LOAD GR FROM VR ELEMENT

 tests/tcg/Makefile                  |  4 +--
 tests/tcg/s390x/Makefile.target     |  3 ++-
 tests/tcg/s390x/helper.h            | 28 +++++++++++++++++++++
 tests/tcg/s390x/signal_helper.inc.c | 39 +++++++++++++++++++++++++++++
 tests/tcg/s390x/vlgv.c              | 37 +++++++++++++++++++++++++++
 5 files changed, 108 insertions(+), 3 deletions(-)
 create mode 100644 tests/tcg/s390x/helper.h
 create mode 100644 tests/tcg/s390x/signal_helper.inc.c
 create mode 100644 tests/tcg/s390x/vlgv.c

-- 
2.17.2