Skip to content

Commit

Permalink
Update binaryen (AssemblyScript#1989)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxGraey authored Jul 23, 2021
1 parent 7ec33a4 commit 3efc838
Show file tree
Hide file tree
Showing 9 changed files with 128 additions and 117 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"url": "https://github.com/AssemblyScript/assemblyscript/issues"
},
"dependencies": {
"binaryen": "101.0.0-nightly.20210703",
"binaryen": "101.0.0-nightly.20210723",
"long": "^4.0.0",
"source-map-support": "^0.5.19",
"ts-node": "^6.2.0"
Expand Down
24 changes: 13 additions & 11 deletions tests/compiler/features/reference-types.untouched.wat
Original file line number Diff line number Diff line change
Expand Up @@ -426,17 +426,19 @@
call $~lib/builtins/abort
unreachable
end
ref.func $features/reference-types/someFunc
local.set $0
local.get $0
ref.is_null
if
i32.const 0
i32.const 32
i32.const 113
i32.const 3
call $~lib/builtins/abort
unreachable
block
ref.func $features/reference-types/someFunc
local.set $0
local.get $0
ref.is_null
if
i32.const 0
i32.const 32
i32.const 113
i32.const 3
call $~lib/builtins/abort
unreachable
end
end
global.get $features/reference-types/funcGlobal
global.set $features/reference-types/anyGlobal
Expand Down
6 changes: 5 additions & 1 deletion tests/compiler/features/simd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,11 +393,14 @@ function test_i16x8(): void {
);
__free(ptr);
}
assert(i16x8.q15mulr_sat_s(
i16x8(-1, -16383, 32765, <i16>65535, -32768, <i16>65535, -16385, -32768),
i16x8(-1, -16384, 1, -32768, -32768, 1, -16384, -10)
) == i16x8(0, 8192, 1, 1, 32767, 0, 8193, 1));

// TODO: unimp in Binaryen's interpreter
i16x8.extadd_pairwise_i8x16_s(a);
i16x8.extadd_pairwise_i8x16_u(a);
i16x8.q15mulr_sat_s(a, a);
i16x8.extmul_low_i8x16_s(a, a);
i16x8.extmul_low_i8x16_u(a, a);
i16x8.extmul_high_i8x16_s(a, a);
Expand Down Expand Up @@ -580,6 +583,7 @@ function test_i64x2(): void {
);
__free(ptr);
}
// TODO: unimp in Binaryen's interpreter
i64x2.extmul_low_i32x4_s(a, a);
i64x2.extmul_low_i32x4_u(a, a);
i64x2.extmul_high_i32x4_s(a, a);
Expand Down
Loading

0 comments on commit 3efc838

Please sign in to comment.