From 61370e23f329bd3c43bf959145e125ad8392c23e Mon Sep 17 00:00:00 2001 From: Charles Zhang Date: Sun, 21 Apr 2024 00:48:52 +0200 Subject: [PATCH] Make ./build-all-cores.sh check float files. Check the xfloat-math.lisp-expr files produced in each tree directly, and dispense with the almost-but-not-quite stand-alone merging utility which required loading the whole cross-compiler just to check some lisp expressions matched what they're supposed to be on the host, which is overkill. --- build-all-cores.sh | 4 +++- make-target-2.sh | 4 +++- src/code/cross-float.lisp | 43 +++------------------------------------ src/cold/warm.lisp | 43 --------------------------------------- validate-float.lisp | 39 +++++++++++++++++++++++++++++++++++ 5 files changed, 48 insertions(+), 85 deletions(-) create mode 100644 validate-float.lisp diff --git a/build-all-cores.sh b/build-all-cores.sh index 4683f32c6..09f373830 100755 --- a/build-all-cores.sh +++ b/build-all-cores.sh @@ -132,7 +132,9 @@ obj/xbuild/{cfg}.core: obj/xbuild/{cfg}/xc.core :search t)) (when (= (process-exit-code *process*) 0) (load "src/cold/shared" :verbose t) - ;; TODO: merge the xfloat-math files, unless we decide to get rid of them + (load "validate-float.lisp") + (dolist (pathname (directory "obj/xbuild/**/xfloat-math.lisp-expr")) + (check-float-file pathname)) (dolist (nbits '(30 61 63)) (let* ((filename (format nil "xperfecthash~D.lisp-expr" nbits)) (sources (directory (format nil "obj/xbuild/*/from-xc/~A" filename)))) diff --git a/make-target-2.sh b/make-target-2.sh index 4da0001cc..d02afc1bd 100755 --- a/make-target-2.sh +++ b/make-target-2.sh @@ -74,7 +74,9 @@ echo //doing warm init - load and dump phase EOF ./src/runtime/sbcl --noinform --core output/sbcl.core \ - --no-sysinit --no-userinit --noprint <