Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

winch: Enable memory64 in Winch #8194

Merged
merged 1 commit into from
Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,10 @@ fn ignore(testsuite: &str, testname: &str, strategy: &str) -> bool {
return denylist || ref_types || simd;
}

if testsuite == "memory64" {
return testname.starts_with("simd") || testname.starts_with("threads");
}

if testsuite != "winch" {
return true;
}
Expand Down
1 change: 0 additions & 1 deletion crates/fuzzing/src/generators/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,6 @@ impl Config {
pub fn disable_unimplemented_winch_proposals(&mut self) {
self.module_config.config.simd_enabled = false;
self.module_config.config.relaxed_simd_enabled = false;
self.module_config.config.memory64_enabled = false;
self.module_config.config.gc_enabled = false;
self.module_config.config.threads_enabled = false;
self.module_config.config.tail_call_enabled = false;
Expand Down
3 changes: 1 addition & 2 deletions winch/codegen/src/codegen/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,7 @@ impl<'a, 'translation, 'data, P: PtrSize> FuncEnv<'a, 'translation, 'data, P> {
current_length_offset,
style,
ty: if plan.memory.memory64 {
// TODO: Add support for 64-bit memories.
unimplemented!("memory64")
WasmValType::I64
} else {
WasmValType::I32
},
Expand Down