Skip to content

Instantly share code, notes, and snippets.

@MikePall
MikePall / TEST_LuaJIT_3.0_SYNTAX_EXTENSIONS.md
Last active July 8, 2026 09:00
LuaJIT 3.0 Syntax Extensions Test Cases

LuaJIT 3.0 Syntax Extensions Test Cases

The files with v3_ in front of it only work in 3.0, not in the LuaJIT 2.1 backport.

Below is the -jdump (there's no isolated testcase) that triggered this fix:
https://github.com/LuaJIT/LuaJIT/commit/2bc63bb6affdb378c1698bd0f97bacb286a61a6f
Reasoning for the interim fix:
Trace 555 has a code generation bug. It must not coalesce with r13 as BASE.
So IR(REF_BASE)->r of trace 555 contains r13. But the RETF in trace 444
modifies BASE with rdx right before exit 4 which leads to trace 555. Trace