Skip to content

[Shared-Everything] ArrayRMW and ArrayCmpxchg #7632

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

Merged
merged 35 commits into from
Jun 2, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
format
  • Loading branch information
kripken committed May 29, 2025
commit d56bf773a010dd335525112656114a51a450ea5c
12 changes: 8 additions & 4 deletions src/wasm/wasm-validator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3719,8 +3719,10 @@ void FunctionValidator::visitArrayRMW(ArrayRMW* curr) {
return;
}
const auto& element = type.getArray().element;
shouldBeEqual(
element.mutable_, Mutable, curr, "array.atomic.rmw element must be mutable");
shouldBeEqual(element.mutable_,
Mutable,
curr,
"array.atomic.rmw element must be mutable");
shouldBeFalse(
element.isPacked(), curr, "array.atomic.rmw element must not be packed");
bool isAny =
Expand Down Expand Up @@ -3766,8 +3768,10 @@ void FunctionValidator::visitArrayCmpxchg(ArrayCmpxchg* curr) {
return;
}
const auto& element = type.getArray().element;
shouldBeEqual(
element.mutable_, Mutable, curr, "array.atomic.rmw element must be mutable");
shouldBeEqual(element.mutable_,
Mutable,
curr,
"array.atomic.rmw element must be mutable");
shouldBeFalse(
element.isPacked(), curr, "array.atomic.rmw element must not be packed");

Expand Down
Loading