JIT cond path: keep compare result as b1; br_if accepts b1 or i64 (!=0); add branch_return to benchmark suite.

This commit is contained in:
Moe Charm
2025-08-27 17:39:12 +09:00
parent a4ffc3b2aa
commit 6bfb38949c
14 changed files with 1282 additions and 243 deletions

View File

@ -30,6 +30,19 @@ impl NyashRunner {
return sum
"#,
),
(
"branch_return",
r#"
local a, b
a = 3
b = 5
if (a < b) {
return 1
} else {
return 2
}
"#,
),
];
for (name, code) in tests {