We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e33605 commit 5999c99Copy full SHA for 5999c99
2 files changed
src/wasm/wasm-binary.cpp
@@ -365,7 +365,7 @@ void WasmBinaryWriter::writeImports() {
365
table->max,
366
table->hasMax(),
367
/*shared=*/false,
368
- /*is64*/ false);
+ table->is64());
369
});
370
finishSection(start);
371
}
test/lit/table64.wast
@@ -0,0 +1,11 @@
1
+;; NOTE: Assertions have been generated by update_lit_checks.py --all-items and should not be edited.
2
+;; RUN: wasm-opt %s -all --roundtrip -S -o - | filecheck %s
3
+
4
5
+;; Most table64 test coverage is handled by the spec tests.
6
+;; Here we test what the spec doesn't cover, currently just the i64 flag
7
+;; is preserved on table imports during roundtripping.
8
+(module
9
+ (import "env" "table" (table i64 1 funcref))
10
+)
11
+;; CHECK: (import "env" "table" (table $timport$0 i64 1 funcref))
0 commit comments