static gcc_jit_rvalue *
emit_VECTORLIKEP (gcc_jit_rvalue *obj)
{
- return emit_TAGGEDP(obj, Lisp_Vectorlike);
+ return emit_TAGGEDP (obj, Lisp_Vectorlike);
}
static gcc_jit_rvalue *
emit_CONSP (gcc_jit_rvalue *obj)
{
- return emit_TAGGEDP(obj, Lisp_Cons);
+ return emit_TAGGEDP (obj, Lisp_Cons);
}
static gcc_jit_rvalue *
CASE_CALL_NARGS (symbolp, 1);
case Bconsp:
- gcc_jit_block_add_assignment (
- comp.bblock->gcc_bb,
- NULL,
- TOS,
- emit_CONSP(gcc_jit_lvalue_as_rvalue (TOS)));
+ POP1;
+ res = emit_cast (comp.bool_type,
+ emit_CONSP (args[0]));
+ res = gcc_jit_context_new_call (comp.ctxt,
+ NULL,
+ comp.bool_to_lisp_obj,
+ 1, &res);
+ PUSH_RVAL (res);
break;
CASE_CALL_NARGS (stringp, 1);
;; Bconsp
(consp x))
- ;; (byte-compile #'comp-tests-consp-f)
- ;; (native-compile #'comp-tests-consp-f)
+ (byte-compile #'comp-tests-consp-f)
+ (native-compile #'comp-tests-consp-f)
(should (eq (comp-tests-consp-f '(1)) t))
(should (eq (comp-tests-consp-f 1) nil)))