Skip to contentSkip to conversation

target/arm: Fix 64-bit SSRA

PATCH Applied Richard Henderson 3 participants 4 messages Aug 21, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target/arm: Fix 64-bit SSRA

Typo applied byte-wise shift instead of double-word shift.

Fixes 631e565450c ("target/arm: Create gen_gvec_[us]sra")

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1779

---
 target/arm/tcg/translate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target/arm/tcg/translate.c +1 -1
index b71ac2d0d5..39541ecdf0 100644
@@ -3053,7 +3053,7 @@ void gen_gvec_ssra(unsigned vece, uint32_t rd_ofs, uint32_t rm_ofs,
           .vece = MO_32 },
         { .fni8 = gen_ssra64_i64,
           .fniv = gen_ssra_vec,
-          .fno = gen_helper_gvec_ssra_b,
+          .fno = gen_helper_gvec_ssra_d,
           .prefer_i64 = TCG_TARGET_REG_BITS == 64,
           .opt_opc = vecop_list,
           .load_dest = true,
Signature · 1 line
2.34.1
#1 lore raw
Quoted 5 lines · Richard Henderson

Typo applied byte-wise shift instead of double-word shift.

Fixes 631e565450c ("target/arm: Create gen_gvec_[us]sra")

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1779

Bah. #1737

Quoted 18 lines
---
  target/arm/tcg/translate.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
target/arm/tcg/translate.c +1 -1
index b71ac2d0d5..39541ecdf0 100644
@@ -3053,7 +3053,7 @@ void gen_gvec_ssra(unsigned vece, uint32_t rd_ofs, uint32_t rm_ofs,
            .vece = MO_32 },
          { .fni8 = gen_ssra64_i64,
            .fniv = gen_ssra_vec,
-          .fno = gen_helper_gvec_ssra_b,
+          .fno = gen_helper_gvec_ssra_d,
            .prefer_i64 = TCG_TARGET_REG_BITS == 64,
            .opt_opc = vecop_list,
            .load_dest = true,
Reviewed-by on v1 1/1
#2 lore raw
In reply to Richard Henderson
Quoted 9 lines · Richard Henderson

Typo applied byte-wise shift instead of double-word shift.

Fixes 631e565450c ("target/arm: Create gen_gvec_[us]sra")

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1779

---
  target/arm/tcg/translate.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
#3 lore raw
In reply to Richard Henderson
Quoted 10 lines · Richard Henderson

Typo applied byte-wise shift instead of double-word shift.

Fixes 631e565450c ("target/arm: Create gen_gvec_[us]sra")

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1779

---
 target/arm/tcg/translate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied to target-arm-for-8.2 with the gitlab URL fixed, thanks.

-- PMM