OSDN Git Service

tests/tcg/s390x: Test unaligned accesses
authorIlya Leoshkevich <iii@linux.ibm.com>
Thu, 16 Mar 2023 16:44:28 +0000 (17:44 +0100)
committerThomas Huth <thuth@redhat.com>
Mon, 20 Mar 2023 08:32:50 +0000 (09:32 +0100)
commite902126caea1695aa89da97ef5804a9131224313
treefc1835557a848f5505bf7d0465e6fb7fb5cadb23
parentba1ef833be73d2b2f40e0205a6ce77871873f5fd
tests/tcg/s390x: Test unaligned accesses

Add a number of small test that check whether accessing unaligned
addresses in various ways leads to a specification exception.

Run these test both in softmmu and user configurations; expect a PGM
in one case and SIGILL in the other.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20230316164428.275147-13-iii@linux.ibm.com>
[thuth: Added -Wl,--build-id=none to LDFLAGS]
Signed-off-by: Thomas Huth <thuth@redhat.com>
17 files changed:
tests/tcg/s390x/Makefile.softmmu-target
tests/tcg/s390x/Makefile.target
tests/tcg/s390x/br-odd.S [new file with mode: 0644]
tests/tcg/s390x/cgrl-unaligned.S [new file with mode: 0644]
tests/tcg/s390x/clrl-unaligned.S [new file with mode: 0644]
tests/tcg/s390x/crl-unaligned.S [new file with mode: 0644]
tests/tcg/s390x/ex-odd.S [new file with mode: 0644]
tests/tcg/s390x/lgrl-unaligned.S [new file with mode: 0644]
tests/tcg/s390x/llgfrl-unaligned.S [new file with mode: 0644]
tests/tcg/s390x/lpswe-unaligned.S [new file with mode: 0644]
tests/tcg/s390x/lrl-unaligned.S [new file with mode: 0644]
tests/tcg/s390x/pgm-specification-softmmu.S [new file with mode: 0644]
tests/tcg/s390x/pgm-specification-user.c [new file with mode: 0644]
tests/tcg/s390x/pgm-specification.mak [new file with mode: 0644]
tests/tcg/s390x/softmmu.ld [new file with mode: 0644]
tests/tcg/s390x/stgrl-unaligned.S [new file with mode: 0644]
tests/tcg/s390x/strl-unaligned.S [new file with mode: 0644]