From: Andreas Arnez Date: Thu, 1 Dec 2022 10:02:12 +0000 (+0100) Subject: s390: Un-swap implementations of VFCH and VFCHE X-Git-Tag: VALGRIND_3_21_0~226 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73ab2978f8bfb5becc4bc7356228a117292ca51f;p=thirdparty%2Fvalgrind.git s390: Un-swap implementations of VFCH and VFCHE When running under Valgrind, the VFCH instruction behaves like VFCHE, and vice versa. Fix this. --- diff --git a/VEX/priv/host_s390_defs.c b/VEX/priv/host_s390_defs.c index ac5ca6cbe8..c811dc5b80 100644 --- a/VEX/priv/host_s390_defs.c +++ b/VEX/priv/host_s390_defs.c @@ -11709,9 +11709,9 @@ s390_insn_vec_binop_emit(UChar *buf, const s390_insn *insn) case S390_VEC_FLOAT_COMPARE_EQUAL: return s390_emit_VFCE(buf, v1, v2, v3, s390_getM_from_size(size), 0, 0); case S390_VEC_FLOAT_COMPARE_LESS_OR_EQUAL: - return s390_emit_VFCH(buf, v1, v3, v2, s390_getM_from_size(size), 0, 0); - case S390_VEC_FLOAT_COMPARE_LESS: return s390_emit_VFCHE(buf, v1, v3, v2, s390_getM_from_size(size), 0, 0); + case S390_VEC_FLOAT_COMPARE_LESS: + return s390_emit_VFCH(buf, v1, v3, v2, s390_getM_from_size(size), 0, 0); default: goto fail;