From 1b16370ceeaebe5f1d2f9e79be64a262cb894ad4 Mon Sep 17 00:00:00 2001 From: watneyzhu <1253349077@qq.com> Date: Sun, 26 Jul 2026 20:12:54 +0800 Subject: [PATCH 1/2] fix: update outdated clone URL in CONTRIBUTING.md --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ca28c08..0360cb6 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -7,7 +7,7 @@ are very welcome. ## Quick Start ```bash -git clone https://github.com/kinsomwang/ScratchV +git clone https://github.com/ScratchV-Compiler/ScratchV cd ScratchV pip install -e . # install in editable mode pip install tinyfive # optional: assembly verification From 7f89436030dec016c3d44e40f83dd64363bb44a1 Mon Sep 17 00:00:00 2001 From: watneyzhu <1253349077@qq.com> Date: Mon, 27 Jul 2026 21:43:28 +0800 Subject: [PATCH 2/2] fix: emit_i32_and uses i1 instead of i32 in LLVM IR output --- scratchv/standalone/onnx_to_llvm_standalone.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scratchv/standalone/onnx_to_llvm_standalone.py b/scratchv/standalone/onnx_to_llvm_standalone.py index 39c2558..5e7ce43 100644 --- a/scratchv/standalone/onnx_to_llvm_standalone.py +++ b/scratchv/standalone/onnx_to_llvm_standalone.py @@ -303,7 +303,7 @@ def emit_i32_icmp(self, predicate: str, lhs: str, rhs: str) -> str: def emit_i32_and(self, lhs: str, rhs: str) -> str: r = self.fresh("iand") - self._p(f" {r} = and i1 {lhs}, {rhs}") + self._p(f" {r} = and i32 {lhs}, {rhs}") return r # -- control flow ------------------------------------------------------