Hi, It was reported that Fedora 38 Clang does not run correctly under qemu-s390x [1]. Comparing qemu and real s390x instruction traces has shown that the implementations of LCBB and LOCFHR were not fully correct.
This series fixes the issues and adds tests. I can now run Fedora 38 Clang under s390x emulation and compile "hello world" with it. Best regards, Ilya [1] https://bugzilla.redhat.com/show_bug.cgi?id=2209635 Ilya Leoshkevich (4): target/s390x: Fix LCBB overwriting the top 32 bits tests/tcg/s390x: Test LCBB target/s390x: Fix LOCFHR taking the wrong half of R2 tests/tcg/s390x: Test LOCFHR target/s390x/tcg/insn-data.h.inc | 4 +-- tests/tcg/s390x/Makefile.target | 2 ++ tests/tcg/s390x/lcbb.c | 51 ++++++++++++++++++++++++++++++++ tests/tcg/s390x/locfhr.c | 29 ++++++++++++++++++ 4 files changed, 84 insertions(+), 2 deletions(-) create mode 100644 tests/tcg/s390x/lcbb.c create mode 100644 tests/tcg/s390x/locfhr.c -- 2.40.1