[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 10/34: Fix a couple bugs related to aarch64 literal pool
From: |
Andy Wingo |
Subject: |
[Guile-commits] 10/34: Fix a couple bugs related to aarch64 literal pools |
Date: |
Mon, 20 May 2019 09:55:52 -0400 (EDT) |
wingo pushed a commit to branch master
in repository guile.
commit 9638e4f169457890effd7f7b8de8d5dad5a0ec49
Author: Andy Wingo <address@hidden>
Date: Thu May 16 11:03:49 2019 +0200
Fix a couple bugs related to aarch64 literal pools
---
lightening/aarch64.c | 4 ++--
lightening/lightening.c | 7 +++----
2 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/lightening/aarch64.c b/lightening/aarch64.c
index be1d5f7..1964cb9 100644
--- a/lightening/aarch64.c
+++ b/lightening/aarch64.c
@@ -115,8 +115,8 @@ DEFINE_ENCODER(size, 2, 22, unsigned, uint32_t)
return ret; \
}
-DEFINE_PATCHABLE_INSTRUCTION(jmp, simm26, JCC_WITH_VENEER, 2);
-DEFINE_PATCHABLE_INSTRUCTION(jcc, simm19, JMP_WITH_VENEER, 2);
+DEFINE_PATCHABLE_INSTRUCTION(jmp, simm26, JMP_WITH_VENEER, 2);
+DEFINE_PATCHABLE_INSTRUCTION(jcc, simm19, JCC_WITH_VENEER, 2);
DEFINE_PATCHABLE_INSTRUCTION(load_from_pool, simm19, LOAD_FROM_POOL, 2);
struct veneer
diff --git a/lightening/lightening.c b/lightening/lightening.c
index c58f577..e073103 100644
--- a/lightening/lightening.c
+++ b/lightening/lightening.c
@@ -1281,11 +1281,10 @@ remove_pending_literal(jit_state_t *_jit, jit_reloc_t
src)
{
for (size_t i = _jit->pool->size; i--; ) {
if (_jit->pool->entries[i].reloc.offset == src.offset) {
- for (size_t j = i + 1; j < _jit->pool->size; j++) {
+ for (size_t j = i + 1; j < _jit->pool->size; j++)
_jit->pool->entries[j-1] = _jit->pool->entries[j];
- _jit->pool->size--;
- return;
- }
+ _jit->pool->size--;
+ return;
}
}
abort();
- [Guile-commits] branch master updated (1b98734 -> e057ea0), Andy Wingo, 2019/05/20
- [Guile-commits] 02/34: Refactor some bits from x86 to lightening, Andy Wingo, 2019/05/20
- [Guile-commits] 07/34: Fix GPR temporary selection, Andy Wingo, 2019/05/20
- [Guile-commits] 01/34: Refactor to move temp register acquire to core, Andy Wingo, 2019/05/20
- [Guile-commits] 10/34: Fix a couple bugs related to aarch64 literal pools,
Andy Wingo <=
- [Guile-commits] 06/34: Allow a backend to have multiple temporary registers, Andy Wingo, 2019/05/20
- [Guile-commits] 09/34: Fix enter/leave JIT ABI, Andy Wingo, 2019/05/20
- [Guile-commits] 14/34: Fix dpkg --add-architecture invocation, Andy Wingo, 2019/05/20
- [Guile-commits] 16/34: Attempt to fix CI on Debian, Andy Wingo, 2019/05/20
- [Guile-commits] 19/34: Attempt to fix CI on Debian, Andy Wingo, 2019/05/20
- [Guile-commits] 24/34: Remove unused jit_{gpr,fpr}_is_callee_save, Andy Wingo, 2019/05/20
- [Guile-commits] 11/34: Aarch64 backend avoids needless temporary register allocation, Andy Wingo, 2019/05/20
- [Guile-commits] 04/34: Refactor to add support for constant tables, shifted relocs, Andy Wingo, 2019/05/20
- [Guile-commits] 34/34: Merge remote-tracking branch 'lightening/master', Andy Wingo, 2019/05/20
- [Guile-commits] 12/34: Remove jit_nop, Andy Wingo, 2019/05/20