8000 [simd] Add spec tests for integer abs ops by Honry · Pull Request #260 · WAVM/WAVM · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[simd] Add spec tests for integer abs ops #260

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 2 commits into from
Feb 19, 2020

Conversation

Honry
Copy link
Contributor
@Honry Honry commented Feb 17, 2020
  • i8x16.abs
  • i16x8.abs
  • i32x4.abs

- i8x16.abs
- i16x8.abs
- i32x4.abs
@Honry
Copy link
Contributor Author
Honry commented Feb 17, 2020

@AndrewScheidecker, @tlively, PTAL, thanks!

@@ -34,8 +36,19 @@ def lane_width(self):
return int(self.LANE_TYPE.replace('i', '').split('x')[0])

@property
def get_test_data_with_const(self):
"""test const vs const and param vs const"""
def get_unary_test_data_1(self):
Copy link

Choose a reason for hiding this comment

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

Why the _1 suffix on this name? If there is a conflict with get_unary_test_data below, perhaps this method could have a more descriptive name?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These test data are both for testing 'const vs const' and 'different lanes go through different if-then clauses' for unary ops, I don't have a good suffix name for these, how about get_unary_test_data_others?

Copy link

Choose a reason for hiding this comment

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

Maybe get_unary_complex_test_data or get_unary_combination_test_data?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @tlively, I am OK on get_unary_complex_test_data, since we have another combination tests, get_unary_combination_test_data will cause misleading.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@AndrewScheidecker AndrewScheidecker merged commit 48e4d0d into WAVM:master Feb 19, 2020
@AndrewScheidecker
Copy link
Member

LGTM, thanks!

Honry added a commit to Honry/simd that referenced this pull request Feb 20, 2020
tlively pushed a commit to WebAssembly/simd that referenced this pull request Feb 27, 2020
kenohassler pushed a commit to fgsect/WAFL that referenced this pull request Oct 18, 2021
* [simd] Add spec tests for integer abs ops

- i8x16.abs
- i16x8.abs
- i32x4.abs
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.

3 participants
0