[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 75/86: get_temp_{gpr, xpr} returns a jit_{gpr, fpr}_t
From: |
Andy Wingo |
Subject: |
[Guile-commits] 75/86: get_temp_{gpr, xpr} returns a jit_{gpr, fpr}_t |
Date: |
Wed, 3 Apr 2019 11:39:03 -0400 (EDT) |
wingo pushed a commit to branch lightening
in repository guile.
commit b4169e25badbd61f7fb31002edbbd3150efc2f85
Author: Andy Wingo <address@hidden>
Date: Wed Apr 3 11:04:19 2019 +0200
get_temp_{gpr,xpr} returns a jit_{gpr,fpr}_t
---
jit/x86-cpu.c | 6 +++---
jit/x86-sse.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/jit/x86-cpu.c b/jit/x86-cpu.c
index 4bc5e38..bffb744 100644
--- a/jit/x86-cpu.c
+++ b/jit/x86-cpu.c
@@ -265,16 +265,16 @@ popr(jit_state_t *_jit, int32_t r0)
ic(_jit, 0x58 | r7(r0));
}
-static int32_t
+static jit_gpr_t
get_temp_gpr(jit_state_t *_jit)
{
ASSERT(!_jit->temp_gpr_saved);
_jit->temp_gpr_saved = 1;
#if __X32
pushr(_jit, _RBP_REGNO);
- return _RBP_REGNO;
+ return _RBP;
#else
- return _R8_REGNO;
+ return _R8;
#endif
}
diff --git a/jit/x86-sse.c b/jit/x86-sse.c
index 57e365b..1a27730 100644
--- a/jit/x86-sse.c
+++ b/jit/x86-sse.c
@@ -172,7 +172,7 @@ movr_d(jit_state_t *_jit, int32_t r0, int32_t r1)
static void
pushr_d(jit_state_t *_jit, int32_t r0)
{
- int32_t tmp = get_temp_gpr(_jit);
+ jit_gpr_t tmp = get_temp_gpr(_jit);
movdqxr(_jit, rn(tmp), r0);
pushr(_jit, rn(tmp));
unget_temp_gpr(_jit);
@@ -187,13 +187,13 @@ popr_d(jit_state_t *_jit, int32_t r0)
unget_temp_gpr(_jit);
}
-static int32_t
+static jit_fpr_t
get_temp_xpr(jit_state_t *_jit)
{
/* Reserve XMM7 for the JIT. */
ASSERT(!_jit->temp_fpr_saved);
_jit->temp_fpr_saved = 1;
- return _XMM7_REGNO;
+ return _XMM7;
}
static void
- [Guile-commits] 43/86: Rework naming of test suite files, (continued)
- [Guile-commits] 43/86: Rework naming of test suite files, Andy Wingo, 2019/04/03
- [Guile-commits] 48/86: Add ldi tests, Andy Wingo, 2019/04/03
- [Guile-commits] 57/86: Fix stxi_d bug, Andy Wingo, 2019/04/03
- [Guile-commits] 49/86: Add ldxr tests, Andy Wingo, 2019/04/03
- [Guile-commits] 61/86: Add int/int reg/imm compare-and-branch tests, Andy Wingo, 2019/04/03
- [Guile-commits] 63/86: Add unordered float compare-and-branch tests, Andy Wingo, 2019/04/03
- [Guile-commits] 53/86: Add stxr tests, Andy Wingo, 2019/04/03
- [Guile-commits] 56/86: Tweak test build to run faster, and adapt CI, Andy Wingo, 2019/04/03
- [Guile-commits] 40/86: Add bitops tests, Andy Wingo, 2019/04/03
- [Guile-commits] 78/86: Clean up stack after calls, Andy Wingo, 2019/04/03
- [Guile-commits] 75/86: get_temp_{gpr, xpr} returns a jit_{gpr, fpr}_t,
Andy Wingo <=
- [Guile-commits] 66/86: Add sub-and-branch-on-overflow tests, Andy Wingo, 2019/04/03
- [Guile-commits] 73/86: Add movi_[df] tests, Andy Wingo, 2019/04/03
- [Guile-commits] 64/86: Add flag-checking test-and-branch tests, Andy Wingo, 2019/04/03
- [Guile-commits] 69/86: Add abs/sqrt tests, Andy Wingo, 2019/04/03
- [Guile-commits] 67/86: Add some nop and jmp tests, and fix a hazard with jmpi/calli, Andy Wingo, 2019/04/03
- [Guile-commits] 62/86: Add anti-float comparison tests, Andy Wingo, 2019/04/03
- [Guile-commits] 51/86: Add str tests, Andy Wingo, 2019/04/03
- [Guile-commits] 58/86: Add bltr test, Andy Wingo, 2019/04/03
- [Guile-commits] 65/86: Add add-and-branch-on-overflow tests, Andy Wingo, 2019/04/03
- [Guile-commits] 59/86: Add more integer reg/reg branch-and-compare tests, Andy Wingo, 2019/04/03