Commitaab7c4a7Recorded7 Apr 2026Repositorysigil-ansi

Fix 5 regvm test failures: parameter tailcalls, set-car!/substring emit, remainder opcode

Message
  • Add parameter object handling to ROP_TAILCALL dispatch (fixes parameterize, which broke test-mcp-server and any code calling parameters in tail position)
  • Fix set-car!/set-cdr! register emission: use arg registers instead of dest register for the pair operand (fixes test-gc-stress)
  • Fix substring (ternary op) result not moved to dest register after execution
  • Add ROP_REM opcode for remainder operation (was missing from regvm entirely)
  • Add (sigil string) import to test-ansi, test-semver, test-deps for string-contains? which requires explicit import
  • Remove orphaned test-execute.sgl (module deleted in 5e65b1ab)
Changed
 test/test-ansi.sgl | 1 +
 1 file changed, 1 insertion(+)
Diff
test/test-ansi.sglmodified
@@ -1,4 +1,5 @@
1
(import (sigil test)
+2
(sigil string)
3
(sigil ansi))
4
5
;; ============================================================