]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
s390: Consolidate s390_format_RIS_RURDU and s390_format_RIS_RURDI
authorFlorian Krohm <flo2030@eich-krohm.de>
Thu, 15 Jan 2026 11:27:06 +0000 (11:27 +0000)
committerFlorian Krohm <flo2030@eich-krohm.de>
Thu, 15 Jan 2026 11:27:06 +0000 (11:27 +0000)
Use s390_format_RIS instead.

Cf. fa21e88ac38 for a rationale.

VEX/priv/guest_s390_toIR.c

index d4ca50c24acd8a04c87acb3ca691c783f666333f..98ab7e602c8838865d5a7850f71a8a1cc74991a8 100644 (file)
@@ -2796,22 +2796,9 @@ s390_format_RIE_RUPIX(void (*irgen)(UChar r1, UChar m3, UShort i2),
 }
 
 static void
-s390_format_RIS_RURDI(void (*irgen)(UChar r1, UChar m3, UChar i2,
-                                    IRTemp op4addr),
-                      UChar r1, UChar m3, UChar b4, UShort d4, UChar i2)
-{
-   IRTemp op4addr = newTemp(Ity_I64);
-
-   assign(op4addr, binop(Iop_Add64, mkU64(d4), b4 != 0 ? get_gpr_dw0(b4) :
-          mkU64(0)));
-
-   irgen(r1, m3, i2, op4addr);
-}
-
-static void
-s390_format_RIS_RURDU(void (*irgen)(UChar r1, UChar m3, UChar i2,
-                                    IRTemp op4addr),
-                      UChar r1, UChar m3, UChar b4, UShort d4, UChar i2)
+s390_format_RIS(void (*irgen)(UChar r1, UChar m3, UChar i2,
+                              IRTemp op4addr),
+                UChar r1, UChar m3, UChar b4, UShort d4, UChar i2)
 {
    IRTemp op4addr = newTemp(Ity_I64);
 
@@ -20710,22 +20697,22 @@ s390_decode_6byte_and_irgen(const UChar *bytes)
                                            RRS_r2(ovl), RRS_b4(ovl),
                                            RRS_d4(ovl), RRS_m3(ovl));
                                            goto ok;
-   case 0xec00000000fcULL: s390_format_RIS_RURDI(s390_irgen_CGIB,
-                                                 RIS_r1(ovl), RIS_m3(ovl),
-                                                 RIS_b4(ovl), RIS_d4(ovl),
-                                                 RIS_i2(ovl));  goto ok;
-   case 0xec00000000fdULL: s390_format_RIS_RURDU(s390_irgen_CLGIB,
-                                                 RIS_r1(ovl), RIS_m3(ovl),
-                                                 RIS_b4(ovl), RIS_d4(ovl),
-                                                 RIS_i2(ovl));  goto ok;
-   case 0xec00000000feULL: s390_format_RIS_RURDI(s390_irgen_CIB, RIS_r1(ovl),
-                                                 RIS_m3(ovl), RIS_b4(ovl),
-                                                 RIS_d4(ovl),
-                                                 RIS_i2(ovl));  goto ok;
-   case 0xec00000000ffULL: s390_format_RIS_RURDU(s390_irgen_CLIB,
-                                                 RIS_r1(ovl), RIS_m3(ovl),
-                                                 RIS_b4(ovl), RIS_d4(ovl),
-                                                 RIS_i2(ovl));  goto ok;
+   case 0xec00000000fcULL: s390_format_RIS(s390_irgen_CGIB,
+                                           RIS_r1(ovl), RIS_m3(ovl),
+                                           RIS_b4(ovl), RIS_d4(ovl),
+                                           RIS_i2(ovl));  goto ok;
+   case 0xec00000000fdULL: s390_format_RIS(s390_irgen_CLGIB,
+                                           RIS_r1(ovl), RIS_m3(ovl),
+                                           RIS_b4(ovl), RIS_d4(ovl),
+                                           RIS_i2(ovl));  goto ok;
+   case 0xec00000000feULL: s390_format_RIS(s390_irgen_CIB, RIS_r1(ovl),
+                                           RIS_m3(ovl), RIS_b4(ovl),
+                                           RIS_d4(ovl),
+                                           RIS_i2(ovl));  goto ok;
+   case 0xec00000000ffULL: s390_format_RIS(s390_irgen_CLIB,
+                                           RIS_r1(ovl), RIS_m3(ovl),
+                                           RIS_b4(ovl), RIS_d4(ovl),
+                                           RIS_i2(ovl));  goto ok;
    case 0xed0000000004ULL: s390_format_RXE_FRRD(s390_irgen_LDEB, RXE_r1(ovl),
                                                 RXE_x2(ovl), RXE_b2(ovl),
                                                 RXE_d2(ovl));  goto ok;