Skip to contentSkip to conversation

s390x/tcg: Fix LDER instruction format

PATCH Superseded Ilya Leoshkevich 2 participants 2 messages Nov 2, 2022

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 s390x/tcg: Fix LDER instruction format

It's RRE, not RXE.

Found by running valgrind's none/tests/s390x/bfp-2.

Fixes 86b59624c4aa ("s390x/tcg: Implement LOAD LENGTHENED short HFP to long HFP")
---
 target/s390x/tcg/insn-data.def | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target/s390x/tcg/insn-data.def +1 -1
index 26523746d64..6028472c323 100644
@@ -606,7 +606,7 @@
     F(0xed04, LDEB,    RXE,   Z,   0, m2_32u, new, f1, ldeb, 0, IF_BFP)
     F(0xed05, LXDB,    RXE,   Z,   0, m2_64, new_x, x1, lxdb, 0, IF_BFP)
     F(0xed06, LXEB,    RXE,   Z,   0, m2_32u, new_x, x1, lxeb, 0, IF_BFP)
-    F(0xb324, LDER,    RXE,   Z,   0, e2, new, f1, lde, 0, IF_AFP1)
+    F(0xb324, LDER,    RRE,   Z,   0, e2, new, f1, lde, 0, IF_AFP1)
     F(0xed24, LDE,     RXE,   Z,   0, m2_32u, new, f1, lde, 0, IF_AFP1)
 /* LOAD ROUNDED */
     F(0xb344, LEDBR,   RRF_e, Z,   0, f2, new, e1, ledb, 0, IF_BFP)
Signature · 1 line
2.37.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 15 lines · Ilya Leoshkevich

It's RRE, not RXE.

Found by running valgrind's none/tests/s390x/bfp-2.

Fixes 86b59624c4aa ("s390x/tcg: Implement LOAD LENGTHENED short HFP to long HFP")
---
  target/s390x/tcg/insn-data.def | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
target/s390x/tcg/insn-data.def +0 -0
index 26523746d64..6028472c323 100644

target/s390x/tcg/insn-data.def line 612

Quoted 8 lines
target/s390x/tcg/insn-data.def +1 -1
@@ -606,7 +606,7 @@
      F(0xed04, LDEB,    RXE,   Z,   0, m2_32u, new, f1, ldeb, 0, IF_BFP)
      F(0xed05, LXDB,    RXE,   Z,   0, m2_64, new_x, x1, lxdb, 0, IF_BFP)
      F(0xed06, LXEB,    RXE,   Z,   0, m2_32u, new_x, x1, lxeb, 0, IF_BFP)
-    F(0xb324, LDER,    RXE,   Z,   0, e2, new, f1, lde, 0, IF_AFP1)
+    F(0xb324, LDER,    RRE,   Z,   0, e2, new, f1, lde, 0, IF_AFP1)
      F(0xed24, LDE,     RXE,   Z,   0, m2_32u, new, f1, lde, 0, IF_AFP1)
  /* LOAD ROUNDED */
      F(0xb344, LEDBR,   RRF_e, Z,   0, f2, new, e1, ledb, 0, IF_BFP)
Signature · 3 lines
Thanks,

David / dhildenb