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: implements comparison instructions #617

Merged
merged 6 commits into from
Jun 3, 2022
Merged

SIMD: implements comparison instructions #617

merged 6 commits into from
Jun 3, 2022

Conversation

mathetake
Copy link
Member

@mathetake mathetake commented Jun 2, 2022

This implements all the vector comparison operators for the interpreter
and compiler(amd64).

Notably, now our engines pass simd_*_cmp.wast spec tests.

part of #484

@mathetake
Copy link
Member Author

ok done with interpreter....

Signed-off-by: Takeshi Yoneda <[email protected]>
@mathetake mathetake marked this pull request as ready for review June 3, 2022 04:55
Copy link
Contributor

@codefromthecrypt codefromthecrypt left a comment

Choose a reason for hiding this comment

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

great woodchopping. Keep it up!

internal/asm/amd64/impl.go Outdated Show resolved Hide resolved
internal/asm/amd64/consts_test.go Show resolved Hide resolved
internal/asm/amd64/impl_test.go Outdated Show resolved Hide resolved
internal/asm/amd64/impl_test.go Outdated Show resolved Hide resolved
internal/asm/amd64/impl_test.go Outdated Show resolved Hide resolved
internal/engine/compiler/impl_vec_amd64.go Outdated Show resolved Hide resolved
internal/engine/interpreter/interpreter.go Outdated Show resolved Hide resolved
internal/wasm/func_validation.go Show resolved Hide resolved
@@ -2180,6 +2180,198 @@ operatorSwitch:
c.emit(
&OperationV128Shr{Shape: ShapeI64x2, Signed: false},
)
case wasm.OpcodeVecI8x16Eq:
Copy link
Contributor

Choose a reason for hiding this comment

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

touch compiler_test.go each PR even if only one case

internal/wazeroir/operations.go Outdated Show resolved Hide resolved
mathetake and others added 4 commits June 3, 2022 15:27
Signed-off-by: Takeshi Yoneda <[email protected]>
Signed-off-by: Takeshi Yoneda <[email protected]>
Signed-off-by: Takeshi Yoneda <[email protected]>
@mathetake
Copy link
Member Author

will do the wazeroir/compiler_test backfilling in another PR as this is already huge!

@mathetake mathetake merged commit 94d1d31 into main Jun 3, 2022
@mathetake mathetake deleted the simdcmp branch June 3, 2022 07:04
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