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

wazeroir: backfill vector instruction unittets #623

Merged
merged 5 commits into from
Jun 6, 2022
Merged

Conversation

mathetake
Copy link
Member

@mathetake mathetake commented Jun 6, 2022

This increases the test coverage on wazeroir/compiler.go by adding unttests which
touch all lines related to V128 instructions.

Signed-off-by: Takeshi Yoneda [email protected]

mathetake added 2 commits June 6, 2022 09:51
Signed-off-by: Takeshi Yoneda <[email protected]>
@@ -2709,8 +2709,7 @@ func TestModule_funcValidation_SIMD(t *testing.T) {
vi2v := func(vec OpcodeVec) (ret []byte) {
ret = addV128Const(ret)
return append(ret,
OpcodeI32Const,
1, 1, 1, 1,
OpcodeI32Const, 1,
Copy link
Member Author

Choose a reason for hiding this comment

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

needs leb128 encoding but yeah somehow this worked since before but fixed it 😄

Copy link
Contributor

Choose a reason for hiding this comment

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

ah cool

Signed-off-by: Takeshi Yoneda <[email protected]>
@mathetake mathetake marked this pull request as ready for review June 6, 2022 01:12
mathetake added 2 commits June 6, 2022 10:14
Signed-off-by: Takeshi Yoneda <[email protected]>
Signed-off-by: Takeshi Yoneda <[email protected]>
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.

thanks for fixing the broken window!

@mathetake mathetake merged commit 119b069 into main Jun 6, 2022
@mathetake mathetake deleted the backfillffffffff branch June 6, 2022 01:17
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