Skip to content

Commit

Permalink
[test] Import v128 global (WebAssembly#1597)
Browse files Browse the repository at this point in the history
  • Loading branch information
rossberg committed Mar 1, 2023
1 parent aca8ec9 commit 875ab74
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 18.x
- run: cd interpreter && opam exec make all
- run: cd interpreter && opam exec make JS=node all

ref-interpreter-js-library:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion interpreter/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ FLAGS = -lexflags -ml -cflags '-w +a-4-27-42-44-45-70 -warn-error +a-3'
OCBA = ocamlbuild $(FLAGS) $(DIRS:%=-I %)
OCB = $(OCBA) $(LIBS:%=-libs %)
JSO = js_of_ocaml -q --opt 3
JS = node # set to JS shell command to run JS tests, empty to skip
JS = # set to JS shell command to run JS tests, empty to skip


# Main targets
Expand Down
14 changes: 14 additions & 0 deletions test/core/linking.wast
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,20 @@
)


(module
(global (export "g-v128") v128 (v128.const i64x2 0 0))
(global (export "mg-v128") (mut v128) (v128.const i64x2 0 0))
)
(register "Mv128")

(module
;; TODO: Reactivate once the fix for https://bugs.chromium.org/p/v8/issues/detail?id=13732
;; has made it to the downstream node.js that we use on CI.
;; (import "Mv128" "g-v128" (global v128))
(import "Mv128" "mg-v128" (global (mut v128)))
)


;; Tables

(module $Mt
Expand Down

0 comments on commit 875ab74

Please sign in to comment.