[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 08/20: Simplify 64/32 concerns in x86-cpu.c
From: |
Andy Wingo |
Subject: |
[Guile-commits] 08/20: Simplify 64/32 concerns in x86-cpu.c |
Date: |
Sun, 28 Apr 2019 07:54:20 -0400 (EDT) |
wingo pushed a commit to branch lightening
in repository guile.
commit 24950994ef6f0e642d67e99d304a0b5c90232d05
Author: Andy Wingo <address@hidden>
Date: Fri Apr 26 16:13:29 2019 +0200
Simplify 64/32 concerns in x86-cpu.c
* lightening/x86-cpu.c (il): Take a uint64_t. It's only called this
way.
(imovi): Remove some x64_32 conditions; they seem bogus.
---
lightening/x86-cpu.c | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/lightening/x86-cpu.c b/lightening/x86-cpu.c
index 7144dff..b32c850 100644
--- a/lightening/x86-cpu.c
+++ b/lightening/x86-cpu.c
@@ -161,9 +161,9 @@ ii(jit_state_t *_jit, uint32_t i)
}
static inline void
-il(jit_state_t *_jit, unsigned long l)
+iw(jit_state_t *_jit, jit_word_t l)
{
-#if __X64 && !__X64_32
+#if __X64
emit_u64(_jit, l);
#else
ii(_jit, l);
@@ -410,19 +410,15 @@ static void
imovi(jit_state_t *_jit, int32_t r0, jit_word_t i0)
{
#if __X64
-# if !__X64_32
if (fits_uint32_p(i0)) {
-# endif
rex(_jit, 0, 0, _NOREG, _NOREG, r0);
ic(_jit, 0xb8 | r7(r0));
ii(_jit, i0);
-# if !__X64_32
} else {
rex(_jit, 0, 1, _NOREG, _NOREG, r0);
ic(_jit, 0xb8 | r7(r0));
- il(_jit, i0);
+ iw(_jit, i0);
}
-# endif
#else
ic(_jit, 0xb8 | r7(r0));
ii(_jit, i0);
- [Guile-commits] 18/20: Merge branch 'x86-32-ci' into 'master', (continued)
- [Guile-commits] 18/20: Merge branch 'x86-32-ci' into 'master', Andy Wingo, 2019/04/28
- [Guile-commits] 16/20: Mark test files as precious to prevent them from being deleted by make, Andy Wingo, 2019/04/28
- [Guile-commits] 17/20: Add x86-32 tests to default test target, Andy Wingo, 2019/04/28
- [Guile-commits] 15/20: Add test for JIT callee with many args, Andy Wingo, 2019/04/28
- [Guile-commits] 14/20: Add {enter,leave}_jit_abi calls in tests, Andy Wingo, 2019/04/28
- [Guile-commits] 09/20: Remove most __X64_32 code, Andy Wingo, 2019/04/28
- [Guile-commits] 10/20: Add facility to enter and leave JIT ABI, Andy Wingo, 2019/04/28
- [Guile-commits] 03/20: Fix lightening to compile on 32-bit x86, Andy Wingo, 2019/04/28
- [Guile-commits] 13/20: Fix ABI of arg to extr_d_f test, Andy Wingo, 2019/04/28
- [Guile-commits] 12/20: Fix jit_leave_jit_abi to pop correct registers, Andy Wingo, 2019/04/28
- [Guile-commits] 08/20: Simplify 64/32 concerns in x86-cpu.c,
Andy Wingo <=
- [Guile-commits] 07/20: Make jit_cpu private, Andy Wingo, 2019/04/28
- [Guile-commits] 11/20: Small bug fixes for ia32, Andy Wingo, 2019/04/28
- [Guile-commits] 01/20: Inline some internal definitions into backend-specific files, Andy Wingo, 2019/04/28
- [Guile-commits] 02/20: Account for saved return address when locating args, Andy Wingo, 2019/04/28
- [Guile-commits] 05/20: Fix compile warnings for 32-bit tests, Andy Wingo, 2019/04/28
- [Guile-commits] 06/20: Fix 32-bit movi_d, Andy Wingo, 2019/04/28