check-tcg sha512-mvx test is failing on s390x hosts
The sha512-mvx test (tests/tcg/multiarch/sha512.c) is failing when it gets compiled with "-O3" with a recent compiler version (e.g. gcc v11.2.1 or clang v13.0.1), and when being run via qemu-s390x on a s390x host. The compiled binary works fine when run natively on the s390x host, or when run via qemu-s390x on a x86 host, thus the problem seems to be in the s390x TCG backend.
The test also works fine when run via qemu-s390x v6.1.0 on the s390x host, thus it's a regression, and I was able to bisect it to this commit here:
$ git bisect bad
9bca986df88b8ea46b100e3d21cc9e653c83e0b3 is the first bad commit
commit 9bca986df88b8ea46b100e3d21cc9e653c83e0b3
Author: Richard Henderson <richard.henderson@linaro.org>
Date: Mon Sep 14 20:36:36 2020 -0700
tcg/s390x: Implement TCG_TARGET_HAS_bitsel_vec
For some more details, see this mail thread here:
https://lists.gnu.org/archive/html/qemu-devel/2022-03/msg02966.html