Issue #3049 - Fix LoongArch minimal JIT return path

This commit is contained in:
Basilisk-Dev 2026-04-22 23:13:21 -04:00 committed by wuggy
commit 13a37bf023
2 changed files with 19 additions and 1 deletions

View file

@ -16,6 +16,14 @@ function unsupported(a, b) {
return a + (b + 0.5);
}
function largeResult(a) {
return a + 300;
}
function negativeResult(a) {
return a - 300;
}
for (var i = 0; i < 100; i++) {
assertEq(add(i, i + 1), (i + i + 1));
assertEq(withLocal(i, 7), i + 7);
@ -23,6 +31,8 @@ for (var i = 0; i < 100; i++) {
assertEq(overflow(2147483647, 1), 2147483648);
assertEq(unsupported(2, 3), 5.5);
assertEq(largeResult(7), 307);
assertEq(negativeResult(7), -293);
(function testPropertyWrappers() {
function getX(obj) { return obj.x; }