From 17ad5e65449939a5494320e66f7bf55d226c84de Mon Sep 17 00:00:00 2001 From: Thomas Fitzsimmons Date: Sun, 27 Aug 2023 18:27:27 -0400 Subject: [PATCH 1/2] Update sign-extend size argument name for SBCL This fixes the error: "The variable LLVM-RUNTIME::SIZE is unbound." --- runtime/llvm-runtime.lisp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/llvm-runtime.lisp b/runtime/llvm-runtime.lisp index 291bd2d..bd61c4a 100644 --- a/runtime/llvm-runtime.lisp +++ b/runtime/llvm-runtime.lisp @@ -354,7 +354,7 @@ PERSONALITY is bound to the context's personality object." (t `(sign-extend ,value ,input-size))) #+sbcl - `(sign-extend ,value ,size)) + `(sign-extend ,value ,input-size)) (define-integer-conversion-op zext (value size) value) From 44724aa62a4efa38147ea2d0adec1091136471fe Mon Sep 17 00:00:00 2001 From: Thomas Fitzsimmons Date: Sun, 27 Aug 2023 18:29:01 -0400 Subject: [PATCH 2/2] Do not use sb-vm::sign-extend on ppc64 This fixes "The function SB-VM::SIGN-EXTEND is undefined." on ppc64, where that SBCL-internal function is not defined. --- runtime/llvm-runtime.lisp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/llvm-runtime.lisp b/runtime/llvm-runtime.lisp index bd61c4a..a9c0a31 100644 --- a/runtime/llvm-runtime.lisp +++ b/runtime/llvm-runtime.lisp @@ -125,7 +125,7 @@ PERSONALITY is bound to the context's personality object." (define-compiler-macro sign-extend (&whole whole value width) (declare (ignorable whole)) (cond - #+sbcl + #+(and sbcl (not ppc64)) ((member width '(8 16 32)) `(sb-vm::sign-extend ,value ,width)) ((integerp width)