Skip to content

Commit 3efc838

Browse files
authored
Update binaryen (#1989)
1 parent 7ec33a4 commit 3efc838

File tree

9 files changed

+128
-117
lines changed

9 files changed

+128
-117
lines changed

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"url": "https://github.com/AssemblyScript/assemblyscript/issues"
2222
},
2323
"dependencies": {
24-
"binaryen": "101.0.0-nightly.20210703",
24+
"binaryen": "101.0.0-nightly.20210723",
2525
"long": "^4.0.0",
2626
"source-map-support": "^0.5.19",
2727
"ts-node": "^6.2.0"

tests/compiler/features/reference-types.untouched.wat

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -426,17 +426,19 @@
426426
call $~lib/builtins/abort
427427
unreachable
428428
end
429-
ref.func $features/reference-types/someFunc
430-
local.set $0
431-
local.get $0
432-
ref.is_null
433-
if
434-
i32.const 0
435-
i32.const 32
436-
i32.const 113
437-
i32.const 3
438-
call $~lib/builtins/abort
439-
unreachable
429+
block
430+
ref.func $features/reference-types/someFunc
431+
local.set $0
432+
local.get $0
433+
ref.is_null
434+
if
435+
i32.const 0
436+
i32.const 32
437+
i32.const 113
438+
i32.const 3
439+
call $~lib/builtins/abort
440+
unreachable
441+
end
440442
end
441443
global.get $features/reference-types/funcGlobal
442444
global.set $features/reference-types/anyGlobal

tests/compiler/features/simd.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,11 +393,14 @@ function test_i16x8(): void {
393393
);
394394
__free(ptr);
395395
}
396+
assert(i16x8.q15mulr_sat_s(
397+
i16x8(-1, -16383, 32765, <i16>65535, -32768, <i16>65535, -16385, -32768),
398+
i16x8(-1, -16384, 1, -32768, -32768, 1, -16384, -10)
399+
) == i16x8(0, 8192, 1, 1, 32767, 0, 8193, 1));
396400

397401
// TODO: unimp in Binaryen's interpreter
398402
i16x8.extadd_pairwise_i8x16_s(a);
399403
i16x8.extadd_pairwise_i8x16_u(a);
400-
i16x8.q15mulr_sat_s(a, a);
401404
i16x8.extmul_low_i8x16_s(a, a);
402405
i16x8.extmul_low_i8x16_u(a, a);
403406
i16x8.extmul_high_i8x16_s(a, a);
@@ -580,6 +583,7 @@ function test_i64x2(): void {
580583
);
581584
__free(ptr);
582585
}
586+
// TODO: unimp in Binaryen's interpreter
583587
i64x2.extmul_low_i32x4_s(a, a);
584588
i64x2.extmul_low_i32x4_u(a, a);
585589
i64x2.extmul_high_i32x4_s(a, a);

0 commit comments

Comments
 (0)