[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 14/27: riscv: fix the B and J type size check
From: |
Andy Wingo |
Subject: |
[Guile-commits] 14/27: riscv: fix the B and J type size check |
Date: |
Wed, 29 Jan 2025 10:52:59 -0500 (EST) |
wingo pushed a commit to branch main
in repository guile.
commit c6008fd0ab6ce8a3acf24c67790b70b6751a884d
Author: Ekaitz Zarraga <ekaitz@elenq.tech>
AuthorDate: Thu Nov 14 16:11:46 2024 +0100
riscv: fix the B and J type size check
---
lightening/riscv.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lightening/riscv.c b/lightening/riscv.c
index 9d5462af6..dc74cce7d 100644
--- a/lightening/riscv.c
+++ b/lightening/riscv.c
@@ -247,7 +247,7 @@ offset_in_jcc_range(ptrdiff_t offset, int flags)
if(offset & 1)
return 0;
else
- return simm12_p(offset);
+ return simm12_p(offset >> 1);
}
/*
@@ -271,7 +271,7 @@ offset_in_jmp_range(ptrdiff_t offset, int flags)
if(offset & 1)
return 0;
else
- return simm20_p(offset);
+ return simm20_p(offset >> 1);
}
static void
- [Guile-commits] 04/27: Add movr_f_i, movr_i_f, movr_d_l, movr_l_d, (continued)
- [Guile-commits] 04/27: Add movr_f_i, movr_i_f, movr_d_l, movr_l_d, Andy Wingo, 2025/01/29
- [Guile-commits] 10/27: riscv: Add fence, Andy Wingo, 2025/01/29
- [Guile-commits] 18/27: riscv: fix load size for ldxi instructions, Andy Wingo, 2025/01/29
- [Guile-commits] 16/27: riscv: fix literal pool guard jump address calc, Andy Wingo, 2025/01/29
- [Guile-commits] 09/27: Fix CI, Andy Wingo, 2025/01/29
- [Guile-commits] 23/27: riscv: change stack alignment to 16, Andy Wingo, 2025/01/29
- [Guile-commits] 12/27: riscv: don't pack veneers, use padding, Andy Wingo, 2025/01/29
- [Guile-commits] 17/27: riscv: simplify load from pool, Andy Wingo, 2025/01/29
- [Guile-commits] 26/27: Merge branch 'main' into 'main', Andy Wingo, 2025/01/29
- [Guile-commits] 07/27: RISC-V Support, Andy Wingo, 2025/01/29
- [Guile-commits] 14/27: riscv: fix the B and J type size check,
Andy Wingo <=
- [Guile-commits] 11/27: riscv: Pack the veneer struct, Andy Wingo, 2025/01/29
- [Guile-commits] 22/27: riscv: fix hi20/lo12 calculations for negative numbers, Andy Wingo, 2025/01/29
- [Guile-commits] 24/27: riscv: float/double call convention implementation, Andy Wingo, 2025/01/29
- [Guile-commits] 05/27: Merge branch 'reinterpret' into 'main', Andy Wingo, 2025/01/29
- [Guile-commits] 02/27: aarch64: Fix duplicate declaration, Andy Wingo, 2025/01/29
- [Guile-commits] 15/27: riscv: add get_callr_temp, Andy Wingo, 2025/01/29
- [Guile-commits] 21/27: riscv: better `movi`, Andy Wingo, 2025/01/29
- [Guile-commits] 08/27: Add RISCV to CI and makefile, Andy Wingo, 2025/01/29
- [Guile-commits] 20/27: riscv: movi: use addiw in RV64, Andy Wingo, 2025/01/29
- [Guile-commits] 01/27: Fix some problems with callr and calli., Andy Wingo, 2025/01/29