[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/native-comp 4263f2f 8/9: * src/comp.c (emit_XFIXNUM): Fix for LS
From: |
Andrea Corallo |
Subject: |
feature/native-comp 4263f2f 8/9: * src/comp.c (emit_XFIXNUM): Fix for LSB_TAG plus annotate a FIXME. |
Date: |
Sun, 5 Apr 2020 17:25:08 -0400 (EDT) |
branch: feature/native-comp
commit 4263f2fd15e8439b8e8676ebeb6ab2f7f9339025
Author: Andrea Corallo <address@hidden>
Commit: Andrea Corallo <address@hidden>
* src/comp.c (emit_XFIXNUM): Fix for LSB_TAG plus annotate a FIXME.
---
src/comp.c | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/src/comp.c b/src/comp.c
index 44de1f5..0a80354 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -985,16 +985,19 @@ emit_XFIXNUM (gcc_jit_rvalue *obj)
i,
comp.inttypebits);
- return emit_binary_op (GCC_JIT_BINARY_OP_RSHIFT,
- comp.emacs_int_type,
- i,
- comp.inttypebits);
+ return emit_coerce (comp.emacs_int_type,
+ emit_binary_op (GCC_JIT_BINARY_OP_RSHIFT,
+ comp.emacs_uint_type,
+ i,
+ comp.inttypebits));
}
else
- return emit_binary_op (GCC_JIT_BINARY_OP_LSHIFT,
- comp.emacs_int_type,
- i,
- comp.inttypebits);
+ /* FIXME: Implementation dependent (wants arithmetic shift). */
+ return emit_coerce (comp.emacs_int_type,
+ emit_binary_op (GCC_JIT_BINARY_OP_RSHIFT,
+ comp.emacs_int_type,
+ i,
+ comp.inttypebits));
}
static gcc_jit_rvalue *
- feature/native-comp updated (fcce8dd -> 3608623), Andrea Corallo, 2020/04/05
- feature/native-comp 346d509 7/9: * src/comp.c (emit_const_lisp_obj, emit_mvar_val): Fix., Andrea Corallo, 2020/04/05
- feature/native-comp 4263f2f 8/9: * src/comp.c (emit_XFIXNUM): Fix for LSB_TAG plus annotate a FIXME.,
Andrea Corallo <=
- feature/native-comp 70cb964 2/9: * src/comp.c: Clean-up unnecessary field declaration., Andrea Corallo, 2020/04/05
- feature/native-comp 5983804 6/9: * src/comp.c (hash_native_abi): Fix assertion., Andrea Corallo, 2020/04/05
- feature/native-comp 49a3790 3/9: * src/comp.c: Add MSB TAG and wide int support., Andrea Corallo, 2020/04/05
- feature/native-comp e3dff70 4/9: * src/comp.c: Emit cast only when necessary., Andrea Corallo, 2020/04/05
- feature/native-comp 37a9d1e 1/9: * lisp/emacs-lisp/comp.el (native-compile): Better documentation., Andrea Corallo, 2020/04/05
- feature/native-comp 7009e8a 5/9: * src/comp.c (emit_binary_op): New function., Andrea Corallo, 2020/04/05
- feature/native-comp 3608623 9/9: Merge remote-tracking branch 'savannah/master' into HEAD, Andrea Corallo, 2020/04/05