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

[simd/v3i]: Implement v128 bitwise instructions #120

Merged
merged 2 commits into from
Oct 16, 2023

Conversation

haoyu-zc
Copy link
Contributor

Tested by make v3i -j && bin/spectest.v3i -tk test/regress/simd/v128.xor.bin.wast | progress

@@ -135,6 +135,7 @@ component Values {
def v_d(v: Value) -> u64 { return Value.F64.!(v).bits; }
def v_l(v: Value) -> i64 { return i64.view(Value.I64.!(v).val); }
def v_w(v: Value) -> u64 { return Value.I64.!(v).val; }
def v_v128(v: Value) -> (u64, u64) { return (Value.V128.!(v).low, Value.V128.!(v).high); }
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you factor out the cast here to a local variable?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes sure.

src/engine/v3/V3Interpreter.v3 Show resolved Hide resolved
@haoyu-zc
Copy link
Contributor Author

Tested by: make v3i -j && bin/spectest.v3i -tk wasm-spec/src/spec/simd/simd_bitwise.bin.wast

@haoyu-zc haoyu-zc changed the title [simd]/v3i]: Implement v128.xor [simd/v3i]: Implement v128 bitwise instructions Oct 16, 2023
@haoyu-zc haoyu-zc requested a review from titzer October 16, 2023 14:49
Copy link
Owner

@titzer titzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@titzer titzer merged commit e5e15ab into titzer:master Oct 16, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants