]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Generalise s390_amode_is_constant.
authorFlorian Krohm <flo2030@eich-krohm.de>
Sun, 28 Jun 2026 12:41:15 +0000 (12:41 +0000)
committerFlorian Krohm <flo2030@eich-krohm.de>
Sun, 28 Jun 2026 12:41:15 +0000 (12:41 +0000)
VEX/priv/host_s390_defs.c

index e398987600546fd763e38a61939b8a59cdd41894..db5345632162165a50a8d16fed90eb8580566a80 100644 (file)
@@ -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));
 }