From: Florian Krohm Date: Sun, 28 Jun 2026 12:41:15 +0000 (+0000) Subject: Generalise s390_amode_is_constant. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=258c1fbb68922e5bb36a17bd802a289b38bb0079;p=thirdparty%2Fvalgrind.git Generalise s390_amode_is_constant. --- diff --git a/VEX/priv/host_s390_defs.c b/VEX/priv/host_s390_defs.c index e39898760..db5345632 100644 --- a/VEX/priv/host_s390_defs.c +++ b/VEX/priv/host_s390_defs.c @@ -395,7 +395,8 @@ s390_amode_is_sane(const s390_amode *am) static Bool s390_amode_is_constant(const s390_amode *am) { - return am->tag == S390_AMODE_B12 && sameHReg(am->b, s390_hreg_gpr(0)); + return sameHReg(am->b, s390_hreg_gpr(0)) && + sameHReg(am->x, s390_hreg_gpr(0)); }